Re: [Rd] contrib.url in non-interactive mode

2014-02-14 Thread Hadley Wickham
>> It is up to you to set a default mirror: we have little idea where you >> live (and it may not be where your email address suggests). Geolocation >> of mirrors had been mooted but not implemented (and in a corporate >> setting is not 100% reliable). The whole point of mirrors is to spread >> t

Re: [Rd] contrib.url in non-interactive mode

2014-02-14 Thread Dirk Eddelbuettel
Renaud, The script below has been in use for about as long as littler existed, and also ships with it. I use it, and its sibbling 'update.r' all the time. Doing this at the command-line frees the R prompt during compilations too... As Barry suggests, the RStudio-provided CDN is not a bad choice

Re: [Rd] contrib.url in non-interactive mode

2014-02-14 Thread Barry Rowlingson
On Fri, Feb 14, 2014 at 10:54 AM, Prof Brian Ripley wrote: > > It is up to you to set a default mirror: we have little idea where you > live (and it may not be where your email address suggests). Geolocation > of mirrors had been mooted but not implemented (and in a corporate > setting is not 100

Re: [Rd] contrib.url in non-interactive mode

2014-02-14 Thread Prof Brian Ripley
On 14/02/2014 10:03, Renaud Gaujoux wrote: Hi, is it intended that one cannot install packages in non-interactive mode, without explicitly setting a CRAN mirror (see below)? Couldn't a default mirror be used in that case? Thank you. You seem to be talking about installing from CRAN. The inten

[Rd] contrib.url in non-interactive mode

2014-02-14 Thread Renaud Gaujoux
Hi, is it intended that one cannot install packages in non-interactive mode, without explicitly setting a CRAN mirror (see below)? Couldn't a default mirror be used in that case? Thank you. Bests, Renaud $ Rscript --vanilla -e "install.packages('whatever')" Installing package into '/home/renaud/