Displaying 20 results from an estimated 3000 matches similar to: "object getConnection"
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
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
2009 Nov 07
1
getConnection, R_outpstream_st
Hello,
I'm trying to use the limited connections 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));
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
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 neat. However,
things get a little hairy once
2008 Aug 09
3
matrix name
Hello,
Presently, we are able to add additionnal info to a matrix
thanks to the nice comment() and attr() functions.
Maybe I miss some other functions ?
Since there is a always a little remaining place on the
top left when one print a matrix,
I was wondering if it won't be interesting to offer the
possibility to show some information here,
I'm thinking on something like :
> attr(M,
2006 Aug 28
1
Modified Bessel function of third kind (fractional or real order)
Hello,
I am searching for code in C++ or fortran for Modified Bessel function of third kind (fractional or real order). Can someone help me?
Thank you
---------------------------------
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. Cliquez ici.
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
2010 Sep 16
3
funciones en R potencialmente peligrosas via web?
Hola:
Para el desarrollo del nuevo PluginR de Tiki (para poder ejecutar
scripts de R desde Tiki: en páginas Wiki, hojas de cálculo web, etc,
http://dev.tiki.org/PluginR ), por ahora estamos usando la lista de
funciones que se usaban en el proyecto r-php, y que fueran heredadas por
la extensión R de MediaWiki.
Como r-php se hizo hace algunos años (2006), me pregunto si alguien sabe
si hay
2018 Mar 09
2
parallel:::newPSOCKnode(): background worker fails immediately if socket on master is not set up in time (BUG?)
BACKGROUND:
While troubleshooting random, occasionally occurring, errors from
parallel::makePSOCKcluster("localhost", port = 11000);
Error in socketConnection("localhost", port = port, server = TRUE,
blocking = TRUE, :
cannot open the connection
I had another look at parallel:::newPSOCKnode(), which is used
internally to set up each background worker. It is designed to,
2018 Mar 09
2
parallel:::newPSOCKnode(): background worker fails immediately if socket on master is not set up in time (BUG?)
A solution is to have parallel:::.slaveRSOCK() attempt to connect
multiple times before failing, e.g.
makeSOCKmaster <- function(master, port, timeout, useXDR, maxTries
= 10L, interval = 1.0) {
port <- as.integer(port)
for (i in seq_len(maxTries)) {
con <- tryCatch({
socketConnection(master, port = port, blocking = TRUE,
2012 Oct 04
1
Intermittent connectivity issues for JDBC / Oracle
I have been experiencing issues with an R script hanging when connecting to
an Oracle database. To help debug, I found a function here in the nabble
forum and made a small test script:
#!/usr/bin/Rscript --no-restore --no-save --no-init-file
library("RJDBC")
drv<-JDBC("oracle.jdbc.OracleDriver","/home/oracle/lib/ojdbc6.jar", "'")
dbCheck =
2018 Mar 10
1
parallel:::newPSOCKnode(): background worker fails immediately if socket on master is not set up in time (BUG?)
Great.
For the record of this thread, I've submitted patch PR17391
(https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17391). I've
patched it against the latest R-devel on the SVN, passes 'make
check-all', and I've verified it works with the above tests.
/Henrik
On Fri, Mar 9, 2018 at 4:37 AM, <luke-tierney at uiowa.edu> wrote:
> I'm happy to look at a
2003 Feb 07
1
Bug in socketConnection (PR#2535)
Platform: Windows
Version: 1.6.2
When first called, socketConnection gives an error. On subsequent calls it
performs correctly. Thus the first call has the effect of "priming" the
connection. Eg
> socketConnection(port=50)
Error in socketConnection(port = 50) : unable to open connection In
addition: Warning message:
localhost:50 cannot be opened
> MIM <-
SUGGESTION: Proposal to mitigate problem with stray processes left behind by parallel::makeCluster()
2019 Mar 18
2
SUGGESTION: Proposal to mitigate problem with stray processes left behind by parallel::makeCluster()
(Bcc: CRAN)
This is a proposal helping CRAN and alike as well as individual
developers to avoid stray R processes being left behind that might be
produced when an example or a package test fails to set up a
parallel::makeCluster().
ISSUE
If a package test sets up a PSOCK cluster and then the master process
dies for one reason or the other, the PSOCK worker processes will
remain running for 30
2013 Jun 10
1
Sending Email with Attachment
Hi,
I am trying to send an email through gmail or outlook from my Windows PC and
finding trouble to send the email.
The code which I am using is given below:
Code :
library("sendmailR")
from <- "abcd@outlook.com"
to <- <mailto:efgh@gmail.com> efgh@gmail.com
subject <- "Run at"
mailControl = list(smtpServer="blu-m.hotmail.com")
2005 Sep 18
0
Updated rawConnection() patch
Here's an update of my rawConnection() implementation. In addition to
providing a raw version of textConnection(), this fixes two existing
issues with textConnection(): one is that the current textConnection()
implementation carries around unprotected SEXP pointers, the other is
a performance problem due to prolific copying of the output buffer as
output is accumulated line by line.
This new
2013 Oct 03
1
Problem with makePSOCKcluster R3.0.1
Hello,
I am using function makePSOCKcluster to make parallel computation on 3 EC2
Amazon machines.
I have a passwordless between machines and ssh is correct.
In the R 2.15.1 release this function works correctly.
Installing R 3.0.1 on my EC2 machines makePSOCKcluster does not produce the
cluster.
If I run the function with outfile="" option, I obtain this message
Error in
2008 May 08
1
problem with caretNWS on linux
Hi,
I am using caretNWS on a RHEL x86_64 system and I am getting an error
message that is nearly identical to the one occuring in
http://www.r-project.org/nosvn/R.check/r-release-macosx-ix86/caretNWS-00check.txt
Error in socketConnection(serverHost, port = port, open = "a+b", blocking =
TRUE) :
unable to open connection
Calls: system.time ... .local -> tryCatch -> tryCatchList
2016 Jan 15
1
Error in socketConnection(master, port = port, blocking = TRUE, open = "a+b", : cannot open the connection
Dear All
I have sucessfully created cluster of four nodes using localhost in my local machine by executing the following command
> cl<-makePSOCKcluster(c(rep("localhost",4)),outfile='',homogeneous=FALSE,port=11001)
starting worker pid=4271 on localhost:11001 at 12:12:26.164
starting worker pid=4280 on localhost:11001 at 12:12:26.309
starting worker pid=4289 on