From isubirana at imim.es  Mon May 14 19:00:57 2012
From: isubirana at imim.es (isubirana)
Date: Mon, 14 May 2012 10:00:57 -0700 (PDT)
Subject: [Rd] update.formula simplify = FALSE
Message-ID: <1337014857583-4629964.post@n4.nabble.com>

Dear R users,

I am building a packaged where I want to use the "update.formula" function,
but modifying the option "simplify = TRUE" to "FALSE". Since this is not an
argument, I modified the code and created a new function as:

update.formula2 <- function (old, new, ...) {
    tmp <- .Internal(update.formula(as.formula(old), as.formula(new)))
    out <- formula(terms.formula(tmp, simplify = FALSE))
    return(out)
}

This works fine. But when creating and checking the package ("R CMD check
--as-cran mypackage"), I obtained a warning saying that ".Internal" function
cannot be used inside a package.

Does anyone know how to define an "update.formula" (or equivalent) setting
"simplify = FALSE"?

Thanks.


Isaac Subirana.
IMIM. Barcelona.

--
View this message in context: http://r.789695.n4.nabble.com/update-formula-simplify-FALSE-tp4629964.html
Sent from the R devel mailing list archive at Nabble.com.



[Rd] update.formula simplify = FALSE
isubirana