Skip to content

"utils" lacking namespace?

3 messages · Gustaf Rydevik, Duncan Murdoch

#
Hi all,
A colleague of mine tried to install the package EMV, which had been
removed from CRAN.
she ran into some kind of trouble, R locked up, and she closed the program.
Now when she starts R, "utils" can't be loaded which of course create
an unworkable environment.
Below I've copy-pasted the error message she gets when starting R.
Any ideas on what went wrong, and more importantly, how to fix it?
Many thanks in advance,

Gustaf Rydevik

Ps: She's running R on a WinXP box, if that might be of relevance...



----------------------------
Error : package 'utils' does not have a name space

R version 2.8.1 (2008-12-22)
Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and 'citation()' on how to
cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

Warning message:
package "methods" in options("defaultPackages") was not found Error in
library(package, lib.loc = lib.loc, character.only = TRUE,
logical.return = TRUE,  :
  'utils' is not a valid package -- installed < 2.0.0?
#
Gustaf Rydevik wrote:
No idea of the details of what went wrong, but it looks as though your 
colleague has some bad startup file (Renviron, Rprofile, etc; see 
?Startup for the full list) or has actually damaged her R installation.  
I'd try re-installing it first, because that's easy, then work through 
?Startup and see if there are some bad files or environment variables 
messing things up.

Duncan Murdoch
#
On Wed, Apr 15, 2009 at 12:20 PM, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
Hi, and thanks for the help!

It turned out after a bit of searching among the libraries file
structrure that the "utils" catalogue had somehow been moved to the
catalogue belonging to package "NADA". It must have been some
installation script (of the EMV package?) that for some reason moved
it there, but heavens know why.

Oh well, things got sorted out in the end anyhow, and all's well now!

regards,

Gustaf