From murdoch.duncan at gmail.com  Wed Dec 27 18:28:38 2017
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Wed, 27 Dec 2017 12:28:38 -0500
Subject: [Rd] Rscript fails with some packages (for example, h5)
In-Reply-To: <CAL109eNTtAfPwLC74av1w_gu2t50n2enxse-Hxai7V=+MnMCzA@mail.gmail.com>
References: <CAL109eMo37PYMgE8KV0rxBgCGe-6Z1NhPrsUiQJfqCoJXfk6CA@mail.gmail.com>
 <23106.17557.985432.335423@bud.eddelbuettel.com>
 <CAL109eMSq6=mbSzrMnktNiOw=z5C=Tj7nDg9o4zNir-h5pCywg@mail.gmail.com>
 <23106.24430.6935.8034@bud.eddelbuettel.com>
 <9467e2c6-55b4-5e70-dfd4-9891eb02a25b@gmail.com>
 <23107.40199.237407.973601@bud.eddelbuettel.com>
 <CAL109eNTtAfPwLC74av1w_gu2t50n2enxse-Hxai7V=+MnMCzA@mail.gmail.com>
Message-ID: <f6bf88f5-a307-f9ad-ac60-8204795cb02e@gmail.com>

On 27/12/2017 9:11 AM, Sun Yijiang wrote:
> Thanks for the details. I?m new to R, and I?m not blaming anything here,
> just that I?m still not clear what good it makes to keep this inconsistency
> between R and Rscript. To me (and probably to many others from Perl/Python
> etc.), this is shockingly weird. I can live with that, and I also want to
> know why.

As Dirk said, the argument was that the methods package used to take a 
long time to load, and many uses of Rscript shouldn't have to pay that 
time cost.  I don't know whether that's still true or not.  Dirk and I 
agree that the inconsistency between R and Rscript is undesirable, but 
neither of us is in a position to change it, or thinks it's worth the 
effort to argue for a change.

Duncan


> 
> Steve
> Dirk Eddelbuettel <edd at debian.org>?2017?12?27? ??21:15???
> 
>>
>> Duncan,
>>
>> Very nice tutorial. However it does NOT take away from the fact that _very_
>> simple_ scripts (like the one posted by Sun at the beginning of this
>> thread)
>> simply _fail_ in error under Rscript.
>>
>> Whereas they don't under R or r.
>>
>> The R environment ships an interpreter meant for command-line and scripting
>> use which fails on simple scripts that happen to use S4. But I am tired of
>> arguing for reversing this as I have gotten nowhere in all those years.
>>
>> Dirk
>>
>> --
>> http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
>>
>



[Rd] Rscript fails with some packages (for example, h5)
Duncan Murdoch