search for: init_con

Displaying 8 results from an estimated 8 matches for "init_con".

Did you mean: init_cfg
2024 Oct 25
1
readLines() and unz() and non-empty final line
Hi again, The unz connection is non-blocking by default. I checked do_unz which calls R_newunz which calls init_con and the only place in any of those functions that sets 'blocking' is init_con which sets it to FALSE: https://github.com/wch/r-source/blob/0c26529e807a9b1dd65f7324958c17bf72e1de1a/src/main/connections.c#L713 I'll open an issue on R-bugzilla and see if they're willing to do somethi...
2006 May 02
1
compile R on Solaris 9
...o date. `libunix.a' is up to date. `Makedeps' is up to date. gcc -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../src/extra/pcre -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c connections.c -o connections.o connections.c: In function `init_con': connections.c:381: structure has no member named `open64' connections.c: In function `newfile': connections.c:639: structure has no member named `open64' connections.c: In function `newfifo': connections.c:785: structure has no member named `open64' connections.c: In funct...
2024 Oct 24
3
readLines() and unz() and non-empty final line
But note: > zip("hello.zip", "hello.txt") updating: hello.txt (stored 0%) > readChar(unz("hello.zip","hello.txt"),100) [1] "hello" I leave it to you and other wiser heads to figure out. Cheers, Bert On Thu, Oct 24, 2024 at 8:57?AM Iris Simmons <ikwsimmo at gmail.com> wrote: > Hi Mikko, > > > I tried running a few
2005 Aug 22
2
RFC: "loop connections"
..."loopConnection"); new->description = (char *) malloc(strlen(description) + 1); if(!new->description) { free(new->class); free(new); - error(_("allocation of text connection failed")); + error(_("allocation of loop connection failed")); } init_con(new, description, "r"); new->isopen = TRUE; new->canwrite = FALSE; - new->open = &text_open; - new->close = &text_close; - new->destroy = &text_destroy; - new->fgetc = &text_fgetc; - new->seek = &text_seek; - new->pri...
2005 Sep 18
0
Updated rawConnection() patch
...uot;, isText ? "text" : "raw"); new->description = (char *) malloc(strlen(description) + 1); - if(!new->description) { - free(new->class); free(new); - error(_("allocation of text connection failed")); - } + if(!new->description) goto f3; init_con(new, description, "r"); new->isopen = TRUE; new->canwrite = FALSE; new->open = &text_open; new->close = &text_close; new->destroy = &text_destroy; - new->fgetc = &text_fgetc; new->seek = &text_seek; new->pri...
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
2018 Dec 04
3
patch to support custom HTTP headers in download.file() and url()
...def enum {HTTPsh, FTPsh, HTTPSsh, FTPSsh} UrlScheme; typedef struct urlconn { void *ctxt; UrlScheme type; + char *headers; } *Rurlconn; /* used in internet module */ @@ -67,7 +68,7 @@ Rconnection getConnection_no_err(int n); Rboolean switch_stdout(int icon, int closeOnExit); void init_con(Rconnection new, const char *description, int enc, const char * const mode); -Rconnection R_newurl(const char *description, const char * const mode, int type); +Rconnection R_newurl(const char *description, const char * const mode, SEXP headers, int type); Rconnection R_newsock(const char *...
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...nresolved: getSelectedHandler R_InputHandlers R_PolledEvents R_wait_usec R_NaInt Rf_error Rf_warning Rprintf REprintf R_ExpandFileName R_NilValue Rf_allocVector Rf_asInteger Rf_asLogical Rf_GetOption Rf_install Rf_isString Rf_length Rf_protect Rf_unprotect R_Consolefile R_Busy Rf_checkArity R_fopen init_con R_setInternetRoutines dummy_vfprintf gmake[5]: Entering directory `/soft/R/R-1.5.1/src/modules/internet' gmake[5]: Leaving directory `/soft/R/R-1.5.1/src/modules/internet' gmake[4]: Leaving directory `/soft/R/R-1.5.1/src/modules/internet' gmake[3]: Leaving directory `/soft/R/R-1.5.1/src...