download.file.Rd
Simple function to use ncftpget for FTP downloads behind a firewall. Requires ncftpget and a properly formatted config file in the users home directory
download.file(url, filename, method)
url | complete URL for file download |
---|---|
filename | destination file name |
method | Method of file retrieval. Can set this using the options(download.ftp.method=[method]) in your Rprofile. example options(download.ftp.method="ncftpget") |
# NOT RUN { download.file("http://lib.stat.cmu.edu/datasets/csb/ch11b.txt","~/test.download.txt") # }# NOT RUN { download.file(" ftp://ftp.cdc.noaa.gov/Datasets/NARR/monolevel/pres.sfc.2000.nc", "~/pres.sfc.2000.nc") # }# NOT RUN { # }