Displaying 20 results from an estimated 22 matches for "r_classsymbol".
2015 Aug 31
2
R doesn't compile on FreeBSD 10.2
...ibrary/tools/libs
--- sysdata ---
installing 'sysdata.rda'
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/home/davor/R-3.2.2/library/tools/libs/tools.so':
/usr/home/davor/R-3.2.2/library/tools/libs/tools.so: Undefined symbol "R_ClassSymbol"
Error: unable to load R code in package 'tools'
Execution halted
> Here is a series of checks for that symbol (results from a working Linux
> system):
>
> auk% nm -g bin/exec/R | grep R_ClassSymbol
> 0000000000962ec0 B R_ClassSymbol
>
> auk% nm -g src/main/...
2015 Aug 31
2
R doesn't compile on FreeBSD 10.2
...rary/tools/libs
installing 'sysdata.rda'
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/home/davor/R-dev/R-trunk/library/tools/libs/tools.so':
/usr/home/davor/R-dev/R-trunk/library/tools/libs/tools.so: Undefined symbol "R_ClassSymbol"
Error: unable to load R code in package 'tools'
Execution halted
*** Error code 1
Stop.
make[4]: stopped in /usr/home/davor/R-dev/R-trunk/src/library/tools
The system is running a 64-bit FreeBSD 10.2-RELEASE-p4, with clang 3.4.1
and gfortran 4.8.5.
Configure log...
2015 Sep 01
2
R doesn't compile on FreeBSD 10.2
...;> installing 'sysdata.rda'
>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>> unable to load shared object '/usr/home/davor/R-3.2.2/library/tools/libs/tools.so':
>> /usr/home/davor/R-3.2.2/library/tools/libs/tools.so: Undefined symbol "R_ClassSymbol"
>> Error: unable to load R code in package 'tools'
>> Execution halted
>>
>>> Here is a series of checks for that symbol (results from a working Linux
>>> system):
>>>
>>> auk% nm -g bin/exec/R | grep R_ClassSymbol
>>&...
2015 Sep 01
0
R doesn't compile on FreeBSD 10.2
...sysdata ---
> installing 'sysdata.rda'
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
> unable to load shared object '/usr/home/davor/R-3.2.2/library/tools/libs/tools.so':
> /usr/home/davor/R-3.2.2/library/tools/libs/tools.so: Undefined symbol "R_ClassSymbol"
> Error: unable to load R code in package 'tools'
> Execution halted
>
>> Here is a series of checks for that symbol (results from a working Linux
>> system):
>>
>> auk% nm -g bin/exec/R | grep R_ClassSymbol
>> 0000000000962ec0 B R_ClassSy...
2015 Sep 01
0
R doesn't compile on FreeBSD 10.2
...ling 'sysdata.rda'
>>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>>> unable to load shared object '/usr/home/davor/R-3.2.2/library/tools/libs/tools.so':
>>> /usr/home/davor/R-3.2.2/library/tools/libs/tools.so: Undefined symbol "R_ClassSymbol"
>>> Error: unable to load R code in package 'tools'
>>> Execution halted
>>>
>>>> Here is a series of checks for that symbol (results from a working Linux
>>>> system):
>>>>
>>>> auk% nm -g bin/exec/R...
2015 Aug 31
0
R doesn't compile on FreeBSD 10.2
...installing 'sysdata.rda'
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
> unable to load shared object '/usr/home/davor/R-dev/R-trunk/library/tools/libs/tools.so':
> /usr/home/davor/R-dev/R-trunk/library/tools/libs/tools.so: Undefined symbol "R_ClassSymbol"
> Error: unable to load R code in package 'tools'
> Execution halted
> *** Error code 1
>
> Stop.
> make[4]: stopped in /usr/home/davor/R-dev/R-trunk/src/library/tools
>
> The system is running a 64-bit FreeBSD 10.2-RELEASE-p4, with cla...
2009 Mar 17
1
question on "row.names" attribute of dataframe when called from a compiled package
...;- data.frame(hat=1:10)
class(rownames(x)) ## returns [1] "character"
but when called from c/cpp, the rownames attribute has no class
attribute, and is in fact a vector of INTSXP?
> .Call("print_class_of_rownames", x, package = "test")
length(x): 10
TYPEOF(x): 13
R_ClassSymbol is null.
NULL
>
is this the intended behaviour?
-Whit
here is my test code:
SEXP print_class_of_rownames(SEXP dataframe_sexp) {
SEXP x = getAttrib(dataframe_sexp,install("row.names"));
cout << "length(x): " << length(x) << endl;
cout << &quo...
2019 Nov 01
3
R C api for 'inherits' S3 and S4 objects
...le for S4 classes. I would kindly request new function in R
C api so it can be achieved for S4 classes with no risk of allocation.
For reference mentioned functions below. Thank you.
Jan Gorecki
// S3 inheritance
bool INHERITS(SEXP x, SEXP char_) {
SEXP klass;
if (isString(klass = getAttrib(x, R_ClassSymbol))) {
for (int i=0; i<LENGTH(klass); i++) {
if (STRING_ELT(klass, i) == char_) return true;
}
}
return false;
}
// S4 inheritance
bool Rinherits(SEXP x, SEXP char_) {
SEXP vec = PROTECT(ScalarString(char_));
SEXP call = PROTECT(lang3(sym_inherits, x, vec));
bool ans = LOGI...
2014 Jun 24
2
using C code to create data frame but always return as list
...(%s,1)",dfname);
jl_value_t* rows=jl_eval_string(evalcmd);
int rowlen=jl_unbox_long(rows);
PROTECT(rownames=allocVector(INTSXP,rowlen));
for (i=0;i<rowlen;i++)
INTEGER(rownames)[i]=i+1;
setAttrib(ans,R_RowNamesSymbol,rownames);
UNPROTECT(1);
//set class as data frame
setAttrib(ans,R_ClassSymbol,mkString("data.frame"));
UNPROTECT(1);
return ans;
}
[[alternative HTML version deleted]]
2019 Nov 01
4
[External] R C api for 'inherits' S3 and S4 objects
...o it can be achieved for S4 classes with no risk of allocation.
> > For reference mentioned functions below. Thank you.
> > Jan Gorecki
> >
> > // S3 inheritance
> > bool INHERITS(SEXP x, SEXP char_) {
> > SEXP klass;
> > if (isString(klass = getAttrib(x, R_ClassSymbol))) {
> > for (int i=0; i<LENGTH(klass); i++) {
> > if (STRING_ELT(klass, i) == char_) return true;
> > }
> > }
> > return false;
> > }
> > // S4 inheritance
> > bool Rinherits(SEXP x, SEXP char_) {
> > SEXP vec = PROTECT(ScalarS...
2006 Jun 12
1
Link error with glibc-2.4 on linux/PPC (PR#8967)
...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_GOT16 against
symbol `R_ClassSymbol' defined in .sbss section in main.o
CConverters.c:(.text+0x7f2): relocation truncated to fit: R_PPC_GOT16 against
symbol `R_NilValue' defined in .sbss section in main.o
CommandLineArgs.o: In function `R_common_command_line':
CommandLineArgs.c:(.text+0x5e): relocation truncated to fit: R...
1999 May 11
1
another multivariate ts bug
I think this is another one of the same kind of bugs in ts:
Version 0.64.1 (May 8, 1999)
...
> z <- ts(matrix(1:20,10,2), start=c(1969,1), frequency=12)
> (z > 5) | (z < 2)
Error: invalid time series parameters specified
>
Paul
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read
2019 Nov 01
0
[External] R C api for 'inherits' S3 and S4 objects
...uest new function in R
> C api so it can be achieved for S4 classes with no risk of allocation.
> For reference mentioned functions below. Thank you.
> Jan Gorecki
>
> // S3 inheritance
> bool INHERITS(SEXP x, SEXP char_) {
> SEXP klass;
> if (isString(klass = getAttrib(x, R_ClassSymbol))) {
> for (int i=0; i<LENGTH(klass); i++) {
> if (STRING_ELT(klass, i) == char_) return true;
> }
> }
> return false;
> }
> // S4 inheritance
> bool Rinherits(SEXP x, SEXP char_) {
> SEXP vec = PROTECT(ScalarString(char_));
> SEXP call = PROTECT(lang...
2010 Jan 19
0
RSPerl help.
...g test.pl
program which is present in RSPerl/script directory but I am getting
the following error
Can't load
'/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/R/R.so' for
module R:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/R/R.so:
undefined symbol: R_ClassSymbol at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
at rpack.pl line 3
Compilation failed in require at rpack.pl line 3.
BEGIN failed--compilation aborted at rpack.pl line 3.
If you could resolve my problem, I will be thankful to you.
Thanks & Regards
Vijaya
2010 Jan 22
0
RSPerl installation problem.
Hi,
After installing RSPerl module, when I tried to test the module, I am
getting the following error.
Can't load
'/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/R/R.so' for
module R:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/R/R.so:
undefined symbol: R_ClassSymbol at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
at rpack.pl line 3
Compilation failed in require at rpack.pl line 3.
BEGIN failed--compilation aborted at rpack.pl line 3.
Please let me know the actual procedure, and what does this error means.
Thank you,
Vijaya
--
View...
2010 Jan 22
0
[Fwd: RSPerl help.]
...g test.pl
program which is present in RSPerl/script directory but I am getting
the following error
Can't load
'/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/R/R.so' for
module R:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/R/R.so:
undefined symbol: R_ClassSymbol at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
at rpack.pl line 3
Compilation failed in require at rpack.pl line 3.
BEGIN failed--compilation aborted at rpack.pl line 3.
If you could resolve my problem, I will be thankful to you.
Thanks & Regards
Vijaya
2014 Apr 03
1
question regarding lang2 command in C
Hi ,
I am asking too many questions , sorry for that . I am creating a data
frame in C itself , reading a table .
The data frame calling code looks like this
======================================
*PROTECT(dfm=lang2(install("data.frame"),df));*
*SEXP res = PROTECT(eval(dfm,R_GlobalEnv));*
UNPROTECT(2);
return res;
==================================
It works fine , now the problem
2019 Nov 01
0
[External] R C api for 'inherits' S3 and S4 objects
...for S4 classes with no risk of allocation.
>>> For reference mentioned functions below. Thank you.
>>> Jan Gorecki
>>>
>>> // S3 inheritance
>>> bool INHERITS(SEXP x, SEXP char_) {
>>> SEXP klass;
>>> if (isString(klass = getAttrib(x, R_ClassSymbol))) {
>>> for (int i=0; i<LENGTH(klass); i++) {
>>> if (STRING_ELT(klass, i) == char_) return true;
>>> }
>>> }
>>> return false;
>>> }
>>> // S4 inheritance
>>> bool Rinherits(SEXP x, SEXP char_) {
>>>...
2008 Sep 17
3
Dates in C api
r-devel,
I've been trying to write a C plugin for R, and I'm struggling to
understand how dates are represented.
I can create a date in R:
> mydate<-as.Date(1, origin="1900-01-01") mydate
[1] "1900-01-02"
When I pass my date to a plugin, though, it's type is that of a real.
There doesn't seem to be a date type in Rinternals.h, is there a way to
2008 May 07
1
[BioC] RCurl loading problem with 64 bit linux distribution
...ToR
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
U R_RegisterCFi...