download_from_remote: Download the necessary data from a remote store in a local

Description Usage Arguments Value Examples

View source: R/download_from_remote.R

Description

Download the necessary data from a remote store in a local

Usage

1
download_from_remote(local, remote, config)

Arguments

local

local rOstluft store. Probably a rOstluft::storage_local_rds()

remote

remote rOstluft store. Probably a rOstluft::storage_s3_rds()

config

config in list form from yaml::read_yaml()

Value

resulting tibble from local$put()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
config <- get_example_config()
remote <- rOstluft::store_aqmet()
local <- rOstluft::storage_local_rds(
  "rf_example",
  format = rOstluft::format_rolf(),
  read.only = FALSE
)

download_from_remote(local, remote, config)

# tidy up
local$destroy("DELETE")

ugzvot/rOstluft.rmweather documentation built on May 5, 2020, 9:27 a.m.