[Rd] package NAMESPACE question

Duncan Murdoch murdoch.duncan at gmail.com
Sun Jan 26 13:21:01 CET 2014


On 14-01-25 6:05 PM, Axel Urbiz wrote:
> Thanks again all. Essentially, this is the section of the code that is
> causing trouble. This is part of the (exported) function which calls
> contr.none (not exported). As mentioned, when I call the exported function
> it complains with the error described before.
>
>
>    oldcontrasts <- unlist(options("contrasts"))
>      if (cts)
>          options(contrasts = c(unordered = "contr.none", ordered =
> "contr.diff"))
>      x <- model.matrix(terms(reformulate(var_names)), mf, contrasts)
>      options(contrasts = oldcontrasts)

This is hugely incomplete.  Please stop wasting everyone's time, and 
post something reproducible.

Duncan Murdoch



More information about the R-devel mailing list