PGOptionsManager | R Documentation |
Options are stored in a persistent file in AppData, see pgconfig_cache$info()
pgoptions
An object of class PGOptionsManager
(inherits from R6
) of length 23.
new()
Initialize options
PGOptionsManager$new()
reset_options()
Reset options to defaults.
PGOptionsManager$reset_options()
set_extent()
Set output spatial extent
PGOptionsManager$set_extent(value)
value
A vector with extent, c(xmin, xmax, ymin, ymax)
set_crs()
Set output CRS
PGOptionsManager$set_crs(value)
value
CRS string
set_nrow()
Set number of rows in output raster
PGOptionsManager$set_nrow(value)
value
Integer
set_ncol()
Set number of cols in output raster
PGOptionsManager$set_ncol(value)
value
Integer
set_rawfolder()
Set the folder where raw-data should be downloaded (possibly very large files), defaults to temporary folder
PGOptionsManager$set_rawfolder(value)
value
String path to folder
set_verbose()
Set verbose output of functions if true.
PGOptionsManager$set_verbose(value)
value
Boolean
set_temporal_resolution()
Set temporal resolution
PGOptionsManager$set_temporal_resolution(value)
value
String increment of temporal sequence. See base::seq.Date for more information.
set_start_date()
Set start date
PGOptionsManager$set_start_date(value)
value
The date used globally to build PRIO-GRID. The month and day are used to define the measurement date within the temporal resolution (e.g., as.Date(1900-06-30) would slice June 30 every year for compatible data sources).
set_end_date()
Set end date
PGOptionsManager$set_end_date(value)
value
a date or "today"
get_crs()
Get crs option
PGOptionsManager$get_crs()
get_extent()
Get extent option
PGOptionsManager$get_extent()
get_nrow()
Get nrow option
PGOptionsManager$get_nrow()
get_ncol()
Get ncol option
PGOptionsManager$get_ncol()
get_rawfolder()
Get rawfolder option
PGOptionsManager$get_rawfolder()
get_verbose()
Get verbose option
PGOptionsManager$get_verbose()
get_temporal_resolution()
Get temporal resolution option
PGOptionsManager$get_temporal_resolution()
get_start_date()
Get start date option
PGOptionsManager$get_start_date()
get_end_date()
Get end date option
PGOptionsManager$get_end_date()
print()
Prints all options
PGOptionsManager$print()
clone()
The objects of this class are cloneable with this method.
PGOptionsManager$clone(deep = FALSE)
deep
Whether to make a deep clone.
pgoptions <- PGOptionsManager$new()
pgoptions$set_rawfolder <- tempfolder()
pgoptions$set_verbose(FALSE)
pgoptions$print()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.