Displaying 2 results from an estimated 2 matches for "useutf8".
Did you mean:
use_utf8
2010 Feb 22
1
shash in unique.c
...*d)
{
if (STRING_ELT(x,indx) == NA_STRING) return 0;
return scatter((unsigned int) (STRING_ELT(x,indx), d);
}
rather than its current form which appears to hash the string it points to :
static int shash(SEXP x, int indx, HashData *d)
{
unsigned int k;
const char *p;
if(d->useUTF8)
p = translateCharUTF8(STRING_ELT(x, indx));
else
p = translateChar(STRING_ELT(x, indx));
k = 0;
while (*p++)
k = 11 * k + *p; /* was 8 but 11 isn't a power of 2 */
return scatter(k, d);
}
Looking at sequal, below, and reading its comments, if the pointers are
equal it...
2006 Jul 19
1
[BioC] Errors using biocLite on Apple OS X
...warning("cannot create HTML package index")
return(FALSE)
}
searchindex <- file.path(tempdir(), ".R/doc/html/search/index.txt")
if (!file.create(searchindex)) {
warning("cannot create HTML search index")
return(FALSE)
}
useUTF8 <- capabilities("iconv")
I modified the two file.create() bits to also include
a directory create. On Mac OS X, you have to specify
the recursive arg to the dir.create() function, or it
will fail to create a subdirectory several levels deep.
First check if the subdirectory exists; i...