## Not run:
#
# ftpUpload(I("Some text to be uploaded into a file\nwith several lines"),
# "ftp://login:password@laptop17/ftp/zoe",
# )
#
# ftpUpload(I("Some text to be uploaded into a file\nwith several lines"),
# "ftp://laptop17/ftp/zoe",
# userpwd = "login:password"
# )
#
# ftpUpload(system.file("examples", "system.png", package = "RCurl"),
# "ftp://login:password@laptop17/ftp/Election.rda",
# postquote = c("CWD subdir", "RNFR Election.rda", "RNTO ElectionPolls.rda")
# )
# ## End(Not run)
Run the code above in your browser using DataLab