Abby Spurdle
2020-May-07 03:27 UTC
[R] 'closure' (was "stats:: spline's method could not be monoH.FC")
> If you want to mess around with the environment of a > function, then you need to understand this stuff, but you probably > shouldn't do that.What exactly do you mean? Are you implying that a user should not use environments? In which case, I would disagree.
Mark Leeds
2020-May-07 03:35 UTC
[R] 'closure' (was "stats:: spline's method could not be monoH.FC")
Hi Abby: I agree with you because below is a perfect example of where not understanding environments causes a somewhat mysterious problem. Chuck Berry explains it in a follow up email. https://r.789695.n4.nabble.com/issues-with-environment-handling-in-model-frame-td4762855.html On Wed, May 6, 2020 at 11:28 PM Abby Spurdle <spurdle.a at gmail.com> wrote:> > If you want to mess around with the environment of a > > function, then you need to understand this stuff, but you probably > > shouldn't do that. > > What exactly do you mean? > > Are you implying that a user should not use environments? > In which case, I would disagree. > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. >[[alternative HTML version deleted]]
Richard O'Keefe
2020-May-07 04:40 UTC
[R] 'closure' (was "stats:: spline's method could not be monoH.FC")
By "mess around with" I mean environment(f) <- ... That is for _very_ advanced players. Never assume that someone meant something stupid, make them prove it. On Thu, 7 May 2020 at 15:28, Abby Spurdle <spurdle.a at gmail.com> wrote:> > > If you want to mess around with the environment of a > > function, then you need to understand this stuff, but you probably > > shouldn't do that. > > What exactly do you mean? > > Are you implying that a user should not use environments? > In which case, I would disagree.
Richard O'Keefe
2020-May-07 04:41 UTC
[R] 'closure' (was "stats:: spline's method could not be monoH.FC")
That example is NOT an example of "messing around with environments." On Thu, 7 May 2020 at 15:36, Mark Leeds <markleeds2 at gmail.com> wrote:> > Hi Abby: I agree with you because below is a perfect example of where not understanding environments causes a somewhat > mysterious problem. Chuck Berry explains it in a follow up email. > > https://r.789695.n4.nabble.com/issues-with-environment-handling-in-model-frame-td4762855.html > > > On Wed, May 6, 2020 at 11:28 PM Abby Spurdle <spurdle.a at gmail.com> wrote: >> >> > If you want to mess around with the environment of a >> > function, then you need to understand this stuff, but you probably >> > shouldn't do that. >> >> What exactly do you mean? >> >> Are you implying that a user should not use environments? >> In which case, I would disagree. >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> 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.