Skip to contents

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)

Value

tibble with columns file_id, sftp_path and local_path of csv files

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)
}