[R] RODBC Bug?

Samir Mishra sqmishra at excite.com
Tue Jan 9 13:43:19 CET 2001


I'm not sure if this problem is repeatable or particular to my machine. 

The following works fine -
> odbcConnect("demoteam", uid = "demo", pwd = "demo")

This causes R to crash -
> oracle.info <- list(channel = "demoteam", uid = "demo", pwd = "demo")
> demo.db.connect <- function(ora.info = oracle.info) {
+ 	channel <- odbcConnect(ora.info$channel, uid = ora.info$uid, 
+ 	pwd = ora.info$pwd)
+ 	if(channel == -1) stop("Connection Failure")
+ 	channel
+}
> #R shuts down as soon as I submit the next command
> channel <- demo.db.connect()

Thanks.

Samir Mishra
===========================================
Please send replies to :
sqmishra at acm.org
===========================================





_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list