Debian Codegraph @

man/clone.Rd

raw
1 \name{clone}
2 \alias{clone}
3 \alias{clone,ANY-method}
4 \alias{clone,CURLHandle-method}
5 \alias{clone,environment-method}
6 \alias{clone,CFILE-method}
7 \title{Clone/duplicate an object}
8 \description{
9 This is a generic function and methods for making a copy of an
10 object such as a curl handle, C-level pointer to a file, etc.
11 }
12 \usage{
13 clone(x, ...)
14 }
15 \arguments{
16 \item{x}{the object to be cloned.}
17 \item{\dots}{additional parameters for methods}
18 }
19 \value{
20 Typically, an object of the same class and \dQuote{value}
21 as the input - \code{x}.
22 }
23 \author{
24 Duncan Temple Lang
25 }
26
27 \seealso{
28 \code{\link{dupCurlHandle}}
29 }
30 \examples{
31 h = getCurlHandle(verbose = TRUE)
32 other = dupCurlHandle(h)
33 curlSetOpt(curl = h, verbose = FALSE)
34 }
35 \keyword{programming}