R/ra_get_options.R

Defines functions ra_set_temporary_directory ra_get_options

Documented in ra_get_options ra_set_temporary_directory

#' Function to print the \strong{raster} package's options. 
#' 
#' @param x Function specific option. 
#' 
#' @export
ra_get_options <- function() {
  x <- threadr::quiet(raster::rasterOptions())
  as_tibble(x)
}


#' @rdname ra_get_options
#' @export
ra_set_temporary_directory <- function(x) {
  threadr::quiet(raster::rasterOptions(tmpdir = x))
}
skgrange/gissr documentation built on Feb. 24, 2024, 2:55 p.m.