From edd at debian.org  Tue Apr 19 20:41:17 2016
From: edd at debian.org (Dirk Eddelbuettel)
Date: Tue, 19 Apr 2016 13:41:17 -0500
Subject: [Rd] S3 dispatch for S4 subclasses only works if variable
 "extends" is accessible from global environment
In-Reply-To: <CABdHhvF5K2eU5_kHhxvx++hjKEZsx7hi3j9PxW3fGZCpJ_nLuQ@mail.gmail.com>
References: <57156F2B.4000205@ivt.baug.ethz.ch>
	<CAOQ5NyfK-67N6yHgdP-_Nr8=i34d7zkiR9J6OYFnCtN6_A=fjA@mail.gmail.com>
	<5715D528.6030101@ivt.baug.ethz.ch>
	<CAOQ5NyfBrX=DUVdf66g5fWeubnqNUeaT-yJYYiuQB2-MkHk1Xw@mail.gmail.com>
	<CADwqtCNTFaEXauZKfgMX5tV0=b5L2N4gdCG+ZtCn2RGijo4B-w@mail.gmail.com>
	<CAOQ5NycZgF_sF6Ef90etRkEYL2-GzFGM08+Ff8RRjtURJYk=yA@mail.gmail.com>
	<CADwqtCP9Vk4U-axT0_4CiiOx0T_Ance9=L7yVz-B0RJK+bgfvA@mail.gmail.com>
	<CABdHhvF5K2eU5_kHhxvx++hjKEZsx7hi3j9PxW3fGZCpJ_nLuQ@mail.gmail.com>
Message-ID: <22294.31693.512491.43642@max.nulle.part>


On 19 April 2016 at 11:21, Hadley Wickham wrote:
| This might be too big a change - but is it worth reconsidering the
| behaviour of Rscript? Maybe the simplest fix would be simply to always
| load the methods package.  (I think historically it didn't because
| loading methods took a long time, but that is no longer true)

FWIW littler has always loaded package 'methods' at startup (because I found
this Rscript 'feature' to be too insufferable) -- and of course still starts
in about half the time as Rscript.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



[Rd] S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
Dirk Eddelbuettel