Re: [R] Persistent storage between package invocations

2011-03-18 Thread Martin Maechler
> It would be nice to have a standard directory where R can > write things this way. A semi-standard directory is given > by Sys.getenv("R_LIBS_USER"), which defaults to ~/R/.../. > Maybe ~/R/ could serve as that convention? That way we > (various developers etc) would also n

Re: [R] Persistent storage between package invocations

2011-03-18 Thread Henrik Bengtsson
On Wed, Mar 16, 2011 at 6:00 AM, Hadley Wickham wrote: >> No.  First, please use path.expand("~") for this, and it does not >> necessarily mean the home directory (and in principle it might not expand at >> all).  In practice I think it will always be *a* home directory, but on >> Windows there ma

Re: [R] Persistent storage between package invocations

2011-03-16 Thread Hadley Wickham
> No.  First, please use path.expand("~") for this, and it does not > necessarily mean the home directory (and in principle it might not expand at > all).  In practice I think it will always be *a* home directory, but on > Windows there may be more than one (and watch out for local/roaming profile

Re: [R] Persistent storage between package invocations

2011-03-15 Thread Henrik Bengtsson
It would be nice to have a standard directory where R can write things this way. A semi-standard directory is given by Sys.getenv("R_LIBS_USER"), which defaults to ~/R/.../. Maybe ~/R/ could serve as that convention? That way we (various developers etc) would also not clutter up users home direc

Re: [R] Persistent storage between package invocations

2011-03-15 Thread Prof Brian Ripley
On Tue, 15 Mar 2011, Hadley Wickham wrote: Hi all, Does anyone have any advice or experience storing package settings between R runs? Can I rely on the user's home directory (e.g. tools::file_path_as_absolute("~")) to be available and writeable across platforms? No. First, please use path.e