[R] Problem with R on USB-drive
Peter Dalgaard
P.Dalgaard at biostat.ku.dk
Tue Feb 9 11:38:19 CET 2010
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?
--
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