Displaying 20 results from an estimated 61 matches for "sexprec".
2008 Apr 03
2
g++ 4.3 warning: deprecated conversion from string constant to ‘char*’
...example output below. Each warning corresponds to
an Rprintf call.
andy at friend:~/Rdevel/tmp$ R CMD SHLIB splmDIC.cpp covmodel.cpp util.cpp
g++-4.3 -I/usr/local/lib/R/include -I/usr/local/lib/R/include
-I/usr/local/include -fpic -g -O2 -c splmDIC.cpp -o splmDIC.o
splmDIC.cpp: In function ?SEXPREC* splmDIC(SEXPREC*, SEXPREC*, SEXPREC*,
SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*,
SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*,
SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*)?:
splmDIC.cpp:163: warning: deprecated conversion from st...
2004 Feb 17
2
interfacing C++ using .Call
...SHLIB test.cpp
making test.d from test.cpp
g++ -Id:/R/rw1081/src/include -Wall -O2 -c test.cpp -o test.o
ar cr test.a *.o
ranlib test.a
g++ --shared -s -o test.dll test.def test.a
-Ld:/R/rw1081/src/gnuwin32 -lg2c -lR
test.a(test.o.b)(.text+0x61):test.cpp: undefined reference to
`Rf_length(SEXPREC*)'
test.a(test.o.b)(.text+0x6e):test.cpp: undefined reference to
`Rf_isNewList(SEXPREC*)'
test.a(test.o.b)(.text+0x82):test.cpp: undefined reference to
`Rf_isFunction(SEXPREC*)'
test.a(test.o.b)(.text+0x99):test.cpp: undefined reference to
`Rf_isEnvironment(SEXPREC*)'
test.a(test...
2017 Feb 22
0
Crash in the latest release
...CholmodDecomposition() (in /home/therneau/Rlib/lme4/libs/lme4.so)
==31901== by 0xD8B39B8: lme4::lme4CholmodDecomposition<Eigen::SparseMatrix<double, 0,
int>, 1>::lme4CholmodDecomposition() (in /home/therneau/Rlib/lme4/libs/lme4.so)
==31901== by 0xD8AEBE4: lme4::merPredD::merPredD(SEXPREC*, SEXPREC*, SEXPREC*,
SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*,
SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*) (in /home/therneau/Rlib/lme4/libs/lme4.so)
==31901== by 0xD8727F1: merPredDCreate (in /home/therneau/Rlib/lme4/libs/lme4.so)
==31901...
2017 Feb 22
0
[Lme4-authors] Crash in the latest release
...n() (in /home/therneau/Rlib/lme4/libs/lme4.so)
> ==31901== by 0xD8B39B8:
> lme4::lme4CholmodDecomposition<Eigen::SparseMatrix<double, 0, int>,
> 1>::lme4CholmodDecomposition() (in /home/therneau/Rlib/lme4/libs/lme4.so)
> ==31901== by 0xD8AEBE4: lme4::merPredD::merPredD(SEXPREC*, SEXPREC*,
> SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*,
> SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*,
> SEXPREC*) (in /home/therneau/Rlib/lme4/libs/lme4.so)
> ==31901== by 0xD8727F1: merPredDCreate (in
> /home/therneau/Rlib/lme...
2011 Aug 13
1
Latent flaw in SEXPREC definition
There seems to be a latent flaw in the definition of struct SEXPREC
in Rinternals.h, which likely doesn't cause problems now, but could
if the relative sizes of data types changes.
The SEXPREC structure contains a union that includes a primsxp,
symsxp, etc, but not a vecsxp. However, in allocVector in memory.c,
zero-length vectors are allocated using allocSEx...
2005 Apr 25
1
Failed to install gbm_1.4-2 (PR#7814)
...-I/usr/local/include -fPIC -O2 -c
gbm.cpp -o gbm.o
g++ -I/package/R/2.0.1-32bit/lib/R/include -I/usr/local/include -fPIC -O2 -c
gbm_engine.cpp -o gbm_engine.o
g++ -I/package/R/2.0.1-32bit/lib/R/include -I/usr/local/include -fPIC -O2 -c
gbmentry.cpp -ogbmentry.o
gbmentry.cpp: In function `SEXPREC* gbm_shrink_pred(SEXPREC*, SEXPREC*,
SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*,
SEXPREC*)':
gbmentry.cpp:677: error: `NAN' undeclared (first use this function)
gbmentry.cpp:677: error: (Each undeclared identifier is reported only once for
each function it appears...
2010 May 04
1
errors when installing rjags
...configure: creating ./config.status
config.status: creating src/Makevars
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/unix/zzz.R
** libs
g++ -I/usr/share/R/include -I/usr/include/JAGS -fpic -g -O2 -c jags.cc -o jags.o
jags.cc: In function ?SEXPREC* set_default_monitors(SEXPREC*, SEXPREC*, SEXPREC*)?:
jags.cc:427: error: ?class Console? has no member named ?setDefaultMonitors?
jags.cc: In function ?SEXPREC* clear_default_monitors(SEXPREC*, SEXPREC*)?:
jags.cc:444: error: ?class Console? has no member named ?clearDefaultMonitors?
jags.cc: In f...
2013 May 14
2
invalid operands of types ‘SEXPREC*’ and ‘R_len_t’ to binary ‘operator/’ with Rcpp.
...ing how to use Rcpp. Earlier while using it, I
encountered an error as shown below:
file74d8254b96d4.cpp: In function ‘Rcpp::NumericVector
foo(Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector,
Rcpp::Function, Rcpp::Function)’:
file74d8254b96d4.cpp:10: error: invalid operands of types ‘SEXPREC*’ and
‘R_len_t’ to binary ‘operator/’
make: *** [file74d8254b96d4.o] Error 1
Below is a mock function that can reproduce this error. I wonder if anyone
can tell me what is the problem here. Thank you in advance!!
foo<-cppFunction('
NumericVector foo(NumericVector q, NumericVector shape1...
2017 Mar 29
3
Transferring ownership of R-managed buffer
I have a use case where I would like to create an SEXP around an existing
buffer that is managed by R, thus avoiding a copy operation. If I have
something like:
void *p = (void*) RAW(PROTECT(Rf_allocVector(RAWSXP, n)));
... additional maniupulation ...
SEXP x = somefunc(SXPTYPE, n, p); // ????
Is there a "placement" constructor available? (I have arranged for the
corresponding
2017 Mar 29
2
Transferring ownership of R-managed buffer
...I've looked at and experimented with R_allocator
>> and allocVector3, but can't quite get it right. I know this is odd, but it
>> makes sense for my use case.
>>
>
> Not sure I follow what you are trying to do. Note that an SEXP is a
> pointer to a C struct called SEXPREC. I think that trying to point an
> SEXPREC struct to data pointed to by an existing SEXPREC struct is very
> likely to lead to a disaster.
>
Possibly (although that is not what I am proposing). I'm still trying to
grok where the state resides (all in the SEXPREC or between that and th...
2008 Feb 19
1
level of mutability for the type of a SEXP
Dear list,
I am writing C code to interface with R, and I would like to know the
level of mutability for the type of a SEXP.
I see that there is a macro/function TYPEOF(), and that it can be used
as an l-value, as well as a macro/function SET_TYPEOF().
My question is "should the type be considered immutable, or it can it
change after the SEXP has been created and used for a while ?".
2009 Oct 04
3
error installing/compiling kernlab
Hi everybody,
I''m using R on a 64-bit Ubuntu 9.04 (Jaunty). I prefer to install R
packages from source, even if they are available in Synaptic. The
problem is that I can''t install/compile kernlab. Everything works fine
until it gets to the lazy loading part:
** preparing package for lazy loading
Creating a new generic function for "terms" in "kernlab"
2011 Jan 20
1
Calling C++ from R
...nif" in the C++
code. When I use "R CMD check" the package, it always return error
** libs
making DLL ...
g++ -I"c:/PROGRA~2/R/R-210~1.1/include"
-I"c:/PROGRA~2/R/R-210~1.1/library/Rcpp/include" -O2 -Wall -c func.cpp
-o func.o
func.cpp: In function 'SEXPREC* myfunction(SEXPREC*, SEXPREC*)':
func.cpp:220: error: 'rgamma' was not declared in this scope
func.cpp:225: error: 'rnorm' was not declared in this scope
func.cpp:244: error: 'runif' was not declared in this scope
func.cpp:274: error: 'rbeta' was not declared in...
2017 Mar 29
0
Transferring ownership of R-managed buffer
...> R_allocator
> >> and allocVector3, but can't quite get it right. I know this is odd, but
> it
> >> makes sense for my use case.
> >>
> >
> > Not sure I follow what you are trying to do. Note that an SEXP is a
> > pointer to a C struct called SEXPREC. I think that trying to point an
> > SEXPREC struct to data pointed to by an existing SEXPREC struct is very
> > likely to lead to a disaster.
> >
>
> Possibly (although that is not what I am proposing). I'm still trying to
> grok where the state resides (all in the S...
2009 Jan 05
1
can't get names of R_env
...w to access these enviroment variables.
I believe my problem lies in the sentence "A frame is a tagged
pairlist with tag the symbol and CAR the bound value."
Or more precisely, I don't quite understand the struct for env exp
--------------------------
struct envsxp_struct {
struct SEXPREC *frame;
struct SEXPREC *enclos;
struct SEXPREC *hashtab;
};
--------------------------
thanks in advance.
2012 May 03
1
Setting up a windows system for rcpp
...ods<14>: symbol not defined
Cannot export typeinfo name for std::exception: symbol not defined
Cannot export vtable for Rcpp::Vector<14>: symbol not defined
Cannot export _file10bc7da0783e: symbol not defined
file10bc7da0783e.o:file10bc7da0783e.cpp:(.text+0x1a4): undefined reference to `SEXPREC* Rcpp::internal::r_true_cast<14>(SEXPREC*)'
file10bc7da0783e.o:file10bc7da0783e.cpp:(.text+0x1c9): undefined reference to `Rcpp::RObject::setSEXP(SEXPREC*)'
file10bc7da0783e.o:file10bc7da0783e.cpp:(.text+0x244): undefined reference to `double* Rcpp::internal::r_vector_start<14, dou...
2017 May 16
1
Fail to install xgboost
...luded from ./dmlc-core/include/dmlc/logging.h:15,
from xgboost_R.cc:2:
./dmlc-core/include/dmlc/./base.h:71: note: #pragma message: Will need
g++-4.6 or higher to compile allthe features in dmlc-core, compile
without c++0x, some features may be disabled
xgboost_R.cc: In function ???SEXPREC* XGBoosterSetAttr_R(SEXPREC*,
SEXPREC*, SEXPREC*)???:
xgboost_R.cc:412: error: ???nullptr??? was not declared in this scope
make: *** [xgboost_R.o] Error 1
ERROR: compilation failed for package ???xgboost???
* removing ???/home/sjtu/R/x86_64-redhat-linux-gnu-library/3.3/xgboost???
The downloaded s...
2008 Mar 11
1
Rtools and GCC4 problem
>>
I am trying to compile rseries from Whit Armstrong and a colleague of mine found
a problem with using GCC4
I get the following error when compiling rseries
g++-sjlj -Ic:/R/include -O2 -Wall -c Rutils.cpp -o Rutils.o
Rutils.cpp: In function 'double* getColPointer(SEXPREC*, int)':
Rutils.cpp:406: warning: deprecated conversion from string constant to 'char*'
g++-sjlj -Ic:/R/include -O2 -Wall -c array.cpp -o array.o
g++-sjlj -Ic:/R/include -O2 -Wall -c interface.cpp -o interface.o
In file included from interface.hpp:1,
from...
2018 Mar 14
0
R crashing with a segmentation fault: how to locate the cause
...nts).
Any help would be appreciated.
Thanks,
Eric
==12589== Invalid read of size 1
==12589== at 0x4C2F1B1: strcmp (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==12589== by 0x4F71AC1: Rf_inherits (in /usr/lib/R/lib/libR.so)
==12589== by 0x11AFED3A: dplyr::subset_visitor_vector(SEXPREC*)
(subset_visitor_impl.h:51)
==12589== by 0x11AFF58C: dplyr::subset_visitor(SEXPREC*,
dplyr::SymbolString const&) (subset_visitor_impl.h:21)
==12589== by 0x11AFEC18:
dplyr::DataFrameSubsetVisitors::DataFrameSubsetVisitors(Rcpp::DataFrame_Impl<Rcpp::PreserveStorage>
const&) (Data...
2017 Mar 29
0
Transferring ownership of R-managed buffer
...gt; corresponding UNPROTECT.) I've looked at and experimented with R_allocator
> and allocVector3, but can't quite get it right. I know this is odd, but it
> makes sense for my use case.
Not sure I follow what you are trying to do. Note that an SEXP is a
pointer to a C struct called SEXPREC. I think that trying to point an
SEXPREC struct to data pointed to by an existing SEXPREC struct is very
likely to lead to a disaster.
Note that if the existing buffer managed by R is an SEXP (e.g. b) and
your code has access to this SEXP then you don't need to create another
SEXP around its d...