Displaying 15 results from an estimated 15 matches for "r_char".
Did you mean:
x_char
2001 Dec 19
2
R strings from C
Hi,
I am trying to study R internal behaviour. So long, I have not
succeeded to access the value of R strings from C.
I use:
void salvesta_tabel(
SEXP data_frame,
SEXP file
)
{
printf( "nimi %d\n", (R_CHAR)( file));
}
and from the R side:
salvesta.tabel <-
function (x, file = "") {
.Call( "salvesta_tabel", x, file)
}
When calling from R as
salvesta.tabel( x, "file")
R always crashes while printing the %d part. So I assume that the
function R_CHAR is not...
2009 Feb 27
1
R_CHAR + 21 (memory.c:2573) in crash report...
...something I'm doing incorrectly. I've been using
this code for months now, and added another column to the type
definition, which seemed to break something.
Does the following indicate that libR.dylib is causing this crash?
Thread 0 Crashed:
0 libR.dylib 0x015d4a35 R_CHAR + 21 (memory.c:2573)
1 plr.so 0x007ce329 get_frame_tuplestore + 1001
2 plr.so 0x007ce854 r_get_pg + 356
3 plr.so 0x007cc2ab plr_call_handler + 363
4 postgres 0x0010483a
ExecMakeTableFunctionResult...
2017 Feb 20
1
another fix for R crashes under enable-strict-barrier, lto, trunk@72156
On 2nd thought, I think a better fix to the segfault is something like this:
--- a/src/main/memory.c
+++ b/src/main/memory.c
@@ -3444,6 +3444,8 @@ R_xlen_t (XTRUELENGTH)(SEXP x) { return XTRUELENGTH(CHK2(x)); }
int (IS_LONG_VEC)(SEXP x) { return IS_LONG_VEC(CHK2(x)); }
const char *(R_CHAR)(SEXP x) {
+ if(!x)
+ error("de-referncing null. Check the validity of your data.");
if(TYPEOF(x) != CHARSXP)
error("%s() can only be applied to a '%s', not a '%s'",
"CHAR", "CHARSXP", type2char(TYPEOF(x)));...
2017 Feb 11
1
another fix for R crashes under enable-strict-barrier, lto, trunk@72156
...rumentation=2 --enable-lto
current R dev crashes in make check-all . The fix is this:
--- a/src/main/memory.c
+++ b/src/main/memory.c
@@ -3444,7 +3444,7 @@ R_xlen_t (XTRUELENGTH)(SEXP x) { return XTRUELENGTH(CHK2(x)); }
int (IS_LONG_VEC)(SEXP x) { return IS_LONG_VEC(CHK2(x)); }
const char *(R_CHAR)(SEXP x) {
- if(TYPEOF(x) != CHARSXP)
+ if(x && (TYPEOF(x) != CHARSXP))
error("%s() can only be applied to a '%s', not a '%s'",
"CHAR", "CHARSXP", type2char(TYPEOF(x)));
return (const char *)CHAR(x);
It is a fai...
2008 Jul 17
2
AIX 5.3 --enable-R-shlib --with-x ---with-iconv make error with R-2.7.0 and R-2.7.1
...ibrary/tools/libs/tools.so(), but a runtime
definition
of the symbol was not found.
rtld: 0712-001 Symbol LENGTH was referenced
from module
/my_buildR_dir/R-2.7.1/library/tools/libs/tools.so(), but a runtime
definition
of the symbol was not found.
rtld: 0712-001 Symbol R_CHAR was referenced
from module
/my_buildR_dir/R-2.7.1/library/tools/libs/tools.so(), but a runtime
definition
of the symbol was not found.
rtld: 0712-001 Symbol Rf_isString was referenced
from module
/my_buildR_dir/R-2.7.1/library/tools/libs/tools.so(), but a runtime
definition...
2012 May 07
0
R CMD check, interfacing c++ linking errors
...rence to `VECTOR_ELT'
conf-infomap.cpp:(.text+0x1000e): undefined reference to `INTEGER'
conf-infomap.cpp:(.text+0x1001c): undefined reference to `INTEGER'
conf-infomap.cpp:(.text+0x10071): undefined reference to `STRING_ELT'
conf-infomap.cpp:(.text+0x10079): undefined reference to `R_CHAR'
conf-infomap.cpp:(.text+0x10099): undefined reference to `REAL'
conf-infomap.cpp:(.text+0x1022d): undefined reference to `LENGTH'
conf-infomap.cpp:(.text+0x1023c): undefined reference to `VECTOR_ELT'
conf-infomap.cpp:(.text+0x10244): undefined reference to `LENGTH'
conf-infomap...
2012 May 08
0
R CMD check, c++ source linking errors
...rence to `VECTOR_ELT'
conf-infomap.cpp:(.text+0x1000e): undefined reference to `INTEGER'
conf-infomap.cpp:(.text+0x1001c): undefined reference to `INTEGER'
conf-infomap.cpp:(.text+0x10071): undefined reference to `STRING_ELT'
conf-infomap.cpp:(.text+0x10079): undefined reference to `R_CHAR'
conf-infomap.cpp:(.text+0x10099): undefined reference to `REAL'
conf-infomap.cpp:(.text+0x1022d): undefined reference to `LENGTH'
conf-infomap.cpp:(.text+0x1023c): undefined reference to `VECTOR_ELT'
conf-infomap.cpp:(.text+0x10244): undefined reference to `LENGTH'
conf-infomap...
2012 May 08
1
R CMD check linking errors, when interfacing c++
...rence to `VECTOR_ELT'
conf-infomap.cpp:(.text+0x1000e): undefined reference to `INTEGER'
conf-infomap.cpp:(.text+0x1001c): undefined reference to `INTEGER'
conf-infomap.cpp:(.text+0x10071): undefined reference to `STRING_ELT'
conf-infomap.cpp:(.text+0x10079): undefined reference to `R_CHAR'
conf-infomap.cpp:(.text+0x10099): undefined reference to `REAL'
conf-infomap.cpp:(.text+0x1022d): undefined reference to `LENGTH'
conf-infomap.cpp:(.text+0x1023c): undefined reference to `VECTOR_ELT'
conf-infomap.cpp:(.text+0x10244): undefined reference to `LENGTH'
conf-infomap...
2002 Jan 02
1
Building R-1.4 on Tru64
...Rf_unprotect
Rf_duplicate
Rf_VectorToPairList
R_NilValue
Rf_NewEnvironment
R_set_standardGeneric_ptr
R_GlobalEnv
R_set_quick_method_check
Rf_install
Rf_allocVector
LOGICAL
R_PreserveObject
Rf_mkChar
SET_STRING_ELT
Rf_findVar
R_UnboundValue
VECTOR_ELT
R_NamesSymbol
Rf_getAttrib
Rf_length
STRING_ELT
R_CHAR
R_do_slot
Rf_asChar
PRINTNAME
Rf_isNull
CAR
CDR
R_data_class
Rf_isFunction
Rf_findFun
SETCAR
Rf_eval
INTEGER
CLOENV
Rf_findVarInFrame
Rf_isSymbol
ENCLOS
SYMVALUE
Rf_asLogical
R_MissingArg
Rf_isPrimitive
do_set_prim_method
BODY
R_deferred_default_method
PREXPR
PRENV
R_DotsSymbol
DDVAL
R_set_prim_met...
2002 Jan 17
1
MKL seems to beat ATLAS, but some problems... (was RE: li nkin g R against MKL)
...Matrix (./lapack.so)
undefined symbol: Rf_coerceVector (./lapack.so)
undefined symbol: Rf_mkChar (./lapack.so)
undefined symbol: R_alloc (./lapack.so)
undefined symbol: SET_STRING_ELT (./lapack.so)
undefined symbol: Rf_allocVector (./lapack.so)
undefined symbol: R_CHAR (./lapack.so)
undefined symbol: Rf_unprotect_ptr (./lapack.so)
undefined symbol: SET_VECTOR_ELT (./lapack.so)
undefined symbol: Rf_isMatrix (./lapack.so)
undefined symbol: R_setLapackRoutines (./lapack.so)
undefined symbol: Rf_protect (./lapack.so)
undefined symbol: VECTOR...
2002 Jan 17
1
MKL seems to beat ATLAS, but some problems... (was RE: li nkin g R against MKL)
...Matrix (./lapack.so)
undefined symbol: Rf_coerceVector (./lapack.so)
undefined symbol: Rf_mkChar (./lapack.so)
undefined symbol: R_alloc (./lapack.so)
undefined symbol: SET_STRING_ELT (./lapack.so)
undefined symbol: Rf_allocVector (./lapack.so)
undefined symbol: R_CHAR (./lapack.so)
undefined symbol: Rf_unprotect_ptr (./lapack.so)
undefined symbol: SET_VECTOR_ELT (./lapack.so)
undefined symbol: Rf_isMatrix (./lapack.so)
undefined symbol: R_setLapackRoutines (./lapack.so)
undefined symbol: Rf_protect (./lapack.so)
undefined symbol: VECTOR...
2008 May 07
1
[BioC] RCurl loading problem with 64 bit linux distribution
...0003fe0 T RCurlVersionInfoToR
0000000000006d00 T RCurl_addMemoryAllocation
0000000000006c90 T RCurl_addMemoryTicket
0000000000006b50 T RCurl_getMemoryManager
0000000000006b80 T RCurl_releaseManagerMemoryTickets
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...
2008 May 07
1
[BioC] RCurl loading problem with 64 bit linux distribution
...0003fe0 T RCurlVersionInfoToR
0000000000006d00 T RCurl_addMemoryAllocation
0000000000006c90 T RCurl_addMemoryTicket
0000000000006b50 T RCurl_getMemoryManager
0000000000006b80 T RCurl_releaseManagerMemoryTickets
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...
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)
...line
-ltermcap -lm
ld:
Warning: Unresolved:
R_NaInt
Rf_error
R_alloc
R_NilValue
R_DimSymbol
R_NamesSymbol
Rf_coerceVector
Rf_allocMatrix
Rf_allocVector
Rf_asLogical
Rf_duplicate
Rf_getAttrib
Rf_isComplex
Rf_isMatrix
Rf_isString
Rf_mkChar
Rf_protect
Rf_setAttrib
Rf_unprotect
Rf_unprotect_ptr
LENGTH
R_CHAR
STRING_ELT
SET_STRING_ELT
VECTOR_ELT
SET_VECTOR_ELT
INTEGER
REAL
COMPLEX
R_setLapackRoutines
xerbla_
dswap_
dscal_
drot_
lsame_
idamax_
dgemm_
dcopy_
dnrm2_
dgemv_
dasum_
dtrmv_
daxpy_
ddot_
dger_
dtrmm_
dsymv_
dtrsv_
dsyr2_
dsyr2k_
gmake[5]: Entering directory `/soft/R/R-1.5.1/src/modules/lapack...