[ESS-bugs] install.packages() ESS bug or feature?

Vitalie Spinu spinuvit at gmail.com
Sat Sep 29 00:24:37 CEST 2012


  >> Rodney Sparapani <rsparapa at mcw.edu>
  >> on Fri, 28 Sep 2012 15:40:31 -0500 wrote:

  RS> On 09/19/2012 05:02 AM, Vitalie Spinu wrote:
  >> options(menu.graphics = FALSE)

  RS> I have been dying to try this option.  So, I got a chance today.
  RS> However, I am not sure it is any better or worse (or perhaps
  RS> unrelated to what I am seeing).  Here's what I did:

  RS> options(menu.graphics = FALSE)
  RS> options(CRAN = "http://lib.stat.cmu.edu/R/CRAN")install.packages(available.packages()[,1])

It actually should be a part of repos vector:

repos <- getOption("repos")
repos["CRAN"] <- "http://lib.stat.cmu.edu/R/CRAN"
options(repos = repos)


  RS> At this point, I was asked to pick a CRAN.  Maybe this part is an R
  RS> bug since I already had specified that, right?  I have seen this kind of CRAN
  RS> weirdness before (I am always hesitant to file an R bug report
  RS> since it may ridiculed :o).  But, instead of being
  RS> in the *R* buffer, I was suddenly thrown into the minibuffer.

Yes. This is a tracebug *feature* which automates insertion of numbers
at Selection: prompt. Just enter the number and press RET. This was
designed for recover() prompts. 

  RS> I tried to type 75 for the choice "US (PA 1)", but the minibuffer
  RS> was a list of watch-a-ma-calls; completions maybe?.  

What are those watch-a-ma-calls? It should complete for available
numbers 1-82.

    Vitalie

  RS> So, I C-g to get out of that and I placed the cursor after
  RS> Selection: and entered 75.  Now, the installation seemed to go as
  RS> I would expect.

  RS> But, does anyone see a bug or misfeature here?  Or is
  RS> this the way it is supposed to work?  I doesn't look right to me.

  RS> (ess-version)
  RS> "ess-version : 12.09 [rev. 5170 (2012-09-24)]"

  >> sessionInfo()
  RS> R version 2.15.1 (2012-06-22)
  RS> Platform: x86_64-unknown-linux-gnu (64-bit)

  RS> locale:
  RS>  [1] LC_CTYPE=en_US.ISO8859-1       LC_NUMERIC=C
  RS>  [3] LC_TIME=en_US.ISO8859-1        LC_COLLATE=en_US.ISO8859-1
  RS>  [5] LC_MONETARY=en_US.ISO8859-1    LC_MESSAGES=en_US.ISO8859-1
  RS>  [7] LC_PAPER=C                     LC_NAME=C
  RS>  [9] LC_ADDRESS=C                   LC_TELEPHONE=C
  RS> [11] LC_MEASUREMENT=en_US.ISO8859-1 LC_IDENTIFICATION=C

  RS> attached base packages:
  RS> [1] stats     graphics  grDevices utils     datasets  methods   base

  RS> _______________________________________________
  RS> ESS-bugs ESS-bugs at r-project.org
  RS> https://stat.ethz.ch/mailman/listinfo/ess-bugs

  RS> _______________________________________________
  RS> ESS-core list: https://stat.ethz.ch/mailman/listinfo/ess-core



More information about the ESS-bugs mailing list