Skip to content

Commit 7945413

Browse files
authored
Remove ptr reference (#32)
* Remove ptr reference * Update docs with pkgdev Co-authored-by: dieghernan <dieghernan@users.noreply.github.com>
1 parent de0daa2 commit 7945413

12 files changed

+25
-10
lines changed

CITATION.cff

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ references:
7474
given-names: Gábor
7575
email: csardi.gabor@gmail.com
7676
year: '2022'
77+
url: https://CRAN.R-project.org/package=cli
7778
version: '>= 3.0.0'
7879
- type: software
7980
title: crayon
@@ -84,7 +85,7 @@ references:
8485
given-names: Gábor
8586
email: csardi.gabor@gmail.com
8687
year: '2022'
87-
url: https://github.com/r-lib/crayon#readme
88+
url: https://CRAN.R-project.org/package=crayon
8889
- type: software
8990
title: data.table
9091
abstract: 'data.table: Extension of `data.frame`'
@@ -97,6 +98,7 @@ references:
9798
given-names: Arun
9899
email: asrini@pm.me
99100
year: '2022'
101+
url: https://CRAN.R-project.org/package=data.table
100102
- type: software
101103
title: dplyr
102104
abstract: 'dplyr: A Grammar of Data Manipulation'
@@ -115,6 +117,7 @@ references:
115117
given-names: Kirill
116118
orcid: https://orcid.org/0000-0002-1416-3412
117119
year: '2022'
120+
url: https://CRAN.R-project.org/package=dplyr
118121
- type: software
119122
title: ggplot2
120123
abstract: 'ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics'
@@ -148,6 +151,7 @@ references:
148151
given-names: Dewey
149152
orcid: https://orcid.org/0000-0002-9415-4582
150153
year: '2022'
154+
url: https://CRAN.R-project.org/package=ggplot2
151155
version: '>= 3.1.0'
152156
- type: software
153157
title: magrittr
@@ -161,6 +165,7 @@ references:
161165
given-names: Hadley
162166
email: hadley@rstudio.com
163167
year: '2022'
168+
url: https://CRAN.R-project.org/package=magrittr
164169
- type: software
165170
title: rlang
166171
abstract: 'rlang: Functions for Base Types and Core R and ''Tidyverse'' Features'
@@ -173,6 +178,7 @@ references:
173178
given-names: Hadley
174179
email: hadley@rstudio.com
175180
year: '2022'
181+
url: https://CRAN.R-project.org/package=rlang
176182
- type: software
177183
title: scales
178184
abstract: 'scales: Scale Functions for Visualization'
@@ -184,6 +190,7 @@ references:
184190
- family-names: Seidel
185191
given-names: Dana
186192
year: '2022'
193+
url: https://CRAN.R-project.org/package=scales
187194
- type: software
188195
title: sf
189196
abstract: 'sf: Simple Features for R'
@@ -194,6 +201,7 @@ references:
194201
email: edzer.pebesma@uni-muenster.de
195202
orcid: https://orcid.org/0000-0001-8049-7069
196203
year: '2022'
204+
url: https://CRAN.R-project.org/package=sf
197205
version: '>= 1.0.0'
198206
- type: software
199207
title: terra
@@ -205,7 +213,7 @@ references:
205213
email: r.hijmans@gmail.com
206214
orcid: https://orcid.org/0000-0001-5872-2872
207215
year: '2022'
208-
url: https://rspatial.org/terra/
216+
url: https://CRAN.R-project.org/package=terra
209217
version: '>= 1.5-12'
210218
- type: software
211219
title: tibble
@@ -219,6 +227,7 @@ references:
219227
given-names: Hadley
220228
email: hadley@rstudio.com
221229
year: '2022'
230+
url: https://CRAN.R-project.org/package=tibble
222231
- type: software
223232
title: tidyr
224233
abstract: 'tidyr: Tidy Messy Data'
@@ -230,6 +239,7 @@ references:
230239
- family-names: Girlich
231240
given-names: Maximilian
232241
year: '2022'
242+
url: https://CRAN.R-project.org/package=tidyr
233243
- type: software
234244
title: isoband
235245
abstract: 'isoband: Generate Isolines and Isobands from Regularly Spaced Elevation
@@ -245,7 +255,7 @@ references:
245255
email: thomasp85@gmail.com
246256
orcid: https://orcid.org/0000-0002-5147-4711
247257
year: '2022'
248-
url: https://wilkelab.org/isoband/
258+
url: https://CRAN.R-project.org/package=isoband
249259
- type: software
250260
title: knitr
251261
abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R'
@@ -256,7 +266,7 @@ references:
256266
email: xie@yihui.name
257267
orcid: https://orcid.org/0000-0003-0645-5666
258268
year: '2022'
259-
url: https://yihui.org/knitr/
269+
url: https://CRAN.R-project.org/package=knitr
260270
- type: software
261271
title: lifecycle
262272
abstract: 'lifecycle: Manage the Life Cycle of your Package Functions'
@@ -270,6 +280,7 @@ references:
270280
email: hadley@rstudio.com
271281
orcid: https://orcid.org/0000-0003-4757-117X
272282
year: '2022'
283+
url: https://CRAN.R-project.org/package=lifecycle
273284
- type: software
274285
title: maptiles
275286
abstract: 'maptiles: Download and Display Map Tiles'
@@ -280,7 +291,7 @@ references:
280291
email: timothee.giraud@cnrs.fr
281292
orcid: https://orcid.org/0000-0002-1932-3323
282293
year: '2022'
283-
url: https://github.com/riatelab/maptiles/
294+
url: https://CRAN.R-project.org/package=maptiles
284295
- type: software
285296
title: rmarkdown
286297
abstract: 'rmarkdown: Dynamic Documents for R'
@@ -319,6 +330,7 @@ references:
319330
email: rich@rstudio.com
320331
orcid: https://orcid.org/0000-0003-3925-190X
321332
year: '2022'
333+
url: https://CRAN.R-project.org/package=rmarkdown
322334
- type: software
323335
title: s2
324336
abstract: 's2: Spherical Geometry Operators Using the S2 Geometry Library'
@@ -336,6 +348,7 @@ references:
336348
given-names: Ege
337349
email: rubak@math.aau.dk
338350
year: '2022'
351+
url: https://CRAN.R-project.org/package=s2
339352
- type: software
340353
title: testthat
341354
abstract: 'testthat: Unit Testing for R'
@@ -345,6 +358,7 @@ references:
345358
given-names: Hadley
346359
email: hadley@rstudio.com
347360
year: '2022'
361+
url: https://CRAN.R-project.org/package=testthat
348362
version: '>= 3.0.0'
349363
- type: software
350364
title: vdiffr
@@ -368,3 +382,4 @@ references:
368382
given-names: Vaudor
369383
email: lise.vaudor@ens-lyon.fr
370384
year: '2022'
385+
url: https://CRAN.R-project.org/package=vdiffr

R/compare_spatrasters.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ compare_spatrasters <- function(x, y, digits = 6) {
7272

7373
# Check crs
7474
equal_crs <- terra::crs(x) == terra::crs(y)
75-
dif_ext <- round(
76-
terra::ext(x)@ptr$vector - terra::ext(y)@ptr$vector,
77-
digits = digits
78-
)
75+
ext1 <- as.vector(terra::ext(x))
76+
ext2 <- as.vector(terra::ext(y))
77+
78+
dif_ext <- round(ext1 - ext2, digits = digits)
7979

8080
equal_ext <- all(dif_ext == 0)
8181

R/sysdata.rda

571 Bytes
Binary file not shown.

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@
312312
},
313313
"SystemRequirements": null
314314
},
315-
"fileSize": "2165.11KB",
315+
"fileSize": "2166.868KB",
316316
"citation": [
317317
{
318318
"@type": "SoftwareSourceCode",
-7 Bytes
Binary file not shown.

data/hypsometric_tints_db.rda

1.15 KB
Binary file not shown.

img/README-example-temp-1.png

-339 Bytes
Loading

img/README-example-temp-2.png

-618 Bytes
Loading

img/README-example-tile-1.png

-3.54 KB
Loading

img/README-example-tile-2.png

-1.97 KB
Loading

img/README-hypso-1.png

-646 Bytes
Loading

img/README-hypso-2.png

-915 Bytes
Loading

0 commit comments

Comments
 (0)