[ESS] cannot add bindings to a locked environment
Vitalie Spinu
@p|nuv|t @end|ng |rom gm@||@com
Mon Jul 25 11:20:53 CEST 2016
>> On Mon, Jul 25 2016 00:21, Boylan, Ross wrote:
> But I don't think it matters, beyond providing a namespace, since the file
> with the new code, which was in my earlier post, has names that aren't
> otherwise in the package.
It seems to matter. I cannot reproduce with my packages. So it's either R or ESS
version or who knows what else.
> So how does ESS decide which package namespace to use, absent explicit
> instructions?
It's the package that you are in or if you explicitely set the environment with
C-c C-t C-s that environment. You also have "pkg" indicator in the modeline.
If objects are not in the package they are assigned in GlobalEnv. In your case
those classes and methods are evaluated as if you availed them at the top
level. There is no other way as you cannot assign new objects to locked
environments in R.
Vitalie
More information about the ESS-help
mailing list