rsat_download {rsat} | R Documentation |
Download the images from a records
or an rtoi
object
Description
The function saves the raw images in the database or the specified directory. It skips the images that already exist in the database or directory.
Usage
rsat_download(x, ...)
## S4 method for signature 'rtoi'
rsat_download(x, db_path, verbose = FALSE, ...)
## S4 method for signature 'records'
rsat_download(x, db_path, verbose = FALSE, parallel = FALSE, ...)
Arguments
x |
a |
... |
additional arguments. |
db_path |
path to the database. By default, the path
is defined by the |
verbose |
logical argument. If |
parallel |
logical argument. If |
Value
nothing. Downloads the images into your database
Examples
## Not run:
library(rsat)
# create a copy of navarre in temp file
file.copy(from=system.file("ex/Navarre",package="rsat"),
to=tempdir(),
recursive = TRUE)
# load example rtoi
navarre <- read_rtoi(file.path(tempdir(),"Navarre"))
# assign the path of the database
set_database(file.path(tempdir(),"DATABASE"))
rsat_download(navarre)
rcrds <- records(navarre)
rsat_download(rcrds)
## End(Not run)
[Package rsat version 0.1.21 Index]