[R] R as ftp client ?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Aug 4 11:08:57 CEST 2003
On Mon, 4 Aug 2003, Marc Mamin wrote:
> I want to open an ftp connection (with login and pwd),
> and then to retrieve the file list and the files'content of a given
> Is this possible with R (on W2K)?
Not a file list: the internal ftp client does not support that. You can
get a file by a ftp://user:pass@machine/path/to/file URL.
You can use download.file(method="wget") to do this: a suitable copy of
wget.exe is at http://www.stats.ox.ac.uk/pub/Rtools.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help