Re: [R-pkg-devel] Puzzled about "locked environments".

2018-07-08 Thread Martin Morgan
On 07/08/2018 07:23 PM, Duncan Murdoch wrote: On 08/07/2018 6:57 PM, Rolf Turner wrote: Recently I experimented with assigning a variable within the environment of a function in a package that I am developing.  Slightly more explicitly: In a function "foo()" in the package, I have lines l

Re: [R-pkg-devel] Puzzled about "locked environments".

2018-07-08 Thread Duncan Murdoch
On 08/07/2018 6:57 PM, Rolf Turner wrote: Recently I experimented with assigning a variable within the environment of a function in a package that I am developing. Slightly more explicitly: In a function "foo()" in the package, I have lines like: big <- 42 assign("big",big,envir=env

[R-pkg-devel] Puzzled about "locked environments".

2018-07-08 Thread Rolf Turner
Recently I experimented with assigning a variable within the environment of a function in a package that I am developing. Slightly more explicitly: In a function "foo()" in the package, I have lines like: big <- 42 assign("big",big,envir=environment(bar)) where "bar()" is another fun