This is a generic function and methods for making a copy of an object such as a curl handle, C-level pointer to a file, etc.

clone(x, ...)

Arguments

x

the object to be cloned.

...

additional parameters for methods

Value

Typically, an object of the same class and “value” as the input - x.

Author

Duncan Temple Lang

See also

Examples

 h = getCurlHandle(verbose = TRUE)
 other = dupCurlHandle(h)
 curlSetOpt(curl = h, verbose = FALSE)
#> An object of class "CURLHandle"
#> Slot "ref":
#> <pointer: 0x5c72d5d17920>
#>