File: curl_upload.Rd

package info (click to toggle)
r-cran-curl 6.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,064 kB
  • sloc: ansic: 3,140; sh: 76; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 990 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/upload.R
\name{curl_upload}
\alias{curl_upload}
\title{Upload a File}
\usage{
curl_upload(file, url, verbose = TRUE, reuse = TRUE, ...)
}
\arguments{
\item{file}{connection object or path to an existing file on disk}

\item{url}{where to upload, should start with e.g. \verb{ftp://}}

\item{verbose}{emit some progress output}

\item{reuse}{try to keep alive and recycle connections when possible}

\item{...}{other arguments passed to \code{\link[=handle_setopt]{handle_setopt()}}, for
example a \code{username} and \code{password}.}
}
\description{
Upload a file to an \verb{http://}, \verb{ftp://}, or \verb{sftp://} (ssh)
server. Uploading to HTTP means performing an \verb{HTTP PUT} on that URL.
Be aware that sftp is only available for libcurl clients built with libssh2.
}
\examples{
\dontrun{# Upload package to winbuilder:
curl_upload('mypkg_1.3.tar.gz', 'ftp://win-builder.r-project.org/R-devel/')
}
}