getFTP: getFTP

View source: R/getFTP.R

getFTPR Documentation

getFTP

Description

downloads selected RSM output from SFWMD FTP site to a local folder. This code relies on the FTP site's folder structure, which may change at any point.

Usage

getFTP(ftp, destination = tmpDir(), pattern = "RSMBN\\RSMBN_output.dss")

Arguments

ftp

FTP site parent directory; should be a 'Model_Output' folder - see example.

destination

destination directory. Output will appear in subfolders labeled with the alternative name.

pattern

pattern that will define which files to download. Include any subfolders as part of this regex query.

Value

none Files will appear in subfolders of the 'destination' directory. Subfolders will be labeled with the alternative name (based on the FTP folder structure).

Examples


## Not run: 
getFTP(ftp = 
  'ftp://ftppub.sfwmd.gov/outgoing/LOSOM/Iteration_2/PM_ECBr_NA25_AA_BB_CC/Model_Output/',
  destination = "G:\\data\\models\\delete",
  pattern = "RSMBN/RSMBN_output.dss") # don't pull more than one file at a time, for now.

## End(Not run)


troyhill/RSM documentation built on Aug. 23, 2022, 2:40 p.m.