curl
Run the command curl -T file server
to upload a file to an FTP
server. These functions require the system package (not the R package)
curl
to be installed (which should be available on macOS by
default). The function upload_win_builder()
uses upload_ftp()
to upload packages to the win-builder server.
upload_ftp(file, server, dir = "")upload_win_builder(file, version = c("R-devel", "R-release", "R-oldrelease"),
server = "ftp://win-builder.r-project.org/")
Path to a local file.
The address of the FTP server.
The remote directory to which the file should be uploaded.
The R version(s) on win-builder.
Status code returned from system2
.
These functions were written mainly to save package developers the trouble of
going to the win-builder web page and uploading packages there manually. You
may also consider using devtools::check_win_*
, which currently only
allows you to upload a package to one folder on win-builder each time, and
xfun::upload_win_builder()
uploads to all three folders, which is more
likely to be what you need.