R/zclone.R

setGeneric("clone", function(x, ...) standardGeneric("clone"))
setMethod("clone", "ANY", function(x, ...) x)

setMethod("clone", "CURLHandle", function(x, ...) dupCurlHandle(x, ...))
setMethod("clone", "environment",
            function(x, ...) {
               e = new.env(parent = parent.env(x))
               sapply(ls(x, all.names = TRUE),
                      function(id)
                       assign(id, get(id, x), e))
               e
            })

Try the RCurl package in your browser

Any scripts or data that you put into this service are public.

RCurl documentation built on Nov. 3, 2023, 1:09 a.m.