search for: mkcharlence

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

2011 Aug 04
1
slightly speeding up readChar()
...void any O(N) operations, and any O(N) memory allocations. Here they are: 1. In readFixedString in envir.c, an N sized vector is allocated, and memset to 0. O(N) 2. The file is read into the buffer with con->read O(N) (but this probably can't be dropped) 3. mkChar is called, which calls mkCharLenCE(name, strlen(name), CE_NATIVE); strlen is O(N) 4. In mkCharLenCE, a loop along the string looks for 0s to tell if the string includes NULs (notice that because strlen was called before, that can't really happen) O(N) 5. A hashcode is computed for the string to see if it is already in memor...
2010 Jun 19
1
more powerful iconv
...; outb = cbuff.bufsize - 1; @@ -622,7 +623,7 @@ goto next_char; } - if(res != -1 && inb == 0) { + if(res != -1 && inb == 0 && !isRawx) { cetype_t ienc = CE_NATIVE; nout = cbuff.bufsize - 1 - outb; @@ -632,7 +633,12 @@ } SET_STRING_ELT(ans, i, mkCharLenCE(cbuff.data, nout, ienc)); } - else SET_STRING_ELT(ans, i, NA_STRING); + else if(!isRawx) SET_STRING_ELT(ans, i, NA_STRING); + else { + nout = cbuff.bufsize - 1 - outb; + ans = allocVector(RAWSXP, nout); + memcpy(RAW(ans), cbuff.data, nout); + } } Riconv_close(obj); R_...
2010 May 31
1
R 2.11.1 is released
...gnutar' is preferred to 'tar' when configure sets TAR. This is needed on Mac OS 10.6, where the default tar, bsdtar 2.6.2, has been reported to produce archives with illegal extensions to tar (according to the POSIX standard). BUG FIXES o The C function mkCharLenCE now no longer reads past 'len' bytes (unlikely to be a problem except in user code). (PR#14246) o On systems without any default LD_LIBRARY_PATH (not even /usr/local/lib), [DY]LIB_LIBRARY_PATH is now set without a trailing colon. (PR#13637) o More effi...
2010 May 31
1
R 2.11.1 is released
...gnutar' is preferred to 'tar' when configure sets TAR. This is needed on Mac OS 10.6, where the default tar, bsdtar 2.6.2, has been reported to produce archives with illegal extensions to tar (according to the POSIX standard). BUG FIXES o The C function mkCharLenCE now no longer reads past 'len' bytes (unlikely to be a problem except in user code). (PR#14246) o On systems without any default LD_LIBRARY_PATH (not even /usr/local/lib), [DY]LIB_LIBRARY_PATH is now set without a trailing colon. (PR#13637) o More effi...
2016 Jan 27
2
rstan warning messages
Confirmed that gcc-gfortran is installed Package gcc-gfortran-4.4.7-16.el6.x86_64 already installed and latest version What could I check next? I do not have the following installed and will get that done and tested again. libcurl-devel libidn-devel Thanks, Larry -----Original Message----- From: Tom Callaway [mailto:tcallawa at redhat.com] Sent: Wednesday, January 27, 2016
2016 Jan 28
2
rstan warning messages
...clude/libxml2 -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c myUTF8.c -o myUTF8.o myUTF8.c: In function 'StringValue': myUTF8.c:284:5: warning: passing argument 1 of 'Rf_mkCharLenCE' from incompatible pointer type [enabled by default] yylval = mkCharLenCE(wcs, wcnt, CE_UTF8); /* include terminator */ ^ In file included from /usr/include/R/Rdefines.h:29:0, from myUTF8.c:3: /usr/include/R/Rinternals.h:890:6: note: expected...
2024 Apr 24
0
[Rd] R 4.4.0 is released
...pport experimenting with alternative object systems. The S4SXP value can still be used in C code but is now deprecated. Based on contributions from the R Consortium's Object-Oriented Programming Working Group. * New function pow1p(x,y) for accurate (1+x)^y. * mkCharLenCE was incorrectly documented to take a size_t length but was implemented with int (and character strings in R are limited to 2^31 - 1 bytes). DEPRECATED AND DEFUNCT: * data() no longer handles zipped data from long-defunct (since R 2.13.0) --use-zip-data installations....
2024 Apr 24
0
[Rd] R 4.4.0 is released
...pport experimenting with alternative object systems. The S4SXP value can still be used in C code but is now deprecated. Based on contributions from the R Consortium's Object-Oriented Programming Working Group. * New function pow1p(x,y) for accurate (1+x)^y. * mkCharLenCE was incorrectly documented to take a size_t length but was implemented with int (and character strings in R are limited to 2^31 - 1 bytes). DEPRECATED AND DEFUNCT: * data() no longer handles zipped data from long-defunct (since R 2.13.0) --use-zip-data installations....