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

2013-02-08 Thread Uwe Ligges
On 07.02.2013 22:49, Michael Friendly wrote: In my .Rprofile for Windows, I had the following functions defined to mirror a few features I miss from linux: (a) replace setwd() with a version that stashes the current directory so it can be easily restored (b) writes a short version of the

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

2013-02-08 Thread Michael Friendly
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