ftp.upload: Upload File via FTP Protocol

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/ftp.upload.R

Description

Convenient function for uploading files via FTP.

Usage

1
2
3
ftp.upload(dumplist, ftp, file = "results",
ext = if (binary) "Rdata" else "txt",
binary = FALSE, dir = getwd())

Arguments

dumplist

A list of R objects or a character string naming an R object to write.

ftp

FTP address to be used, e.g. "ftp://user:pass@ftp.org/".

file

Character string to use for file name.

ext

Character string to use as extension of the file.

binary

Logical, if TRUE the memory image is written, or the dumped text version otherwise.

dir

Optional character string where to write the local copy of the file. Orininal directory is restored.

Value

Writes a binary or dumped text representation of R objects via FTP protocol. As a side effect, a local copy is created on the hard drive that has to be deleted manually.

Author(s)

P\'eter S\'olymos, solymos@ualberta.ca

References

http://www.abmi.ca

See Also

The function is built on the ftpUpload of the RCurl package.

Examples

1
2
3
4
5
## Not run: 
x <- "Helo World!"
ftp.upload(x, ftp = "ftp://user:pass@ftp.org/")

## End(Not run)

abmiOld documentation built on May 2, 2019, 5:54 p.m.

Related to ftp.upload in abmiOld...