rs_transfer: AppEEARS data transfer function

View source: R/rs_transfer.R

rs_transferR Documentation

AppEEARS data transfer function

Description

Returns the contents of the requested url as a NetCDF file downloaded to disk or the current status of the requested transfer.

Usage

rs_transfer(task_id, user, path = tempdir(), verbose = TRUE)

Arguments

task_id

R6 rs_request) query output or task id

user

user (email address) used to sign up for the AppEEARS data service, used to retrieve the token set by rs_set_key.

path

path were to store the downloaded data

verbose

show feedback on data transfers

Value

data on disk as specified by a rs_request

Author(s)

Koen Hufkens

See Also

rs_set_key rs_request

Examples


## Not run: 
# set key
rs_set_key(user = "test", password = "123")

# request data and grab url and try a transfer
r <- rs_request(request, "test", transfer = FALSE)

# check transfer, will download if available
rs_transfer(r$get_task_id(), user = "test")

## End(Not run)

appeears documentation built on Sept. 15, 2023, 5:06 p.m.