Skip to content

Commit 3a6bfc2

Browse files
authored
Merge pull request DOI-NPS#82 from RobLBaker/master
Update DataStore API endpoints from v7 to v8
2 parents cb62a80 + 3b9be5f commit 3a6bfc2

5 files changed

Lines changed: 59 additions & 32 deletions

File tree

NEWS.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# NPSutils 1.1.0
2+
## 2026-01-02
3+
* DataStore API calls now use v8 endpoints (v7 was deprecated with DataStore 4.0 release)
4+
25
## 2025-09-15
36
* Update Unit service API to use current version (instead of discontinued legacy endpoint)
7+
48
## 2025-05-16
59
* Add a vignette going over basic functions and how to use NPSutils
10+
611
## 2025-05-08
712
* add unit tests for all functions. Add packages necessary for unit tests to Suggests in DESCRIPTION file.
813

@@ -11,6 +16,7 @@
1116

1217
## 2025-03-12
1318
* Update to MIT license
19+
1420
## 2025-02-25
1521
* Update `CONTRIBUTING.md`
1622
* Update readme to remove mention of "borked" functions
@@ -21,18 +27,22 @@
2127
# NPSutils 1.0.0
2228
## 2025-01-22
2329
* Update license to CC0.
30+
2431
## 2025-01-19
2532
* remove `get_data_packages_deprecated()` is a breaking change resulting in release of v.1.0.0.
2633
* update documentation for `get_unit_code()`, `get_park_code()`, and `get_unit_code_info()`
2734

2835
## 2024-12-19
2936
* remove `validate_data_package()` as this function was listed as "still under construction" is mostly obsolete given other functions and functions in the DPchecker package.
3037
* remove `load_domains()` as this function was not working properly and was conceived of before the data package specifications were properly set.
38+
3139
## 2024-12-19
3240
* updated `load_pkg_metadata` to be simpler and essentially call `DPchecker::load_metadata` but with a preset default directory structure that works well with the default settings for `get_data_package`.
3341
* Add meta-analysis functions for finding and producing summary statistics multiple data packages including `get_ref_list`, `get_refs_info()`, and `summarize_packages`.
42+
3443
## 2024-10-24
3544
* fix how `get_data_package` aliases `get_data_packages`, specifically now allows users to adjust parameters to non-default settings.
45+
3646
## 2024-10-21
3747
* Bug fixes to `load_data_package()`
3848
* Bug fixes to `.get_authors()`
@@ -55,7 +65,6 @@
5565
* added `load_EML_df()`, which retrieves commonly available metadata items from an EML-formatted R object and returns them as a single dataframe (for loading into Power BI)
5666

5767
# NPSutils 0.3.0
58-
5968
* updated all datastore api requests from v4/v5 to v6 (units service remains at v2)
6069
* add global variables for base datastore api urls and helper functions to access them in utils.R
6170
* added new functionality to `get_data_packages()`: it will now check to see if a DataStore reference ID is invalid or not. It will also check whether the reference is a data package or not. Substantial feedback is reported to the user if the flag force is set to FALSE.
@@ -76,7 +85,6 @@
7685
* added `map_wkt()` function to map points, polygons, or both from Well Known Text coordinates (WKT). WKT is used in place to GPS coordinates when sensitive species locations have been "fuzzed". In this case, providing a polygon rather than the an exact (albeit fuzzed) is preferable as it is clear that the location is not exact. WKT is an efficient way to store geographic shapes such as polygons in flat files such as .csv.
7786

7887
# NPSutils 0.2.0.1
79-
8088
* updated get_data_package to retrieve 1 or more files from a given reference, if for instance a data package has multiple files associated with it. get_data_package is file extension agnostic.
8189
* get_data_package can now take a list of reference IDs from data store. It will write a separate folder for each reference (within a /data folder) and put the data files in the relevant folder.
8290
* get_data_package can now specify the directory that the /data folder and all child data package folders and data files are saved to. Defaults to the working directory.
@@ -85,13 +93,10 @@
8593
* get_data_package informs the user if a download failed due to not specifying secure=TRUE.
8694

8795
# NPSutils 0.2.0.0
88-
8996
Facelift to the entire package:
90-
9197
* Functions and parameters have snake_case names
9298
* Tidyverse styling via styler
9399
* Added bare-bones pkgdown site
94100

95101
# NPSutils 0.1.0.0
96-
97102
* Added a `NEWS.md` file to track changes to the package.

R/utils.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
.pkgglobalenv <- new.env(parent=emptyenv())
55

66
#data_store API base URL:
7-
assign("ds_api", "https://irmaservices.nps.gov/datastore/v7/rest/", envir=.pkgglobalenv)
7+
assign("ds_api", "https://irmaservices.nps.gov/datastore/v8/rest/", envir=.pkgglobalenv)
88

99
#data_store secure API base URL:
10-
assign("ds_secure_api", "https://irmaservices.nps.gov/datastore-secure/v7/rest/", envir=.pkgglobalenv)
10+
assign("ds_secure_api", "https://irmaservices.nps.gov/datastore-secure/v8/rest/", envir=.pkgglobalenv)
1111

1212
#data_store dev api (requires secure)
13-
assign("ds_dev_api", "https://irmadevservices.nps.gov/datastore-secure/v7/rest/", envir = .pkgglobalenv)
13+
assign("ds_dev_api", "https://irmadevservices.nps.gov/datastore-secure/v8/rest/", envir = .pkgglobalenv)
1414

1515
.ds_api <- function(x){
1616
get("ds_api", envir = .pkgglobalenv)

docs/authors.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/news/index.html

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

docs/pkgdown.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
pandoc: '3.4'
1+
pandoc: 3.6.3
22
pkgdown: 2.1.1
33
pkgdown_sha: ~
44
articles:
55
NPSutils: NPSutils.html
6-
last_built: 2025-09-15T21:47Z
6+
last_built: 2026-01-02T16:38Z
77
urls:
88
reference: https://nationalparkservice.github.io/NPSutils/reference
99
article: https://nationalparkservice.github.io/NPSutils/articles

0 commit comments

Comments
 (0)