[R] R 1.7.0: Startup error: Error in "class<-"(*tmp*, value = Class) : couldn't find function "objWithClass"

Pfaff, Bernhard Bernhard.Pfaff at drkw.com
Tue Apr 22 12:57:11 CEST 2003


sorry, found the error by myself...a second .libpaths with "C:\Program
Files\R\rw1070\library" seems to be the solution.

Thks.
Bernhard

-----Original Message-----
From: Pfaff, Bernhard [mailto:Bernhard.Pfaff at drkw.com]
Sent: 22 April 2003 11:44
To: 'R'
Subject: [R] R 1.7.0: Startup error: Error in "class<-"(*tmp*, value =
Class) : couldn't find function "objWithClass"


Dear R-List member,

I have installed the new version of R on my PC (see system details below). I
can start the RGui with http_proxy succesfully. However, I do encounter two
problems:

1)
After starting the Rgui the following error message is displayed (vertical
dots represent omissions of output):

R : Copyright 2003, The R Development Core Team
Version 1.7.0  (2003-04-16)
.
.
.
.

Error in "class<-"(*tmp*, value = Class) : 
        couldn't find function "objWithClass"

Furthermore, Sys.getenv() reveals:

Warning message: 
package methods in options("defaultPackages") was not found

However, this package is included in "C:\Program
Files\R\rw1070\library\base\R\Rprofile".
code-snippet:

.
.
.
local({dp <- as.vector(Sys.getenv("R_DEFAULT_PACKAGES"))
       if(identical(dp, "")) # marginally faster to do methods last
           dp <- c("ts", "nls", "modreg", "mva", "ctest", "methods",
"tools")
#           dp <- c("methods", "ctest")
       else if(identical(dp, "NULL")) dp <- character(0)
       else dp <- strsplit(dp, ",")[[1]]
       dp <- sub("[[:blank:]]*([[:alnum:]]+)", "\\1", dp) # strip whitespace
       options(defaultPackages = dp)
    })
.
.
.
 

2)
By executing update.packages(), the CRAN connection is established and the
packages to be updated are downloaded, but not installed. Instead, I obtain
the error message:

Error in loadNamespace(name) : package `tools' does not have a name space

I have stored the packages in a different directory ("C:\Program
Files\R\library") that is set in
"C:\Program Files\R\rw1070\etc\RProfile" as:
.libPaths("C:/PROGRA~1/R/library")


Any hints how to resolve these problems are warmly appreciated.

Bernhard


System information:

OS
"Windows_NT"
Os2LibPath
"C:\\WINNT\\system32\\os2\\dll;"
Path 
"C:\\Perl\\bin\\;C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem;C:\
\Program Files\\Microsoft SQL
Server\\80\\Tools\\BINN;C:\\Progra~1\\R\\tools;C:\\Tcl\\bin;C:\\miktex\\mikt
ex\\bin\\;C:\\MinGW\\bin;C:\\Perl\\bin;C:\\HTMLHelp;"
PATHEXT
".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl"
PROCESSOR_ARCHITECTURE
"x86"
PROCESSOR_IDENTIFIER
"x86 Family 15 Model 1 Stepping 2, GenuineIntel"
ProgramFiles
"C:\\Program Files"
R_HOME
"C:\\PROGRA~1\\R\\rw1070"
R_USER
"c:\\emacs-21.2" 
 



----------------------------------------------------------------------
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


----------------------------------------------------------------------
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.



More information about the R-help mailing list