search for: rconn

Displaying 19 results from an estimated 19 matches for "rconn".

Did you mean: conn
2010 Dec 19
1
Unable to build R-2.10.0 and later releases on AIX 6.1
Hi, I have been able to build R-2.9.2 on AIX 6.1 and AIX 5.2. However, I failed to build R-2.10.0 and later releases on these AIX platforms. The error messages I got are attached below: "connections.c", line 461.10: 1506-022 (S) "truncate64" is not a member of "struct Rconn". "connections.c", line 772.10: 1506-022 (S) "truncate64" is not a member of "struct Rconn". "connections.c", line 930.10: 1506-022 (S) "truncate64" is not a member of "struct Rconn". "connections.c", line 2011.10: 1506-022...
2008 Nov 30
1
Rserve and creating a list of lists
...ello, I have some code which generates lattice objects. The function recieves serialized forms of the lattice objects which it then unserializes and then adds to an ArrayList<REXP>. REXPRaw rser = new REXPRaw( target ); //target contains the raw serialized forms of lattice objects rconn.assign("temp",rser); REXP ret = rconn.eval("invisible(unserialize(temp))"); (1) rexpArr.add(ret); RList rlist = new RList(rexpArr); REXPList rl = new REXPList(rlist); The problem is when I do an assign rconn.assign("finalresult",rl); whence I get *** REXPFac...
2008 Nov 14
1
Unable to install Cairo package
....1 in Antix (Mepis kernel but heavily debian based). I have installed libcairo2 (1.6.4-6.1). I tried installing the Cairo package since I'm interested in generating some SVG graphs, and I got the following message: Only partial output (lines with no): .... checking if R was compiled with the RConn patch... no checking cairo.h usability... yes checking cairo.h presence... yes checking for cairo.h... yes checking for PNG support in Cairo... yes checking for ATS font support in Cairo... no .... checking whether cairo_image_surface_get_format is declared... no checking for FreeType support in ca...
2011 Oct 29
2
installing FastRWeb
...hecking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for pkg-config... /usr/bin/pkg-config checking whether pkg-config knows about cairo... no configure: CAIRO_LIBS is unset, attempting to guess it. configure: CAIRO_CFLAGS= checking if R was compiled with the RConn patch... no checking cairo.h usability... no checking cairo.h presence... no checking for cairo.h... no configure: error: Cannot find cairo.h! Please install cairo (http://www.cairographics.org/) and/or set CAIRO_CFLAGS/LIBS correspondingly. ERROR: configuration failed for package ‘Cairo’ * removin...
2006 May 12
2
R-2.3.0 make error on AIX 5.2
...i/ma/data/js36954/src/R-patched/src/mod ules/internet' /usr/local/bin/gcc -I. -I../../../src/include -I../../../src/include -I/usr/loca l/include -DHAVE_CONFIG_H -mno-fp-in-toc -g -O -c internet.c -o internet.o internet.c: In function 'in_R_newurl': internet.c:174: error: 'struct Rconn' has no member named 'open64' make[4]: *** [internet.o] Error 1 make[4]: Leaving directory `/sas/data/cmi/ma/data/js36954/src/R-patched/src/modu les/internet' make[3]: *** [R] Error 2 make[3]: Leaving directory `/sas/data/cmi/ma/data/js36954/src/R-patched/src/modu les/internet'...
2006 Oct 09
1
Discussion starter for package level Connection API
Thought I'd try and start a discussion. Feel free to jump in. I guess R needs to strike the right 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; me...
2009 Jun 09
1
Cairo Package Installation
...hecking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for pkg-config... /usr/bin/pkg-config checking whether pkg-config knows about cairo... no configure: CAIRO_LIBS is unset, attempting to guess it. configure: CAIRO_CFLAGS= checking if R was compiled with the RConn patch... no checking cairo.h usability... no checking cairo.h presence... no checking for cairo.h... no configure: error: Cannot find cairo.h! Please install cairo (http://www.cairographics.org/) and/or set CAIRO_CFLAGS/LIBS correspondingly. ERROR: configuration failed for package 'Cairo'...
2006 Nov 08
1
get compressed data via a socket connection
...-lyon1.fr:5558' > Finaly I begin to create a C interface to get the compressed data from the server. However I am wondering how I can pass a opened socket as argument to the C interface, especially which R type defined in C I should use to handle this. Should I use the structure Rconn defined in Rconnection.h ? It seems to me that I may finally have to write a modified version of the C function readLines, but I think this not the best solution. This my second question.... I hope this mail is not irrelevant, thanks for any help about these questions All the best, Simon...
2018 Oct 31
1
PATCH: Asserting that 'connection' used has not changed + R_GetConnection2()
...the table of connections changes over time and (ii) connection indices are recycled. Because a `connection` object holds the connection row index, it means that *the actual underlying connection that a `connection` object refers to may change over its lifetime*. SUGGESTION: Make use of the 'Rconn' struct field 'id', which is unique, to assert that the 'connection' object used is referring to the original/expected connection. The 'id' field is available via attribute 'conn_id' part of a 'connection' object. PATCH: See attached 'connection.p...
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 ge...
2009 Jul 21
1
problem installing cairo on freebsd
...: not found gnome-config: not found cairo cairo-ft cairo-pdf cairo-png cairo-ps cairo-xlib cairo-xlib- xrender configure: CAIRO_CFLAGS=-D_THREAD_SAFE -I/usr/local/include/cairo -I/ usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/ include checking if R was compiled with the RConn patch... no checking cairo.h usability... yes checking cairo.h presence... yes checking for cairo.h... yes checking for PNG support in Cairo... yes checking for ATS font support in Cairo... no configure: CAIRO_LIBS=-pthread -L/usr/local/lib -lfreetype - lfontconfig -lpng -lm -lz -lXrender -lcairo...
2008 Aug 15
0
Cairo installation process fails "compile a simple Cairo program" step
...es checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for pkg-config... /usr/bin/pkg-config configure: CAIRO_CFLAGS= checking if R was compiled with the RConn patch... no checking cairo.h usability... yes checking cairo.h presence... yes checking for cairo.h... yes checking for PNG support in Cairo... yes checking for ATS font support in Cairo... no configure: CAIRO_LIBS=-L/apps/freetype/current/lib -L/apps/fontconfig/current/lib -L/apps/pixman/current/l...
2010 Mar 18
1
Unable to install Cairo package
...hecking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for pkg-config... /usr/bin/pkg-config checking whether pkg-config knows about cairo... no configure: CAIRO_LIBS is unset, attempting to guess it. configure: CAIRO_CFLAGS= checking if R was compiled with the RConn patch... no checking cairo.h usability... no checking cairo.h presence... no checking for cairo.h... no configure: error: Cannot find cairo.h! Please install cairo (http://www.cairogra phics.org/) and/or set CAIRO_CFLAGS/LIBS correspondingly. ERROR: configuration...
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)); R_InitConnOutPStream(&out, con, type, 0, hook, R_NilValue ); return R_NilValue ; } The problem I have is that I cannot...
2005 Aug 22
2
RFC: "loop connections"
...connections.c 2005-08-22 15:54:03.156038200 -0700 @@ -1644,13 +1644,13 @@ return ans; } -/* ------------------- text connections --------------------- */ +/* ------------------- loop connections --------------------- */ /* read a R character vector into a buffer */ static void text_init(Rconnection con, SEXP text) { int i, nlines = length(text), nchars = 0; - Rtextconn this = (Rtextconn)con->private; + Rloopconn this = (Rloopconn)con->private; for(i = 0; i < nlines; i++) nchars += strlen(CHAR(STRING_ELT(text, i))) + 1; @@ -1668,19 +1668,35 @@ this->...
2005 Sep 18
0
Updated rawConnection() patch
...XP do_clearpushback(SEXP, SEXP, SEXP, SEXP); SEXP do_textconnection(SEXP, SEXP, SEXP, SEXP); +SEXP do_graboutput(SEXP, SEXP, SEXP, SEXP); SEXP do_getallconnections(SEXP, SEXP, SEXP, SEXP); SEXP do_sumconnection(SEXP, SEXP, SEXP, SEXP); SEXP do_download(SEXP, SEXP, SEXP, SEXP); --- ./src/include/Rconnections.h.orig 2005-08-03 08:50:36.000000000 -0700 +++ ./src/include/Rconnections.h 2005-09-17 23:56:01.875475000 -0700 @@ -94,8 +94,7 @@ typedef struct outtextconn { int len; /* number of lines */ - SEXP namesymbol; - SEXP data; + SEXP namesymbol, data, venv; char *lastline;...
2009 May 22
1
Cannot Install Cairo Library
...ng for configurable backends... cairo cairo-ft cairo-pdf cairo-png cairo-ps cairo-xlib cairo-xlib-xrender configure: CAIRO_CFLAGS=-D_REENTRANT -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 checking if R was compiled with the RConn patch... no checking cairo.h usability... yes checking cairo.h presence... yes checking for cairo.h... yes checking for PNG support in Cairo... yes checking for ATS font support in Cairo... no configure: CAIRO_LIBS=-lfreetype -lfontconfig -lpng12 -lz -lXrender -lcairo -lX11 checking for library co...
2018 Dec 04
3
patch to support custom HTTP headers in download.file() and url()
...s. * We have run the tests on macOS, Debian Linux and Windows 2016 Server. You can also browse the changes here: https://github.com/gaborcsardi/r-source/pull/3/files You can also download the diff below from https://github.com/gaborcsardi/r-source/pull/3.diff Best, Gabor diff --git a/src/include/Rconnections.h b/src/include/Rconnections.h index a2c53f058f..32bb35e31f 100644 --- a/src/include/Rconnections.h +++ b/src/include/Rconnections.h @@ -36,6 +36,7 @@ typedef enum {HTTPsh, FTPsh, HTTPSsh, FTPSsh} UrlScheme; typedef struct urlconn { void *ctxt; UrlScheme type; + char *headers;...
2010 Jun 22
4
seek() and gzfile() on 32-bit R2.12.0 in linux
I have installed both 32-bit and 64-bit versions of R2.12.0 (2010-06-15 r52300) on my Ubuntu 10.04 64-bit system. I observe the following behavior when running the examples from base::connections. There appears to be a problem with seek() on a .gz file when using a 32-bit installation of R2.12.0, but the problem doesn't appear in the 64-bit installation. I realize that seek() has been