From feferraz at linux.ime.usp.br  Sat Oct 11 08:20:48 2003
From: feferraz at linux.ime.usp.br (feferraz@linux.ime.usp.br)
Date: Sat Oct 11 08:20:07 2003
Subject: [Rd] Problem in 'methods' package (PR#4525)
Message-ID: <200310110620.h9B6Km0P006241@pubhealth.ku.dk>

Full_Name: Fernando Henrique Ferraz Pereira da Rosa
Version: 1.8.0
OS: Linux 2.4.21
Submission from: (NULL) (200.206.211.169)


     After installing R 1.8.0, the R DBI interface stopped working. I tracked it
down as a problem in the 'methods' package, that comes in the default
installation.
     Somehow the function '.valueClassTest' which is defined on package
'methods', is not being defined.
     To ilustrate how this breaks DBI, try this in a 1.8.0 R install (with DBI
installed):

      > library(DBI)
      > con <- dbConnect(dbDriver("MySQL"), dbname = "test")
Error in dbConnect(dbDriver("MySQL"), dbname = "test") : 
        couldn't find function ".valueClassTest"

      A dirty fix would be defining it by hand (from
src/library/methods/R/RMethodUtils.R) : 

   .valueClassTest <- function(object, classes, fname) {
        (...)
    }

       (Which works), but ideally it'd be nice determning why the function is
not being defined on the first place.


[Rd] Problem in 'methods' package (PR#4525)
feferraz@linux.ime.usp.br