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

Michael Friendly friendly at yorku.ca
Fri Feb 8 17:32:05 CET 2013


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



More information about the R-devel mailing list