diff --git a/NEWS.md b/NEWS.md index 3d45d56..84ba16e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # NPSutils 0.3.3 (under development) +## 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()` diff --git a/R/get_data_packages.R b/R/get_data_packages.R index 0f6bc17..e193b83 100644 --- a/R/get_data_packages.R +++ b/R/get_data_packages.R @@ -227,8 +227,10 @@ get_data_packages <- function(reference_id, } } } - data_path<-paste0(path, "/data") - cat("Any downloaded data package(s) can be found at:\n") + data_path <- paste0(path, "/data") + if (force == FALSE) { + cat("Any downloaded data package(s) can be found at:\n") + } on.exit(return(data_path)) } @@ -242,9 +244,9 @@ get_data_package <- function(reference_id, dev = FALSE) { x <- get_data_packages(reference_id, - secure = FALSE, - path=here::here(), - force = FALSE, - dev = FALSE) + secure = secure, + path = path, + force = force, + dev = dev) return(x) } diff --git a/docs/news/index.html b/docs/news/index.html index 574a728..e149388 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -53,8 +53,9 @@

Changelog

-

2024-10-21

-