"update.drc" <- function (object, ..., evaluate = TRUE)
{
call <- object$call
if (is.null(call))
stop("need an object with call component")
extras <- match.call(expand.dots = FALSE)$...
if (length(extras) > 0)
{
# glsa <- names(as.list(args(multdrc)))
glsa <- names(as.list(args(drm)))
names(extras) <- glsa[pmatch(names(extras), glsa[-length(glsa)])]
existing <- !is.na(match(names(extras), names(call)))
for (a in names(extras)[existing]) call[[a]] <- extras[[a]]
if (any(!existing))
{
call <- c(as.list(call), extras[!existing])
call <- as.call(call)
}
}
if (evaluate)
{
# print(parent.frame(n=2))
# print(ls(envir=parent.frame(n=2)))
# env2 <- parent.frame(n=2)
# print(ls(envir=env2))
# eval(call, envir = env2)
# eval(call, envir = parent.frame(), enclos = .GlobalEnv)
eval(call, parent.frame())
} else call
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.