download_measurementchains_data: Measurement Chains: download data

View source: R/measurement-chains.R

download_measurementchains_dataR Documentation

Measurement Chains: download data

Description

Measurement Chains: download data

Usage

download_measurementchains_data(
  sftp_paths,
  target_directory = temp_dir(),
  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

## Not run: 
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)

## End(Not run)

KWB-R/kwb.geosalz documentation built on March 28, 2024, 9:05 p.m.