Displaying 3 results from an estimated 3 matches for "routtextconn".
2005 Aug 22
2
RFC: "loop connections"
...if (new->text) {
+ new->fgetc = &text_fgetc;
+ text_init(new, data);
+ } else {
+ new->read = &raw_read;
+ raw_init(new, data);
}
- text_init(new, text);
return new;
}
-static void outtext_close(Rconnection con)
+static void outloop_close(Rconnection con)
{
- Routtextconn this = (Routtextconn)con->private;
+ Routloopconn this = (Routloopconn)con->private;
SEXP tmp;
int idx = ConnIndex(con);
@@ -1755,9 +1792,9 @@
SET_VECTOR_ELT(OutTextData, idx, R_NilValue);
}
-static void outtext_destroy(Rconnection con)
+static void outloop_destroy(Rcon...
2005 Sep 18
0
Updated rawConnection() patch
...700
+++ ./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;
int lastlinelength; /* buffer size */
} *Routtextconn;
--- ./src/library/base/man/rawconnections.Rd.orig 2005-09-18 11:37:18.004405000 -0700
+++ ./src/library/base/man/rawconnections.Rd 2005-09-18 11:37:00.535655300 -0700
@@ -0,0 +1,71 @@
+\name{rawConnection}
+\alias{rawConnection}
+\title{Raw Connections}
+\description{
+ Input and output raw conne...
2008 Apr 29
2
reproducible segmentation fault caused by textConnection()
Dear all,
It seems that textConnection() can trigger a segmentation fault. The
following script (using two large loops) makes this bug reproducible:
for (i in 1:10000) {
z=textConnection(NULL,open='w')
for (j in 1:100) {
write(runif(1)*1e6,file=z)
write('\n',file=z)
}
close(z)
}
The bug could be reproduced on R-2.6.1, R-2.7.0 and on the latest
R-devel