diff --git a/NEWS.md b/NEWS.md index 5b43105..cc8064b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,8 +1,13 @@ # NPSutils 1.1.0 +## 2026-01-02 + * DataStore API calls now use v8 endpoints (v7 was deprecated with DataStore 4.0 release) + ## 2025-09-15 * Update Unit service API to use current version (instead of discontinued legacy endpoint) + ## 2025-05-16 * Add a vignette going over basic functions and how to use NPSutils + ## 2025-05-08 * add unit tests for all functions. Add packages necessary for unit tests to Suggests in DESCRIPTION file. @@ -11,6 +16,7 @@ ## 2025-03-12 * Update to MIT license + ## 2025-02-25 * Update `CONTRIBUTING.md` * Update readme to remove mention of "borked" functions @@ -21,6 +27,7 @@ # NPSutils 1.0.0 ## 2025-01-22 * Update license to CC0. + ## 2025-01-19 * remove `get_data_packages_deprecated()` is a breaking change resulting in release of v.1.0.0. * update documentation for `get_unit_code()`, `get_park_code()`, and `get_unit_code_info()` @@ -28,11 +35,14 @@ ## 2024-12-19 * 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. * remove `load_domains()` as this function was not working properly and was conceived of before the data package specifications were properly set. + ## 2024-12-19 * 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`. * Add meta-analysis functions for finding and producing summary statistics multiple data packages including `get_ref_list`, `get_refs_info()`, and `summarize_packages`. + ## 2024-10-24 * fix how `get_data_package` aliases `get_data_packages`, specifically now allows users to adjust parameters to non-default settings. + ## 2024-10-21 * Bug fixes to `load_data_package()` * Bug fixes to `.get_authors()` @@ -55,7 +65,6 @@ * 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) # NPSutils 0.3.0 - * updated all datastore api requests from v4/v5 to v6 (units service remains at v2) * add global variables for base datastore api urls and helper functions to access them in utils.R * 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 @@ * 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. # NPSutils 0.2.0.1 - * 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. * 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. * 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 @@ * get_data_package informs the user if a download failed due to not specifying secure=TRUE. # NPSutils 0.2.0.0 - Facelift to the entire package: - * Functions and parameters have snake_case names * Tidyverse styling via styler * Added bare-bones pkgdown site # NPSutils 0.1.0.0 - * Added a `NEWS.md` file to track changes to the package. diff --git a/R/utils.R b/R/utils.R index 9db62d9..15c7f78 100644 --- a/R/utils.R +++ b/R/utils.R @@ -4,13 +4,13 @@ .pkgglobalenv <- new.env(parent=emptyenv()) #data_store API base URL: -assign("ds_api", "https://irmaservices.nps.gov/datastore/v7/rest/", envir=.pkgglobalenv) +assign("ds_api", "https://irmaservices.nps.gov/datastore/v8/rest/", envir=.pkgglobalenv) #data_store secure API base URL: -assign("ds_secure_api", "https://irmaservices.nps.gov/datastore-secure/v7/rest/", envir=.pkgglobalenv) +assign("ds_secure_api", "https://irmaservices.nps.gov/datastore-secure/v8/rest/", envir=.pkgglobalenv) #data_store dev api (requires secure) -assign("ds_dev_api", "https://irmadevservices.nps.gov/datastore-secure/v7/rest/", envir = .pkgglobalenv) +assign("ds_dev_api", "https://irmadevservices.nps.gov/datastore-secure/v8/rest/", envir = .pkgglobalenv) .ds_api <- function(x){ get("ds_api", envir = .pkgglobalenv) diff --git a/docs/authors.html b/docs/authors.html index 1314330..188f933 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -57,14 +57,14 @@

Authors

Citation

Source: DESCRIPTION

-

Baker R, DeVivo J, Patterson J, Wright SE (2025). +

Baker R, DeVivo J, Patterson J, Wright SE (2026). NPSutils: Collection of Functions to read and manipulate information from the NPS DataStore. R package version 1.1.0, https://nationalparkservice.github.io/NPSutils/.

@Manual{,
   title = {NPSutils: Collection of Functions to read and manipulate information from the NPS DataStore},
   author = {Robert Baker and Joe DeVivo and Judd Patterson and Sarah E. Wright},
-  year = {2025},
+  year = {2026},
   note = {R package version 1.1.0},
   url = {https://nationalparkservice.github.io/NPSutils/},
 }
diff --git a/docs/news/index.html b/docs/news/index.html index 6401ee4..e3b9651 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -36,24 +36,37 @@

Changelog

NPSutils 1.1.0

+

2026-01-02

+
+

2025-09-15

-
-

2025-03-25

+

2025-05-16

+
+
+

2025-05-08

+
+
+

2025-03-25

-

2025-03-12

-
+
+

2025-02-25

+
-

2025-02-22

+

2025-02-22

@@ -61,19 +74,31 @@

2025-02-22NPSutils 1.0.0

2025-01-22

-
+
+

2025-01-19

+

2024-12-19

+
+

2024-12-19

+
+
+

2024-10-24

+
+
+

2024-10-21

+

NPSutils 0.2.0.0

-

Facelift to the entire package:

-
+

Facelift to the entire package: * Functions and parameters have snake_case names * Tidyverse styling via styler * Added bare-bones pkgdown site

+

NPSutils 0.1.0.0