Displaying 16 results from an estimated 16 matches for "r_naint".
2015 May 17
1
The function cummax() seems to have a bug.
Hi,
The function cummax() seems to have a bug.
> x <- c(NA, 0)
> storage.mode(x) <- "integer"
> cummax(x)
[1] NA 0
The correct result of this case should be NA NA. The mistake in [
https://github.com/wch/r-source/blob/trunk/src/main/cum.c#L130-L136] may be
the reason.
Best Regards,
Dongcan
--
Dongcan Jiang
Team of Search Engine & Web Mining
School of Electronic
2015 Sep 20
2
Long vectors: Missing values and R_xlen_t?
Is there a missing value constant defined for R_xlen_t, cf. NA_INTEGER
(== R_NaInt == INT_MIN) for int(eger)? If not, is it correct to
assume that missing values should be taken care/tested for before
coercing from int or double?
Thank you,
Henrik
2009 Jul 20
1
tabulate can accept NA values?
tabulate has
.C("R_tabulate", as.integer(bin), as.integer(length(bin)),
as.integer(nbins), ans = integer(nbins), PACKAGE="base")$ans
The implementation of R_tabulate has
if(x[i] != R_NaInt && x[i] > 0 && x[i] <= *nbin)
and so copes with (silently drops) NA. Perhaps the .C could have
NAOK=TRUE? This is useful in apply'ing tabulate to the rows or columns
of a (large) matrix, where the work-around involves introducing some
artificial NA value (and consequently...
2019 Sep 16
1
Error: package or namespace load failed for ‘utils
>>>>> Laurent Gautier
>>>>> on Sun, 15 Sep 2019 15:01:09 -0400 writes:
> In case a search engine leads someone with the same issue
> here, I am documenting the point I reached:
> I can reproduce the issue with a small example when
> forcing R to not load any package at startup time (using
> an Renviron file): ``` package <-
2006 Jun 12
1
Link error with glibc-2.4 on linux/PPC (PR#8967)
...k/build-default-powerpc-unknown-linux-gnu-nptl/csu/crti.S:18:
relocation truncated to fit: R_PPC_GOT16 against undefined symbol
`__gmon_start__'
CConverters.o: In function `do_setToCConverterActiveStatus':
CConverters.c:(.text+0x522): relocation truncated to fit: R_PPC_GOT16 against
symbol `R_NaInt' defined in .sbss section in main.o
CConverters.c:(.text+0x556): relocation truncated to fit: R_PPC_GOT16 against
symbol `R_FunTab' defined in .data.rel section in names.o
CConverters.o: In function `R_converterMatchClass':
CConverters.c:(.text+0x71a): relocation truncated to fit: R_PPC...
2015 Sep 21
0
Long vectors: Missing values and R_xlen_t?
On Sep 20, 2015, at 3:06 PM, Henrik Bengtsson <henrik.bengtsson at ucsf.edu> wrote:
> Is there a missing value constant defined for R_xlen_t, cf. NA_INTEGER
> (== R_NaInt == INT_MIN) for int(eger)? If not, is it correct to
> assume that missing values should be taken care/tested for before
> coercing from int or double?
>
R_xlen_t is type of the vector length (see XLENGTH()) and as such never holds a missing value (since there is no such thing as a missi...
2004 Feb 02
0
problem building R on HPUX 11.23
...X11.lo
ld: Unsatisfied symbol "R_GlobalEnv" in file dataentry.lo
ld: Unsatisfied symbol "R_setX11Routines" in file devX11.lo
ld: Unsatisfied symbol "Rf_devNumber" in file devX11.lo
ld: Unsatisfied symbol "Rf_elt" in file devX11.lo
ld: Unsatisfied symbol "R_NaInt" in file dataentry.lo
I assume I need to link in an R library built earlier; which library would
I need?
Please reply directly, as I am not on the list.
Thanks
Chuck Fisher
chuck at uky.edu
2009 May 02
1
integer ranges in R vs C and Java
Hello,
I'm using R-2.9 and have a question about integer ranges. On C, (OS X
platform),
LONG_MIN and LONG_MAX(from limits.h) correspond to -2147483648(-2^31)
and 2147483647 (2^31-1)
In Java(1.4), Integer.MIN_VALUE and Integer.MAX_VALUE have the same values.
On R, as.integer(2^31-1) is the maximum (without returning NA) but the
lowest is -2147483647 (-2^31+1)
> as.integer((-2)^31)
[1] NA
2011 Aug 29
3
How to safely using OpenMP pragma inside a .C() function?
I am trying to parallelize part of a C function that is called from R (via
.C) using OpenMP's "parallel for" pragma. I get mixed results: some runs
finish with no problem, but some lead to R crashing after issuing a long
error message involving memory violations.
I found this post, which describes how a .Call() function can be made to
avoid crashing R by raising the stack limit:
2002 Jan 17
1
MKL seems to beat ATLAS, but some problems... (was RE: li nkin g R against MKL)
....so.6 (0x402a2000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
libgpm.so.1 => /usr/lib/libgpm.so.1 (0x40389000)
undefined symbol: R_NamesSymbol (./lapack.so)
undefined symbol: R_NilValue (./lapack.so)
undefined symbol: R_DimSymbol (./lapack.so)
undefined symbol: R_NaInt (./lapack.so)
undefined symbol: Rf_isString (./lapack.so)
undefined symbol: STRING_ELT (./lapack.so)
undefined symbol: Rf_isComplex (./lapack.so)
undefined symbol: Rf_duplicate (./lapack.so)
undefined symbol: LENGTH (./lapack.so)
undefined symbol: Rf_allocMatrix (./lapack...
2002 Jan 17
1
MKL seems to beat ATLAS, but some problems... (was RE: li nkin g R against MKL)
....so.6 (0x402a2000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
libgpm.so.1 => /usr/lib/libgpm.so.1 (0x40389000)
undefined symbol: R_NamesSymbol (./lapack.so)
undefined symbol: R_NilValue (./lapack.so)
undefined symbol: R_DimSymbol (./lapack.so)
undefined symbol: R_NaInt (./lapack.so)
undefined symbol: Rf_isString (./lapack.so)
undefined symbol: STRING_ELT (./lapack.so)
undefined symbol: Rf_isComplex (./lapack.so)
undefined symbol: Rf_duplicate (./lapack.so)
undefined symbol: LENGTH (./lapack.so)
undefined symbol: Rf_allocMatrix (./lapack...
2004 Mar 13
0
64bit build on IBM
...or
ld: 0711-317 ERROR: Undefined symbol: .Rf_coerceVector
ld: 0711-317 ERROR: Undefined symbol: .Rf_install
ld: 0711-317 ERROR: Undefined symbol: R_GlobalEnv
ld: 0711-317 ERROR: Undefined symbol: .Rf_GetOption
ld: 0711-317 ERROR: Undefined symbol: .Rf_asInteger
ld: 0711-317 ERROR: Undefined symbol: R_NaInt
ld: 0711-317 ERROR: Undefined symbol: .Rf_length
ld: 0711-317 ERROR: Undefined symbol: .Rf_nthcdr
ld: 0711-317 ERROR: Undefined symbol: .R_strtod
ld: 0711-317 ERROR: Undefined symbol: .Rf_isBlankString
ld: 0711-317 ERROR: Undefined symbol: R_NaReal
ld: 0711-317 ERROR: Undefined symbol: .UNIMPLEMENT...
2008 May 07
1
[BioC] RCurl loading problem with 64 bit linux distribution
...oryTickets
0000000000006c70 T RCurl_releaseMemoryTickets
U REAL
U R_CHAR
U R_ClassSymbol
U R_ExternalPtrAddr
U R_ExternalPtrTag
U R_GlobalEnv
U R_MakeExternalPtr
U R_NaInt
U R_NamesSymbol
U R_NilValue
U R_PreserveObject
U R_RegisterCFinalizer
U R_ReleaseObject
U R_alloc
0000000000003a90 T R_base64_decode
0000000000003910 T R_base64_encode
0000000000005060 T R_call_R_...
2008 May 07
1
[BioC] RCurl loading problem with 64 bit linux distribution
...oryTickets
0000000000006c70 T RCurl_releaseMemoryTickets
U REAL
U R_CHAR
U R_ClassSymbol
U R_ExternalPtrAddr
U R_ExternalPtrTag
U R_GlobalEnv
U R_MakeExternalPtr
U R_NaInt
U R_NamesSymbol
U R_NilValue
U R_PreserveObject
U R_RegisterCFinalizer
U R_ReleaseObject
U R_alloc
0000000000003a90 T R_base64_decode
0000000000003910 T R_base64_encode
0000000000005060 T R_call_R_...
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)
...include -DHAVE_CONFIG_H -std1 -ieee_with_inexact
-I/soft/readline/v4.2.1/include -c rbitmap.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...