From murdoch.duncan at gmail.com  Sun Jan 26 13:21:01 2014
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Sun, 26 Jan 2014 07:21:01 -0500
Subject: [Rd] package NAMESPACE question
In-Reply-To: <CAAyVsXL7EV1rtm+aJK85eTAcmdDyiUkuTuugG=H6EeDNyoKv+w@mail.gmail.com>
References: <CAAyVsXJcacs23_DYgTqBto9T3Nww=Me3YdS=LLFhfBoOygX2PQ@mail.gmail.com>	<21219.49638.506680.884531@max.nulle.part>	<52E3D914.7010208@statistik.tu-dortmund.de>	<CAAyVsXKrS43na4bgWuCw8oHxHxZjb6V7228-K18GabBsvRKp4w@mail.gmail.com>	<21220.4430.640257.323491@max.nulle.part>	<CAAyVsXJAvAjK0xNn5qebudZW9kwmfCyOMAfbTBpb+7E=PQAsTg@mail.gmail.com>	<CADwqtCNSuzZw70O5o77a2d38dGbUJPYbkjMXSWtsVieDKqP+DA@mail.gmail.com>	<CAAyVsXKNscAzJL4knPtiKYvZS=wO6cGf2V5Sk7G=nj-2c+afkw@mail.gmail.com>	<CADwqtCMZb+0oeX=SD331gZQ9Q4qQRWYwxwiyeNc0gzcWSThpVQ@mail.gmail.com>
	<CAAyVsXL7EV1rtm+aJK85eTAcmdDyiUkuTuugG=H6EeDNyoKv+w@mail.gmail.com>
Message-ID: <52E4FDAD.1070001@gmail.com>

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



[Rd] package NAMESPACE question
Duncan Murdoch