Skip to content

Commit 3399acf

Browse files
authored
Merge pull request #84 from RobLBaker/master
2 parents 3a6bfc2 + 6fe503f commit 3399acf

59 files changed

Lines changed: 251 additions & 4335 deletions

File tree

Some content is hidden

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

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: NPSutils
22
Type: Package
33
Title: Collection of Functions to read and manipulate information from the NPS DataStore
4-
Version: 1.1.0
4+
Version: 1.2.0
55
Authors@R: c(
66
person(given = "Robert", family = "Baker", email = "robert_baker@nps.gov",
77
role = c("aut", "cre"),
@@ -41,7 +41,7 @@ Imports:
4141
purrr,
4242
tibble,
4343
lifecycle
44-
RoxygenNote: 7.3.2
44+
RoxygenNote: 7.3.3
4545
Suggests:
4646
httptest,
4747
knitr,

NEWS.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
# NPSutils 1.1.0
1+
# NPSutils 1.2.0 ("Apostle Islands Ice Caves")
2+
## 2026-02-20
3+
* Fix unit tests that were failing when switched from v7 to v8 DataStore API
4+
* Update to version 1.2.0 in DESCRIPTION files in anticipation of a new release
5+
6+
## 2026-02-12
7+
* Fix bug in `get_data_packages` that was causing an error when simultaneously attempting to download multiple data packages.
8+
29
## 2026-01-02
310
* DataStore API calls now use v8 endpoints (v7 was deprecated with DataStore 4.0 release)
411

512
## 2025-09-15
613
* Update Unit service API to use current version (instead of discontinued legacy endpoint)
7-
14+
15+
# NPSutils 1.1.0
16+
817
## 2025-05-16
918
* Add a vignette going over basic functions and how to use NPSutils
1019

R/getReferenceInfo.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ get_park_taxon_refs <- function(park_code, taxon_code) {
2323
park_code,
2424
"/",
2525
taxon_code)
26-
DSReference <- httr::content(httr::GET(
27-
url, httr::authenticate(":", ":", "ntlm")
26+
DSReference <- httr::content(httr::GET(url,
27+
httr::authenticate(":", ":", "ntlm")
2828
)) %>%
2929
dplyr::bind_rows()
3030
return(DSReference)

R/get_data_packages.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ get_data_packages <- function(reference_id,
5555
}
5656
# does reference exist?
5757
exists <- NPSutils::check_ref_exists(
58-
reference_id = reference_id,
58+
reference_id = reference_id[i],
5959
secure = secure,
6060
dev = dev
6161
)
@@ -68,7 +68,7 @@ get_data_packages <- function(reference_id,
6868
}
6969
# is ref a data package?
7070
data_package <- check_is_data_package(
71-
reference_id = reference_id,
71+
reference_id = reference_id[i],
7272
secure = secure,
7373
dev = dev
7474
)
@@ -96,7 +96,7 @@ get_data_packages <- function(reference_id,
9696
# if interactive, ask whether to download newer version
9797
if (force == FALSE) {
9898
new_version <- check_new_version(
99-
reference_id = reference_id,
99+
reference_id = reference_id[i],
100100
secure = secure,
101101
dev = dev
102102
)
@@ -110,7 +110,7 @@ get_data_packages <- function(reference_id,
110110
var2 <- .get_user_input()
111111
if (var2 == 1) {
112112
reference_id <- get_new_version_id(
113-
reference_id = reference_id,
113+
reference_id = reference_id[i],
114114
secure = secure,
115115
dev = dev
116116
)

docs/404.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE-text.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/NPSutils.html

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/index.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/authors.html

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)