Measurement Chains: download data
Usage
download_measurementchains_data(
sftp_paths,
target_directory = tempdir(),
sftp_connection = create_sftp_connection(),
run_parallel = TRUE,
debug = FALSE
)
Arguments
- sftp_paths
character vector with paths to files to be downloaded. As retrieved by
get_measurementchains_files
column "sftp_path"- target_directory
target directory
- sftp_connection
an SFTP connnection as retrieved by
create_sftp_connection
- run_parallel
default: TRUE
- debug
show debug messages (default: FALSE)
Examples
if (FALSE) {
mc_files <- kwb.geosalz::get_measurementchains_files()
target_directory <- tempdir()
local_paths <- kwb.geosalz::download_measurementchains_data(
sftp_paths = mc_files$sftp_path,
target_directory)
}