Skip to content

Commit 23cb0c2

Browse files
Merge pull request #28 from BirdsCanada/dev
2 parents e4bfa01 + 051e0ee commit 23cb0c2

File tree

132 files changed

+19563
-3410
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+19563
-3410
lines changed

.Rbuildignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@
99
^CODE_DESIGN.md$
1010
^\.github$
1111
^vignettes/articles$
12-
^misc$
12+
^misc$
13+
^\.vscode$
14+
^[.]?air[.]toml$

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"Posit.air-vscode"
4+
]
5+
}

.vscode/settings.json

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"[r]": {
3+
"editor.formatOnSave": true,
4+
"editor.defaultFormatter": "Posit.air-vscode"
5+
},
6+
"[quarto]": {
7+
"editor.formatOnSave": true,
8+
"editor.defaultFormatter": "quarto.quarto"
9+
},
10+
"cSpell.words": [
11+
"ABATLAS",
12+
"ABBIRDRECS",
13+
"ABOWLS",
14+
"ACCWS",
15+
"askpass",
16+
"ATBANS",
17+
"ATOWLS",
18+
"bcch",
19+
"Beaverhill",
20+
"birdscanada",
21+
"BMDE",
22+
"bootswatch",
23+
"Botaurus",
24+
"BSCDATA",
25+
"Butor",
26+
"cosewic",
27+
"creds",
28+
"d'Amérique",
29+
"dbplyr",
30+
"DEJU",
31+
"Designatable",
32+
"Distrito",
33+
"dont",
34+
"envir",
35+
"États",
36+
"gdal",
37+
"ggspatial",
38+
"ggtitle",
39+
"hofi",
40+
"httr",
41+
"indiv",
42+
"jsonlite",
43+
"Landcover",
44+
"lentiginosus",
45+
"Lepage",
46+
"lineheight",
47+
"longlat",
48+
"Manip",
49+
"mesange",
50+
"mésange",
51+
"mult",
52+
"MYWA",
53+
"noire",
54+
"nrecords",
55+
"ORJU",
56+
"prettymapr",
57+
"RCBIOTABASE",
58+
"Renviron",
59+
"returnclass",
60+
"rosm",
61+
"rspm",
62+
"rumped",
63+
"SKATLAS",
64+
"statprov",
65+
"stringi",
66+
"Subnational",
67+
"Tamiini",
68+
"testuser",
69+
"tete",
70+
"tête",
71+
"tibblify",
72+
"tidyselect",
73+
"ubox",
74+
"vdiffr",
75+
"webshot",
76+
"YRWA",
77+
"zoomin"
78+
]
79+
}

CODE_DESIGN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- API urls
99
- are stored in `meta_info`, a tibble created in `data-raw/data_creation.R`
1010
- This is where you can change from main to sandbox versions
11-
- https://birdscanada.org/api vs. https://sandbox.birdscanada.org/api
11+
- https://naturecounts.ca/api vs. https://sandbox.naturecounts.ca/api
1212
- To apply this you must **re-run** `data-raw/data_creation.R` and then
1313
**re-load** the functions/package
1414

DESCRIPTION

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: naturecounts
22
Type: Package
33
Title: Access and download data on plant and animal populations from NatureCounts
4-
Version: 0.4.1
4+
Version: 0.5.0
55
Authors@R: c(
66
person("Steffi", "LaZerte", email = "steffi@steffi.ca", role = "aut"),
77
person("Denis", "Lepage", email = "dlepage@birdscanada.org", role = c("aut", "cre")))
@@ -11,8 +11,8 @@ Description: Access and download data on plant and animal populations from
1111
License: GPL-3
1212
Encoding: UTF-8
1313
LazyData: true
14-
Depends:
15-
R (>= 3.1.2)
14+
Depends:
15+
R (>= 3.5)
1616
Imports:
1717
askpass (>= 1.1),
1818
DBI (>= 1.0.0),
@@ -34,23 +34,28 @@ Imports:
3434
tidyselect (>= 1.0.0),
3535
units (>= 0.8.1),
3636
wk (>= 0.7.1)
37-
Suggests:
38-
ggspatial,
37+
Suggests:
38+
ggspatial (>= 1.1.10),
3939
here,
4040
knitr,
4141
mapview,
42+
patchwork,
43+
prettymapr (>= 0.2.5),
44+
rmarkdown,
4245
rnaturalearth,
46+
rnaturalearthhires,
47+
rosm,
4348
roxygen2,
44-
rmarkdown,
4549
sf (>= 1.0-9),
4650
spelling,
4751
testthat,
4852
vdiffr
4953
Language: en-US
5054
Roxygen: list(markdown = TRUE)
51-
RoxygenNote: 7.3.1
55+
RoxygenNote: 7.3.2
5256
URL: https://github.com/BirdsCanada/naturecounts,
5357
https://naturecounts.ca,
5458
https://birdscanada.github.io/naturecounts/
5559
VignetteBuilder: knitr
5660
Config/testthat/edition: 3
61+
Remotes: ropensci/rnaturalearthhires

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export(meta_utm_squares)
2727
export(nc_count)
2828
export(nc_data_dl)
2929
export(nc_metadata)
30+
export(nc_metadata_version)
3031
export(nc_permissions)
3132
export(nc_query_table)
3233
export(nc_remove_cache)

NEWS.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# naturecounts 0.5.0
2+
* Generalize `cosewic_ranges()` (fixes [#40](https://github.com/BirdsCanada/naturecounts/issues/40))
3+
* argument *species* now deprecated in favour of *group*
4+
* Add option to supply custom IAO grid to `cosewic_ranges()`
5+
* Add option to clip EOO in `cosewic_ranges()` to a particular shapefile before calculating area
6+
* Add option to change the CRS
7+
* Update default CRS for `cosewic_ranges()` to an Albers Equal Area Projection for Canada (ESRI:102001)
8+
* Use a general `prop_include = 1` rather than `eoo_p = 1` and default to 1 rather than 0.95.
9+
* Make `cosewic_plot()`s report-ready (fixes [#41](https://github.com/BirdsCanada/naturecounts/issues/41))
10+
* Add option to scale records in `cosewic_plot()`
11+
* Add North arrow and scale to `cosweic_plot()`
12+
* Add option to change the CRS
13+
* Add more details to `cosewic_plot()` caption
14+
* Change API to naturecounts.ca ([#29](https://github.com/BirdsCanada/naturecounts/issues/29))
15+
* Fix bug with request ids where tried to download unapproved collections ([#32](https://github.com/BirdsCanada/naturecounts/issues/32))
16+
* Clarify metadata (fixes [#30](https://github.com/BirdsCanada/naturecounts/issues/30)
17+
* Clarify metadata versions as dates
18+
* Clarify which metadata is stored locally
19+
* Add checks and warn users if local metadata >4 weeks old
20+
* Make 'extended' the default field set ([#31](https://github.com/BirdsCanada/naturecounts/issues/31))
21+
* Explicitly alert users if `format_zero_fill()` used when there are 'X' values ([#8](https://github.com/BirdsCanada/naturecounts/issues/8))
22+
123
# naturecounts 0.4.1
224
* Fix use of species_id and record_id in `cosewic_ranges()`.
325
* Truly allow different columns

0 commit comments

Comments
 (0)