Skip to content

Commit

Permalink
Merge pull request #61 from RobLBaker/master
Browse files Browse the repository at this point in the history
updates to get_data_package
  • Loading branch information
RobLBaker authored Oct 24, 2024
2 parents cf4588e + f329e39 commit cded127
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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()`
Expand Down
14 changes: 8 additions & 6 deletions R/get_data_packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand All @@ -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)
}
5 changes: 3 additions & 2 deletions docs/news/index.html

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

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ pkgdown: 2.1.0
pkgdown_sha: ~
articles:
NPSutils: NPSutils.html
last_built: 2024-10-21T18:50Z
last_built: 2024-10-24T20:56Z

0 comments on commit cded127

Please sign in to comment.