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] getting environment from "top" promise

2014-02-14 Thread Romain Francois
Le 14 févr. 2014 à 16:40, luke-tier...@uiowa.edu a écrit : > On Tue, 11 Feb 2014, Romain Francois wrote: > >> Hello, >> >> We have something very similar to your while loop in dplyr. >> https://github.com/hadley/dplyr/blob/02a609310184d003c2ae9e0c013bfa69fa4d257a/inst/include/tools/DataDots.h#L

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] getting environment from "top" promise

2014-02-14 Thread luke-tierney
On Tue, 11 Feb 2014, Romain Francois wrote: Hello, We have something very similar to your while loop in dplyr. https://github.com/hadley/dplyr/blob/02a609310184d003c2ae9e0c013bfa69fa4d257a/inst/include/tools/DataDots.h#L15 because we need to know exactly in which environment a promise is suppo

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/