Displaying 20 results from an estimated 41 matches for "getconnect".
Did you mean:
netconnect
2010 Dec 13
1
errors in getconnection or scan
I was wondering if there was a function like "does connection exists" ?
I am currently using loops to build up a database, and I have either
> B = getConnection(localization)
Error in getConnection(localization) : there is no connection -2147483648
In addition: Warning message:
In getConnection(localization) : NAs introduced by coercion
or
> B = scan(localization)
Error in file(file, "r") : cannot open the connection
In addition: Warning...
2007 May 24
2
object getConnection
Hi,
I use the functions socketConnections() and getConnection()
which are working fine. Thanks to the authors.
After opening nicely some socketConnection,
getConnection(3) returns something like :
description class mode text opened can read can write
"->127.0.0.1:7496" "socket" "wb" "binary" &quo...
2009 Nov 07
1
getConnection, R_outpstream_st
...api defined in Rinternals.h. I
have code that looks like this (inspired from do_serializeToConn) :
SEXP serialize_to_connection( SEXP xp, SEXP connection ){
Rconnection con ;
struct R_outpstream_st out;
R_pstream_format_t type = R_pstream_binary_format ;
SEXP (*hook)(SEXP, SEXP) = NULL ;
con = getConnection(Rf_asInteger(connection));
R_InitConnOutPStream(&out, con, type, 0, hook, R_NilValue );
return R_NilValue ;
}
The problem I have is that I cannot actually call getConnection since it
is not part of the api. Is there another way to get the Rconnection that
is associated with a number.
Ma...
2007 Apr 06
1
getConnection is not found in R depending on the Linux flavour (RedHat or Debian) - dyn.load problems
Hello R developers,
I am working on the "seqinr" package and I encounter a tricky problem
using a C
function.
We defined a C fonction called "getzlibsock" which is dedicated to
compressed
socket connections. This function is using the R internal C function
called "getConnection(int)" in order to get information about the socket
previously opened with the dedicated R functions.
The program works fine on several platform:
-Unix (SunOS),
-MacOS and
-Linux (some).
However, on Linux, an error occurs depending on the installation.
I tried to play with the Makevars fi...
2007 May 30
5
Possible changes to connections
When I originally implemented connections in R 1.2.0, I followed the model
in the 'Green Book' closely. There were a number of features that forced
a particular implementation, and one was getConnection() that allows one
to recreate a connection object from a number.
I am wondering if anyone makes use of this, and if so for what?
It would seem closer to the R philosophy to have connection objects that
get garbage collected when no R object refers to them. This would allow
for example
rea...
2006 Oct 09
1
Discussion starter for package level Connection API
...t balance between opening up the
internals to package writers and not allowing them to do bad things. My
first attempt at cracking this nut is to just memcpy() the Rconnection
and not allow access to the private stuff:
/* Alternative to allowing C code access to connection API. */
Rconnection R_GetConnection(Rconnection ucon, int idx){
Rconnection rcon;
/* Valid connection? */
if ((rcon = getConnection(idx)) == NULL)
return NULL;
memcpy(ucon,rcon,sizeof(struct Rconn));
/* Don't reveal private data */
ucon->private = NULL;
return ucon;
}
This wo...
2007 Nov 14
1
isOpen on closed connections
As far as I can tell, 'isOpen' cannot return FALSE in the case when 'rw = ""'.
If the connection has already been closed by 'close' or some other function,
then isOpen will produce an error. The problem is that when isOpen calls
'getConnection', the connection cannot be found and 'getConnection' produces an
error. The check to see if it is open is never actually done.
This came up in some code where I'm trying to clean up connections after
successfully opening them. The problem is that if I try to close a connecti...
2006 Oct 07
1
Request to open up getConnection to embedded interface
Hello all,
I would like to request that getConnection() and the struct Rconn
declarations be added to the R embedded interface. Here's why.
It's common in CGI scripts for web applications to direct stdin, stdout,
and stderr map to reading from the browser, writing to the browser, and
writing to a web log file respectively; very nice and...
2012 Oct 04
1
Intermittent connectivity issues for JDBC / Oracle
...le
library("RJDBC")
drv<-JDBC("oracle.jdbc.OracleDriver","/home/oracle/lib/ojdbc6.jar", "'")
dbCheck = function(url, user='', pwd='') {
j = .jcall("java/sql/DriverManager", "Ljava/sql/Connection;",
"getConnection", url, user, pwd, check=FALSE)
x = .jgetEx()
.jcheck()
x
}
dbCheck("jdbc:oracle:thin:@192.168.3.10:1521:psrndpt1","myuser","mypass")
When I run the file - sometimes it works, returning NULL, and sometimes it
hangs for between 1 and 2.5 minutes...
2003 Jul 15
1
dbApply (R newbee)
...gt; res <- dbSendQuery(con, "Select LinieID, AvgSpeed from speedlinietur order
by LinieID, AvgSpeed")
> out <- dbApply(res, INDEX = "LinieID",FUN = function(x, grp)
quantile(x$AvgSpeed, names=FALSE))
Error in mysqlDBApply(res, ...) : couldn't find function "dbGetConnection"
>
I saw in an earlier posting that:
There has been a change in function names in the new RMySQL 0.5-0
version (also in the new ROracle and RSQLite). The reason is that
the R-SIG-DB has agreed on a common interface to all databases,
and as part of this new common interface, most...
2012 Mar 15
5
no connection driver available for No connection for URI xen:///
...connection driver available for No
connection for URI xen:///
Thu, 15 Mar 2012 10:17:55 DEBUG Traceback (most recent call last):
File "/usr/bin/virt-install", line 1004, in <module>
sys.exit(main())
File "/usr/bin/virt-install", line 984, in main
conn = cli.getConnection(options.connect)
File "/usr/lib/python2.6/site-packages/virtinst/cli.py", line 327, in
getConnection
conn = open_connection(uri)
File "/usr/lib/python2.6/site-packages/virtinst/cli.py", line 342, in
open_connection
open_flags)
File "/usr/lib64/python2.6/sit...
2012 Mar 15
5
no connection driver available for No connection for URI xen:///
...connection driver available for No
connection for URI xen:///
Thu, 15 Mar 2012 10:17:55 DEBUG Traceback (most recent call last):
File "/usr/bin/virt-install", line 1004, in <module>
sys.exit(main())
File "/usr/bin/virt-install", line 984, in main
conn = cli.getConnection(options.connect)
File "/usr/lib/python2.6/site-packages/virtinst/cli.py", line 327, in
getConnection
conn = open_connection(uri)
File "/usr/lib/python2.6/site-packages/virtinst/cli.py", line 342, in
open_connection
open_flags)
File "/usr/lib64/python2.6/sit...
2017 Dec 14
4
cannot destroy connection (?) created by readLines in a tryCatch
On Thu, Dec 14, 2017 at 7:56 PM, Gabriel Becker <gmbecker at ucdavis.edu> wrote:
> Gabor,
>
> You can grab the connection and destroy it via getConnection and then a
> standard close call.
Yeah, that's often a possible workaround, but since this connection
was opened by
readLines() internally, I don't necessarily know which one it is. E.g.
I might open multiple
connections to the same file, so I can't choose based on the file name....
2018 Oct 31
1
PATCH: Asserting that 'connection' used has not changed + R_GetConnection2()
...t; "yes"
2 "stderr" "terminal" "w" "text" "opened" "no" "yes"
3 "a.txt" "file" "w" "text" "opened" "no" "yes"
> con <- getConnection(3)
> identical(con, fh)
[1] TRUE
ISSUE:
The problem with the current design/implementation where connections
are referred to by their index (only), is that
(i) the table of connections changes over time and
(ii) connection indices are recycled.
Because a `connection` object holds the con...
2017 Dec 14
2
cannot destroy connection (?) created by readLines in a tryCatch
Consider this code. This is R 3.4.2, but based on a quick look at the
NEWS, this has not been fixed.
tryCatch(
readLines(tempfile(), warn = FALSE)[1],
error = function(e) NA,
warning = function(w) NA
)
rm(list=ls(all.names = TRUE))
gc()
showConnections(all = TRUE)
If you run it, you'll get a connection you cannot close(), i.e. the
last showConnections() call prints:
?
2008 Jul 15
1
Error while staring "xend"
Hello,
i installed a Xen 3.3 on Fedora 7 successfully
I booted system with xen 3.3.
checked using the command uname -r
but while starting xend i will get an error please help me out
this...
error is as:
ImportError: /usr/lib/python/xen/lowlevel/xs.so
thanks in advance
_______________________________________________
Xen-users mailing list
2009 Aug 28
0
Cannot create PV guests
...llowing error occurs
ERROR unable to connect to ''localhost:8000'': Connection refused
Traceback (most recent call last):
File "/usr/sbin/virt-install", line 780, in <module>
main()
File "/usr/sbin/virt-install", line 530, in main
conn = cli.getConnection(options.connect)
File "/usr/lib/python2.6/site-packages/virtinst/cli.py", line 127, in getConnection
return libvirt.open(connect)
File "/usr/lib/python2.6/site-packages/libvirt.py", line 159, in open
if ret is None:raise libvirtError(''virConnectOpen() fai...
2009 Sep 23
1
virt-install error - failed to connect
...new guest (hvm) by the virt-install i got the
next message:
Wed, 23 Sep 2009 12:02:15 ERROR virConnectOpen() failed
Traceback (most recent call last):
File "/usr/sbin/virt-install", line 560, in ?
main()
File "/usr/sbin/virt-install", line 348, in main
conn = cli.getConnection(options.connect)
File "/usr/lib/python2.4/site-packages/virtinst/cli.py", line 92, in
getConnection
return libvirt.open(connect)
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 123, in open
if ret is None:raise libvirtError(''virConnectOpen() fa...
2007 Jun 14
0
connecting to db2 via RJDBC
...B2Driver","someClassPath.jar","'")
conn <- dbConnect(driverClass,"serverName")
etc etc
}
I get this error
> data <-getData()
Exception in thread "main" java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:545)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
Error in .local(drv, ...) : Unable to connect JDBC to serverName
Can anyone help me?
Thank you
Zava
--------------------------------------------------------
This is not an offer (or solicitati...
2009 Feb 09
0
classpath Issue
...ting the ''Class Not Found'' exception. Can someone point what I am
doing wrong?
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
...
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:545)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
...
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on R...