From winstonchang1 at gmail.com  Wed Feb 12 22:15:35 2014
From: winstonchang1 at gmail.com (Winston Chang)
Date: Wed, 12 Feb 2014 15:15:35 -0600
Subject: [Rd] $new cannot be accessed when running from Rscript and
 methods package is not loaded
In-Reply-To: <93CB91C9-ADED-4870-A8B3-10392A43395D@r-project.org>
References: <52F98292.2090209@ivt.baug.ethz.ch>
	<21241.35724.813573.176958@max.nulle.part>
	<CAFOpNVGqDm6TN0DAGy=9kckGjZsdumDpuWwKW3J_nBM5SNH=Qg@mail.gmail.com>
	<52FA6BE6.20100@fhcrc.org>
	<93CB91C9-ADED-4870-A8B3-10392A43395D@r-project.org>
Message-ID: <CAFOpNVFV_WrJmeWxaHsuhh2UdrsrQ7e4Yo_aLsbZuqktZesR_w@mail.gmail.com>

On Tue, Feb 11, 2014 at 3:27 PM, Simon Urbanek
<simon.urbanek at r-project.org> wrote:
>
> I suspect the problem could be classified as bug in methods which doesn't behave correctly if not attached. I didn't look into details, but there used to be a technical problem in R C API where you could not pass the right environments to make that work (that bit me when I tried to use S4 a while ago), but I think that has been solved, so conceptually I think this is a bug that could be fixed. This sounds like something that should be possible to fix - even if it means fixing something in R to make it happen. Working around it in hacky ways mentioned here doesn't solve the underlying problem.


I agree that the best solution would for methods to work properly even
when not attached. I suspect that many people would be appreciative it
if this issue were fixed and they didn't have to resort to these hacks
and workarounds.

-Winston



[Rd] $new cannot be accessed when running from Rscript and methods package is not loaded
Winston Chang