[R] when setting environment: target of assignment expands to non-language object

Gabor Grothendieck ggrothendieck at gmail.com
Tue Apr 27 04:23:45 CEST 2010


See ?assignInNamespace

On Mon, Apr 26, 2010 at 9:49 PM, Michael Steven Rooney
<michael.s.rooney at gmail.com> wrote:
> Hi,
>
> I am trying to place my own functions in the nlme environment:
>
> The following statement works:
>
> environment(coef.corSPT) <- environment(getS3method("coef","corSpatial"))
>
> but this one returns an error:
>
> environment(get("coef<-.corSPT")) <-
> environment(getS3method("coef<-","corSpatial"))
> Error in environment(get("coef<-.corSPT")) <-
> environment(getS3method("coef<-",  :
>  target of assignment expands to non-language object
>
> What should I do?
>
> Thanks.
>
> Mike
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list