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.
Mark Leeds
2020-May-07 04:47 UTC
[R] 'closure' (was "stats:: spline's method could not be monoH.FC")
Hi Richard: I didn't say it was and didn't mean to imply it. All I said is that it was an example of where "not understanding environments" can lead to errors that won't be understood by the person experiencing them. It just so happens that the use of "environment(f) <- " can lead to a solution but there are other solutions and it was not my intention to talk about the various solutions. Only that it can be helpful if one understands the notion of environments in R. On Thu, May 7, 2020 at 12:42 AM Richard O'Keefe <raoknz at gmail.com> wrote:> 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. >[[alternative HTML version deleted]]
Mark Leeds
2020-May-07 04:50 UTC
[R] 'closure' (was "stats:: spline's method could not be monoH.FC")
Richard: I may have implied that one should "mess with environments" by saying that I agree with Abby. If so, my apologies because that's not what I meant. I only meant understanding. On Thu, May 7, 2020 at 12:47 AM Mark Leeds <markleeds2 at gmail.com> wrote:> Hi Richard: I didn't say it was and didn't mean to imply it. All I said > is that it was an example of where "not understanding environments" can > lead > to errors that won't be understood by the person experiencing them. It > just so happens that the use of "environment(f) <- " can lead to a > solution but there > are other solutions and it was not my intention to talk about the various > solutions. Only that it can be helpful if one understands the notion of > environments in R. > > > > > > > > > On Thu, May 7, 2020 at 12:42 AM Richard O'Keefe <raoknz at gmail.com> wrote: > >> 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. >> >[[alternative HTML version deleted]]