Re: [Rd] R Startup configuration file

2010-02-12 Thread Barry Rowlingson
On Wed, Feb 10, 2010 at 3:06 PM, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote:  But I agree that writing a saveable options package is the first step - then making that a default in R is the second so people don't have to edit profiles and R packages and applications can expect an API

Re: [Rd] R Startup configuration file

2010-02-12 Thread Duncan Murdoch
On 12/02/2010 3:50 AM, Barry Rowlingson wrote: On Wed, Feb 10, 2010 at 3:06 PM, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote: But I agree that writing a saveable options package is the first step - then making that a default in R is the second so people don't have to edit profiles and

Re: [Rd] R Startup configuration file

2010-02-12 Thread Simon Urbanek
On Feb 12, 2010, at 3:50 , Barry Rowlingson wrote: On Wed, Feb 10, 2010 at 3:06 PM, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote: But I agree that writing a saveable options package is the first step - then making that a default in R is the second so people don't have to edit

Re: [Rd] R Startup configuration file

2010-02-12 Thread Henrik Bengtsson
FYI, a while ago I was looking into the problem with generic settings files. I didn't find an omnibus/perfect solution, but have a look at the Settings class in the R.utils package (R/Settings.R in the source code). It tries to deal with automatic loading and saving of settings (robust

Re: [Rd] R Startup configuration file

2010-02-12 Thread Dirk Eddelbuettel
On 12 February 2010 at 09:22, Simon Urbanek wrote: | On Feb 12, 2010, at 3:50 , Barry Rowlingson wrote: | | On Wed, Feb 10, 2010 at 3:06 PM, Barry Rowlingson | b.rowling...@lancaster.ac.uk wrote: | | But I agree that writing a saveable options package is the first | step | - then making

Re: [Rd] R Startup configuration file

2010-02-12 Thread Barry Rowlingson
On Fri, Feb 12, 2010 at 2:22 PM, Simon Urbanek simon.urba...@r-project.org wrote: This is getting OT, but, please, no XML. It's entirely useless in this context IMHO (as it is in others, but that's another story) and we already have reliable support for storing R objects (more than one in

Re: [Rd] R Startup configuration file

2010-02-12 Thread Duncan Murdoch
On 12/02/2010 10:33 AM, Barry Rowlingson wrote: On Fri, Feb 12, 2010 at 2:22 PM, Simon Urbanek simon.urba...@r-project.org wrote: This is getting OT, but, please, no XML. It's entirely useless in this context IMHO (as it is in others, but that's another story) and we already have reliable

[Rd] R Startup configuration file

2010-02-10 Thread Barry Rowlingson
Currently when R starts up it can be configured by a file of environment variable specifications and a file of R code. This makes programmatic modification of startup configuration tricky. Case in point: I start R, do install.packages(foo), and up pops the 'choose a CRAN mirror' dialog. I'd like

Re: [Rd] R Startup configuration file

2010-02-10 Thread Duncan Murdoch
Barry Rowlingson wrote: Currently when R starts up it can be configured by a file of environment variable specifications and a file of R code. This makes programmatic modification of startup configuration tricky. Case in point: I start R, do install.packages(foo), and up pops the 'choose a CRAN

Re: [Rd] R Startup configuration file

2010-02-10 Thread Barry Rowlingson
On Wed, Feb 10, 2010 at 11:44 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: When I read the ?Startup man page, I find it is too complicated already; I don't want to add another kind of file to read.  (Would we have  separate user and site versions of this new file?  When would it be handled?)