#' deep_clone
#' @name deep_clone
#'@keywords internal
dbR6_deep_clone <- function(...) {
# With x$clone(deep=TRUE) is called, the deep_clone gets invoked once for
# each field, with the name and value.
head_env <- new.env(parent = emptyenv(), hash = FALSE)
if (name == "where") {
return(list2env(as.list.environment(value, all.names = TRUE), envir = head_env))
} else if(name == "metadata") {
return(list2env(as.list.environment(value, all.names = TRUE), parent = head_env, hash = FALSE))
} else {
# For all other fields, just return the value
return(value)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.