From friendly at yorku.ca  Fri Feb  8 17:32:05 2013
From: friendly at yorku.ca (Michael Friendly)
Date: Fri, 08 Feb 2013 11:32:05 -0500
Subject: [Rd] assignInNamespace to create a setwd() replacement: how to
 use unlockBinding()?
In-Reply-To: <5115090C.1090405@statistik.tu-dortmund.de>
References: <51142160.7010104@yorku.ca>
	<5115090C.1090405@statistik.tu-dortmund.de>
Message-ID: <51152885.2000002@yorku.ca>

Thanks, Uwe
Yes, that was evil, but like other evil practices, it worked for many R 
generations.  Your suggestion wasn't hard to implement
and makes my .Rprofile healthier & happier.
-Michael


On 2/8/2013 9:17 AM, Uwe Ligges wrote:
>
> Replacing base functionality is bad practice, since some packages may 
> rely on the actual functionality from base. Why not provide such 
> functions in a private package that masks the base functionality for 
> your interactive work only (and keeps base clean to be used by other 
> packages).
> Finally, you can load that package in your startup code.
>
> Best,
> Uwe Ligges


-- 
Michael Friendly     Email: friendly AT yorku DOT ca
Professor, Psychology Dept. & Chair, Quantitative Methods
York University      Voice: 416 736-2100 x66249 Fax: 416 736-5814
4700 Keele Street    Web:   http://www.datavis.ca
Toronto, ONT  M3J 1P3 CANADA



[Rd] assignInNamespace to create a setwd() replacement: how to use unlockBinding()?
Michael Friendly