[R] ftp connections for uploading files

Gábor Csárdi csardi at rmki.kfki.hu
Thu Jan 8 17:46:18 CET 2009


On Thu, Jan 8, 2009 at 5:42 PM, Thomas Loridan <thomas.loridan at gmail.com> wrote:
> Many thanks for that.
> I am running R under windows and I am not sure what you mean by this curl?

http://curl.haxx.se/

> Is'nt there a way to ftp via an intrinsic R function?

That I don't know, perhaps some else does. You might want to double
check the RCurl package.

Gabor

>
> Thanks again
>
> Thomas
>
> 2009/1/8 Prof Brian Ripley <ripley at stats.ox.ac.uk>:
>> Try system() with curl or a decent ftp client (I don't see that package
>> RCurl covers this, but it might despite its description only mentioning
>> HTTP).  From 'man curl'
>>
>>   curl offers a busload of useful tricks like proxy support, user authen-
>>   tication,  ftp upload, HTTP post, SSL connections, cookies, file trans-
>>   fer resume and more. As you will see below, the amount of features will
>>   make your head spin!
>>
>> Ftp protocols (and there are more than one) are fiendishly complicated,
>> especially if proxies are involved.
>>
>> BTW, this is yet another case where knowing your OS would have helped give a
>> more precise answer. See the posting guide.
>>
>> On Thu, 8 Jan 2009, Thomas Loridan wrote:
>>
>>> Hi all,
>>>
>>> I would like to upload some plots I create wth R via ftp or something
>>> similar but I don t really understand which command/syntax I should
>>> use:
>>> should I go for  make.socket + write.socket or try and create
>>> environment variables like frp_proxy_user and then ftp my files? how?
>>>
>>> many thanks for your help
>>>
>>> Thomas
>>>
>>> --
>>> Thomas Loridan
>>> King's College email: thomas.loridan at kcl.ac.uk
>>> webpage:http://geography.kcl.ac.uk/micromet/tloridan/index.htm
>>>
>>> ______________________________________________
>>> R-help at 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.
>>>
>>
>> --
>> 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
>>
>
>
>
> --
> Thomas Loridan
> King's College email: thomas.loridan at kcl.ac.uk
> webpage:http://geography.kcl.ac.uk/micromet/tloridan/index.htm
>
> ______________________________________________
> R-help at 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.
>



-- 
Gabor Csardi <Gabor.Csardi at unil.ch>     UNIL DGM




More information about the R-help mailing list