search for: r_nan

Displaying 9 results from an estimated 9 matches for "r_nan".

2014 Feb 10
1
Question re: NA, NaNs in R
...IUC, there is only one bit pattern used to encode R NA values, so this should be safe. But I would like to be sure: Is there any guarantee that the different functions in R would return NA as identical to the bit pattern defined for NA_REAL, for a given architecture? Similarly for NaN value(s) and R_NaN? My guess is that it is possible some functions used internally by R might encode NaN values differently; ie, setting the lower word to a value different than 1954 (hence being NaN, but potentially not identical to R_NaN), or perhaps this is architecture-dependent. However, NA should be one specif...
2005 Dec 14
1
R-beta on AIX5.2
...;, line 50.9: 1506-358 (I) "calloc" is defined on line 641 of /usr/include/stdlib.h. make[3]: *** [mlutils.o] Error 1 --- R-beta.orig/src/nmath/nmath.h 2005-10-06 19:25:25.000000000 +0900 +++ R-beta/src/nmath/nmath.h 2005-12-13 19:33:59.000000000 +0900 @@ -47,6 +47,7 @@ #define ML_NAN R_NaN void R_CheckUserInterrupt(void); +#undef calloc #define calloc R_chk_calloc #define free R_chk_free -- http://www.nakama.ne.jp, http://r.nakama.ne.jp e-mail : EIJI Nakama <nakama at ki.rim.or.jp>
2001 Jul 23
2
Installing RSPython with R 1.3.0
...os, EG: >>> RS.call("library","splines") Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library "/usr/local/lib/R/library/splines/libs/splines.so": /usr/local/lib/R/library/splines/libs/splines.so: undefined symbol: R_NaN Error in function (package, help, lib.loc = .lib.loc, character.only = FALSE, : .First.lib failed In the local error handler In the local error handler Error in if (!is.numeric(name) || name != (pos <- as.integer(name))) { : missing value where logical needed In the local error...
2024 Jan 18
1
Choices to remove `srcref` (and its buddies) when serializing objects
...v('\uff', 'UTF-8', 'latin1'), NULL) ) # [1] FALSE identical( .Call(depcache:::C_hash2, '\uff'), .Call(depcache:::C_hash2, iconv('\uff', 'UTF-8', 'latin1')) ) # [1] TRUE * NaNs with different payloads (except NA_numeric_) are replaced by R_NaN. One of the many downsides to the current approach is that we rely on the non-API entry point getPRIMNAME() in order to hash builtins. Looking at the source code for identical() is no help here, because it uses the private PRIMOFFSET macro. The bitstream being hashed is also, unfortunately, not e...
2004 Apr 21
2
segfault in approx() (PR#6809)
This is R1.9.0, windows XP I run across the following: It is admittedly silly, but it shouldn't segfault: test <- list(y=1:100, x=rep(NaN, 100)) approx(test, xout=rep(NaN, 10)) Bombs! Kjetil Halvorsen
2024 Jan 18
1
[External] Re: Choices to remove `srcref` (and its buddies) when serializing objects
...1'), NULL) > ) > # [1] FALSE > identical( > .Call(depcache:::C_hash2, '\uff'), > .Call(depcache:::C_hash2, iconv('\uff', 'UTF-8', 'latin1')) > ) > # [1] TRUE > > * NaNs with different payloads (except NA_numeric_) are replaced by > R_NaN. > > One of the many downsides to the current approach is that we rely on > the non-API entry point getPRIMNAME() in order to hash builtins. > Looking at the source code for identical() is no help here, because it > uses the private PRIMOFFSET macro. > > The bitstream being has...
1999 Mar 12
1
R 68.3 on OSF V4.0 problems
...39; : 'Do not use IEEE_754: would get "Floating exception" in' : 'line 288 of file src/main/relop.c : "x2 = REAL(s2)[i % n2];".' : 'With old gcc (without -mieee-with-inexact option), the error was in' : 'line 131 of file src/main/arithmetic.c : "R_NaN = 0.0/R_Zero_Hack;".' : 'Note that without IEEE_754, I get -1.797693e+308 for both 0/0 and 1/0.' perl -i.bak -pe 's/#define IEEE_754/#undef IEEE_754/' src/include/Platform.h : 'Need non-IEEE754 routine R_IsNA (wonder if it is correct...)' perl -i.bak -pe 's/^(....
2024 Jan 16
2
Choices to remove `srcref` (and its buddies) when serializing objects
Could you recommend any packages/functions that compute hash such that the source references and sexpinfo_struct are ignored? Basically a version of `serialize` that convert R objects to raw without storing the ancillary source reference and sexpinfo. I think most people would think of `digest` but that package uses `serialize` (see discussion
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...oft/R/R-1.5.1/src/library/splines/src' /usr/bin/cc -I../../../../include -I/soft/readline/v4.2.1/include -std1 -ieee_with_inexact -I/soft/readline/v4.2.1/include -c splines.c -o splines.o /usr/bin/cc -shared -L/soft/readline/v4.2.1/lib -o splines.so splines.o ld: Warning: Unresolved: R_NaN Rf_error R_alloc Rf_coerceVector Rf_allocMatrix Rf_allocVector Rf_install Rf_length Rf_protect Rf_setAttrib Rf_unprotect INTEGER REAL R_registerRoutines mkdir -p -- ../../../../library/splines/libs gmake[5]: Leaving directory `/soft/R/R-1.5.1/src/library/splines/src' gmake[4]: Leaving directory...