[R] Problem with R on USB-drive

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Mon Feb 15 15:33:35 CET 2010


Lauri Nikkinen wrote:
> The answer is:
>  
>> .libPaths()
> [1] "E:/R/R-2.10.1/library"
>  
> stats package is found under
>  
> .../library/


Sorry about the delay Lauri, I don't have the time to skim r-help very
well these days, so your note sort of whizzed by.

However, I'm not sure I get the point. Are you saying that the installer
is putting the stats package in E:/R/R-2.10.1/library/library/stats ??

-pd

>  I tried Jim's suggestion and copied R-2.10.1 directory from C:\Program
> Files\R\ into USB-disk, and everything seems to work fine.
> Re-istallation did not help.
>  
> Thanks,
> -Lauri
> 
> 
> 2010/2/9, Prof Brian Ripley <ripley at stats.ox.ac.uk
> <mailto:ripley at stats.ox.ac.uk>>:
> 
>     On Tue, 9 Feb 2010, Peter Dalgaard wrote:
> 
>         Lauri Nikkinen wrote:
> 
>             Hi,
> 
>             I installed R on USB-drive, but when I run Rgui.exe from bin
>             folder, I get
>             this error:
> 
> 
>         ...
> 
> 
>             Error in library(package, lib.loc = lib.loc, character.only
>             = TRUE,
>             logical.return = TRUE,  :
>              'stats' is not a valid installed package
> 
>                 var(1:10)
> 
>             Error: could not find function "var"
>             ----------------------------
> 
>             So it seems that stats package is not loaded. How can I fix
>             this?
> 
> 
>         Does R know where to find its packages? Can you say
> 
>         .libPaths()
> 
>         and tell us what the output is? And where is the actual install of
>         ...\library\stats?
> 
> 
>     It would not have got that far if it could not find 'base'.
>     I think Duncan Murdoch is likely to be correct: this looks like a
>     corrupt install.
> 
> 
>         --
>          O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
>          c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
>         (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45)
>         35327918
>         ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk
>         <mailto:p.dalgaard at biostat.ku.dk>)              FAX: (+45) 35327907
> 
>         ______________________________________________
>         R-help at r-project.org <mailto: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
>         <http://www.r-project.org/posting-guide.html>
>         and provide commented, minimal, self-contained, reproducible code.
> 
> 
>     -- 
>     Brian D. Ripley,                  ripley at stats.ox.ac.uk
>     <mailto:ripley at stats.ox.ac.uk>
>     Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
>     University of Oxford,             Tel:  +44 1865 272861 (self)
>     1 South Parks Road,                     +44 1865 272866 (PA)
>     Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> 
> 


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



More information about the R-help mailing list