Download data from an FTP server.

get_ftp_data(ftp_address, dir_path, fnames, parse_fun, ..., verbose = TRUE)

Arguments

ftp_address

The FTP server address.

dir_path

FTP directory to search.

fnames

A vector of file names in the package to download. Supports regex.

parse_fun

A function to parse datasets. Default assumes that all files in fnames can be parsed using readr::read_csv().

...

Additional arguments to pass to parse_fun.

verbose

If TRUE, display descriptive messages.

Value

a named list of dataframes.

Examples

if (FALSE) { get_ftp_data("ftp://ftp.dfg.ca.gov", "IEP_Zooplankton", "MysidMatrix", parse_remote_excel, sheet = "Mysid CPUE Matrix 1972-2018 ", guess_max = 100000L) }