Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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
Expand All @@ -21,18 +27,22 @@
# 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()`

## 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()`
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
6 changes: 3 additions & 3 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 42 additions & 20 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pandoc: '3.4'
pandoc: 3.6.3
pkgdown: 2.1.1
pkgdown_sha: ~
articles:
NPSutils: NPSutils.html
last_built: 2025-09-15T21:47Z
last_built: 2026-01-02T16:38Z
urls:
reference: https://nationalparkservice.github.io/NPSutils/reference
article: https://nationalparkservice.github.io/NPSutils/articles
Loading