| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/command.R |
| 3 |
\name{upload_ftp} |
| 4 |
\alias{upload_ftp} |
| 5 |
\alias{upload_win_builder} |
| 6 |
\title{Upload to an FTP server via \command{curl}} |
| 7 |
\usage{ |
| 8 |
upload_ftp(file, server, dir = "") |
| 9 |
|
| 10 |
upload_win_builder( |
| 11 |
file = pkg_build(), |
| 12 |
version = c("R-devel", "R-release", "R-oldrelease"), |
| 13 |
server = c("ftp", "https") |
| 14 |
) |
| 15 |
} |
| 16 |
\arguments{ |
| 17 |
\item{file}{Path to a local file.} |
| 18 |
|
| 19 |
\item{server}{The address of the FTP server. For \code{upload_win_builder()}, |
| 20 |
\code{server = 'https'} means uploading to |
| 21 |
\code{'https://win-builder.r-project.org/upload.aspx'}.} |
| 22 |
|
| 23 |
\item{dir}{The remote directory to which the file should be uploaded.} |
| 24 |
|
| 25 |
\item{version}{The R version(s) on win-builder.} |
| 26 |
} |
| 27 |
\value{ |
| 28 |
Status code returned from \code{\link[=system2]{system2()}} or |
| 29 |
\code{curl::curl_fetch_memory()}. |
| 30 |
} |
| 31 |
\description{ |
| 32 |
The function \code{upload_ftp()} runs the command \command{curl -T file |
| 33 |
server} to upload a file to an FTP server if the system command |
| 34 |
\command{curl} is available, otherwise it uses the R package \pkg{curl}. The |
| 35 |
function \code{upload_win_builder()} uses \code{upload_ftp()} to upload |
| 36 |
packages to the win-builder server. |
| 37 |
} |
| 38 |
\details{ |
| 39 |
These functions were written mainly to save package developers the trouble of |
| 40 |
going to the win-builder web page and uploading packages there manually. |
| 41 |
} |