[R] Problem on running update

Martin Morgan mtmorgan at fhcrc.org
Sun Nov 21 18:30:29 CET 2010


On 11/21/2010 03:12 AM, Stephen Liu wrote:
> Hi Martin,
> 
> Thanks for your advice.
> 
> Ran following code on R-2.12.0 32bit as admin
> 
>> for(lib in .libPaths()) {
> + descs <- Sys.glob(file.path(lib, "*", "DESCRIPTION"))
> + sizes <- file.info(descs)$size
> + names(sizes) <- descs
> + print(sizes[sizes < 100])
> + }
> named numeric(0)
> named numeric(0)
> 
> Where are the above files?

If your  problem was as a regular user, then run the above code as
regular user not admin.

Not sure what 'the above files' are that you are looking for; the 'named
numeric(0)' says that no packages have DESCRIPTION files with size <
100; the loop looked in all directories in

  .libPaths()

for a subdirectory with file DESCRIPTION; you can find these by for instance

  Sys.glob(file.path(.libPaths()[1], "*", "DESCRIPTION"))

Your next step is to identify where the error is occurring; you might try

  update.packages(repos="http://cran.r-project.org")

and when the error occurs use

  traceback()

to understand the functions that are being called at the time of the
error; the output of traceback() will be helpful to the list, even if
not useful to you. The next step is likely to try to identify more
precisely where the problem is, e.g.,

   options(error=recover)
   update.packages(repos="http://cran.r-project.org")

and then following the instructions on ?recover and ?browser to more
precisely identify the problem. Use options(error=NULL) to turn off
recovery when done.

Martin

> 
> 
> B.R.
> Stephen L
> 
> 
> 
> 
> ----- Original Message ----
> From: Martin Morgan <mtmorgan at fhcrc.org>
> To: Stephen Liu <satimis at yahoo.com>
> Cc: r-help at r-project.org
> Sent: Sun, November 21, 2010 2:10:52 PM
> Subject: Re: [R] Problem on running update
> 
> On 11/20/2010 08:56 PM, Stephen Liu wrote:
>> Hi folks,
>>
>> Win 7 64bit
>> R 2.12.)
>>
>> Today on running:
>>
>>> update.packages()
>> Error: subscript out of bounds
>>
>> Unable to proceed.  I have been googling around and couldn't discover the 
>> cause.  Pls help.  TIA
> 
> Hi Stephen -- maybe
> 
> https://stat.ethz.ch/pipermail/r-help/2010-November/259912.html
> 
> Martin
> 
>>
>>
>> B.R.
>> Stephen L
>>
>>
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> 
> 


-- 
Computational Biology
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109

Location: M1-B861
Telephone: 206 667-2793



More information about the R-help mailing list