Skip to content
Prev 42906 / 63421 Next

RC / methods package

On 12-03-25 05:29 PM, Paul Gilbert wrote:
This is very strange. With

setMethod("TSconnect",   signature(drv="MySQLDriver", dbname="character"),
    definition=function(drv, dbname, ...) {
         con <- dbConnect(drv, dbname=dbname, ...)
   	hasVintages <- as.logical(dbExistsTable(con, "vintageAlias") )
   	hasPanels   <- as.logical(dbExistsTable(con, "panels") )
	new("TSMySQLConnection" , con, drv="MySQL", dbname=dbname,
   	       hasVintages=FALSE,
   	       hasPanels  =FALSE)
	})

I get the note, but if I remove the two lines that appear to do nothing:

setMethod("TSconnect",   signature(drv="MySQLDriver", dbname="character"),
    definition=function(drv, dbname, ...) {
         con <- dbConnect(drv, dbname=dbname, ...)
	new("TSMySQLConnection" , con, drv="MySQL", dbname=dbname,
   	       hasVintages=FALSE,
   	       hasPanels  =FALSE)
	})

I no longer get the note. I am restarting R each time to be sure nothing 
is cached.

[ R version 2.15.0 RC (2012-03-25 r58832) ]

Paul