[R] setClass with a slot of RODBC

From: <adschai_at_optonline.net>
Date: Sat, 02 Jun 2007 03:32:46 +0000 (GMT)

Hi - I tried to get some answer before but there seems to have no one response. My question is that I have a class like below definition:



My purpose of the conn slot is to hold a channel to database connection which is returned by a command like:

channel <- odbcConnect("DB", uid="user", pwd="password")

According to RODBC documentation, this channel is supposed to have a type of "RODBC". However, if I declare my class as above, R will complain that it does not know about "RODBC" type or class. Please clarify. Thank you.

        [[alternative HTML version deleted]]

R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat 02 Jun 2007 - 03:39:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 02 Jun 2007 - 15:01:48 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.