Clone/duplicate an object
clone.RdThis 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.
Examples
h = getCurlHandle(verbose = TRUE)
other = dupCurlHandle(h)
curlSetOpt(curl = h, verbose = FALSE)
#> An object of class "CURLHandle"
#> Slot "ref":
#> <pointer: 0x560320ad9480>
#>