download.file( url = filename , destfile = location.to.save.locally , mode = 'wb' )
On Wed, Dec 12, 2012 at 2:48 PM, Alemu Tadesse <alemu.tade...@gmail.com>wrote: > I am trying to download the tar files on the website below > > filename<-" > http://rredc.nrel.gov/solar/old_data/nsrdb/1991-2010/SolarAnywhere/x.tar" > where x is one those tar files > I downloaded x using download.file(). But, the file was corrupt. Can > someone help me how to download and untar these files using R. > > Thanks, > > Alemu > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.