clone function

Clone/duplicate an object

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.

clone(x, ...)

Arguments

  • x: the object to be cloned.
  • ...: additional parameters for methods

Returns

Typically, an object of the same class and value

as the input - x.

Author(s)

Duncan Temple Lang

See Also

dupCurlHandle

Examples

h = getCurlHandle(verbose = TRUE) other = dupCurlHandle(h) curlSetOpt(curl = h, verbose = FALSE)
  • Maintainer: CRAN Team
  • License: BSD_3_clause + file LICENSE
  • Last published: 2025-03-22

Useful links