clone

0th

Percentile

Clone/duplicate an object

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.

Keywords
programming
Usage
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.

See Also

dupCurlHandle

Aliases
  • clone
  • clone,ANY-method
  • clone,CURLHandle-method
  • clone,environment-method
  • clone,CFILE-method
Examples
# NOT RUN {
 h = getCurlHandle(verbose = TRUE)
 other = dupCurlHandle(h)
 curlSetOpt(curl = h, verbose = FALSE)
# }
Documentation reproduced from package RCurl, version 1.98-1.1, License: BSD_3_clause + file LICENSE

Community examples

Looks like there are no examples yet.