search for: r_nastring

Displaying 7 results from an estimated 7 matches for "r_nastring".

2002 Mar 15
0
NA in character vectors
...aracter vectors. Last October I wrote: > LETTERS[c(NA,2)] in S is c("","B"), but in R is c("NA","B"). We had an interesting discussion then, and I learned (from Duncan Murdoch and Thomas Lumley) that R does have an internal code for missing char values (R_NaString), but it gets easily confused with the string "NA". Check this: R> z <- c(LETTERS[c(2,NA)], "NA", paste("NA")) R> is.na(z) [1] FALSE TRUE TRUE FALSE R> z[3]==z[4] [1] TRUE R> z=="NA" [1] FALSE TRUE TRUE TRUE Thoma...
2016 Sep 16
1
getGraphicsEvent() questions, minor feature/tweak request, and patch(es).
...e for a bit I've found a way to implement this change myself in src/main/gevents.c, and I've included a patch as attachment. What I don't know is if there's a better or at least more conventional way to be checking for the NA value. Coercing with asChar() and only comparing against R_NaString causes NULL values, functions, expression objects and potentially others to become valid prompt values as well, so I'm using TYPEOF() to restrict accepted values further. I've found manually entered NA values are interpreted as being of LGLSXP, so that's the only type I'm accepting...
2005 Apr 12
5
How allocate STRSXP outside of gc
...} The above implementation doesn't take advantage of the fact that mkChar("foo") could be pre-computed only once, and then the function would return the pre-computed value. So the question is how to create this precomputed value. The closest thing I could find in the sources is R_NaString, but I was not able to trace down how it comes about. Thanks, Vadim P.S. I was able to solve a similar problem with symbols. If I need a symbol "foo", I do static SEXP FooSymbol = install("foo"); and then use FooSymbol instead of install("foo") [[a...
2004 May 18
1
Build R-1.9.0 with static libraries ?
Dear all, Which options should I use when running the configure script and/or which changes should I make to Makeconf to build the binary for R-1.9.0 but using only statically linked libraries ? I need to build a binary that is portable between several different Linux (RedHat) distributions. Thanks in advance for your help, Melanie -- http://recherche-en-danger.apinc.org
2004 Mar 13
0
64bit build on IBM
...tect ld: 0711-317 ERROR: Undefined symbol: .Rf_mkChar ld: 0711-317 ERROR: Undefined symbol: .SET_STRING_ELT ld: 0711-317 ERROR: Undefined symbol: .Rf_isNull ld: 0711-317 ERROR: Undefined symbol: .SET_VECTOR_ELT ld: 0711-317 ERROR: Undefined symbol: .Rf_isVector ld: 0711-317 ERROR: Undefined symbol: R_NaString ld: 0711-317 ERROR: Undefined symbol: R_NilValue ld: 0711-317 ERROR: Undefined symbol: .Rf_PrintDefaults ld: 0711-317 ERROR: Undefined symbol: .Rf_EncodeElement ld: 0711-317 ERROR: Undefined symbol: .Rf_allocVector ld: 0711-317 ERROR: Undefined symbol: .Rf_coerceVector ld: 0711-317 ERROR: Undefined...
2015 Aug 14
2
Build R on Haiku
Hi R-devel, I'm trying to get R 3.2.1 working on Haiku (an open source OS inspired by BeOS, not Linux based) on i586. With a few small changes to library paths and ifdefs I am able to get a seemingly working R binary. The build process stops with the 'tools' package. The last lines from make are below. Does anyone have any tips? I'm rather new to debugging at this low level. Are
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...map.c -o rbitmap.lo /usr/bin/cc -shared -L/soft/readline/v4.2.1/lib -o R_X11.so dataentry.lo devX11.lo rotated.lo rbitmap.lo -lSM -lICE -lX11 -lreadline -ltermcap -lm ld: Warning: Unresolved: R_NaReal R_NaInt Rf_error Rf_warning UNIMPLEMENTED Rf_isBlankString R_strtod R_GlobalEnv R_NilValue R_NaString Rf_coerceVector Rf_PairToVectorList Rf_VectorToPairList Rf_allocString Rf_allocVector Rf_allocList Rf_asInteger Rf_duplicate Rf_GetOption Rf_install Rf_isList Rf_isVector Rf_length Rf_listAppend Rf_nthcdr Rf_PrintDefaults Rf_protect Rf_unprotect SET_STRING_ELT SET_TAG SETCAR SETCDR Rf_begincontext...