getFTP | R Documentation |
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.
getFTP(ftp, destination = tmpDir(), pattern = "RSMBN\\RSMBN_output.dss")
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. |
none Files will appear in subfolders of the 'destination' directory. Subfolders will be labeled with the alternative name (based on the FTP folder structure).
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.