Skip to content

Commit

Permalink
specify active R session
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Dec 18, 2024
1 parent c6d383f commit 01cd40f
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion R/get_agfd.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#' using [tools::R_user_dir] to identify the proper directory for storing user
#' data in a cache for this package. Defaults to `TRUE`, caching the files
#' locally. If `FALSE`, this function uses `tempdir()` and the files are deleted
#' upon closing of the \R session.
#' upon closing of the active \R session.
#'
#' @section Model scenarios:
#'
Expand Down
4 changes: 2 additions & 2 deletions R/get_soil_thickness.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#' using `tools::R_user_dir()` to identify the proper directory for storing
#' user data in a cache for this package. Defaults to `TRUE`, caching the files
#' locally. If `FALSE`, this function uses `tempdir()` and the files are deleted
#' upon closing of the \R session.
#' upon closing of the active \R session.
#'
#' A custom `print` method is provided that will print the metadata associated
#' with these data. Examples are provided for interacting with the metadata
Expand Down Expand Up @@ -77,7 +77,7 @@ get_soil_thickness <- function(cache = TRUE) {
#' using `tools::R_user_dir()` to identify the proper directory for storing
#' user data in a cache for this package. Defaults to `TRUE`, caching the files
#' locally. If `FALSE`, this function uses `tempdir()` and the files are deleted
#' upon closing of the \R session.
#' upon closing of the active \R session.
#'
#' @return Nothing, called for its side-effects of downloading and unzipping
#' files.
Expand Down
12 changes: 6 additions & 6 deletions R/read_aagis_regions.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
#' import, the geometries are automatically corrected to fix invalid
#' geometries that are present in the original shapefile.
#'
#' @param cache `Boolean` Cache the \acronym{AAGIS} regions' geospatial file
#' after downloading using `tools::R_user_dir("read.abares", "cache")` to
#' identify the proper directory for storing user data in a cache for this
#' package. Defaults to `TRUE`, caching the files locally as a Geopackage. If
#' `FALSE`, this function uses `tempdir()` and the files are deleted upon
#' closing of the \R session.
#' @param cache Cache the \acronym{AAGIS} regions' geospatial file after
#' downloading using `tools::R_user_dir("read.abares", "cache")` to identify the
#' proper directory for storing user data in a cache for this package. Defaults
#' to `TRUE`, caching the files locally as a Geopackage. If `FALSE`, this
#' function uses `tempdir()` and the files are deleted upon closing of the
#' active \R session.
#'
#' @examplesIf interactive()
#' aagis <- read_aagis_regions()
Expand Down
4 changes: 2 additions & 2 deletions R/read_abares_trade.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' using `tools::R_user_dir()` to identify the proper directory for storing
#' user data in a cache for this package. Defaults to `TRUE`, caching the files
#' locally as a native \R object. If `FALSE`, this function uses `tempdir()`
#' and the files are deleted upon closing of the \R session.
#' and the files are deleted upon closing of the active \R session.
#'
#' @examplesIf interactive()
#' trade <- read_abares_trade()
Expand Down Expand Up @@ -45,7 +45,7 @@ read_abares_trade <- function(cache = TRUE) {
#' download using `tools::R_user_dir()` to identify the proper directory for
#' storing user data in a cache for this package. Defaults to `TRUE`, caching
#' the files locally as a native \R object. If `FALSE`, this function uses
#' `tempdir()` and the files are deleted upon closing of the \R session.
#' `tempdir()` and the files are deleted upon closing of the active \R session.
#'
#' @return A \CRANpkg{data.table} object of the \acronym{ABARES} trade data.
#' @noRd
Expand Down
4 changes: 2 additions & 2 deletions R/read_abares_trade_regions.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' download using `tools::R_user_dir()` to identify the proper directory for
#' storing user data in a cache for this package. Defaults to `TRUE`, caching
#' the files locally as a native \R object. If `FALSE`, this function uses
#' `tempdir()` and the files are deleted upon closing of the \R session.
#' `tempdir()` and the files are deleted upon closing of the active \R session.
#'
#' @examplesIf interactive()
#' trade_regions <- read_abares_trade_regions()
Expand Down Expand Up @@ -79,7 +79,7 @@ read_abares_trade_regions <- function(cache = TRUE) {
#' download using `tools::R_user_dir()` to identify the proper directory for
#' storing user data in a cache for this package. Defaults to `TRUE`, caching
#' the files locally as a native \R object. If `FALSE`, this function uses
#' `tempdir()` and the files are deleted upon closing of the \R session.
#' `tempdir()` and the files are deleted upon closing of the active \R session.
#'
#' @return A \CRANpkg{data.table} object of the \acronym{ABARES} trade data.
#' @noRd
Expand Down
2 changes: 1 addition & 1 deletion man/get_agfd.Rd

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

2 changes: 1 addition & 1 deletion man/get_soil_thickness.Rd

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

12 changes: 6 additions & 6 deletions man/read_aagis_regions.Rd

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

2 changes: 1 addition & 1 deletion man/read_abares_trade.Rd

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

2 changes: 1 addition & 1 deletion man/read_abares_trade_regions.Rd

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

0 comments on commit 01cd40f

Please sign in to comment.