Thanks for the reply. The solution of requiring the namespace from within Rcpp
hadn't occurred to me.
I had used Environment::namespace_env("pkg_name") before, but I think the
problem here is that lazy-loaded (and maybe other elements we expect in R) are
not available if this is done from Rcpp.
On Mon, Apr 09, 2018 at 07:09:55AM -0500, Dirk Eddelbuettel wrote:
>
> On 9 April 2018 at 07:22, Wasey, Jack O wrote:
> | Dear Rcpp developers,
> |
> | I'm having trouble with a reproducible error when wrapping a big Eigen
> dense matrix.
> |
> | Rcpp::LogicalMatrix mat_out_bool = Rcpp::wrap(re
I've seen it said that calling Rf_error is the cause of the new hang
with Rtools33, quoting my example in (closed) github issue
https://github.com/RcppCore/Rcpp/issues/276
Just to be clear, the calling Rcpp::stop hung in exactly the same way,
but I did at that time also demonstrate the bug usi
Dirk,
I'm on Rcpp 0.11.5
Here are the steps:
1. in R:
```
library(Rcpp)
Rcpp.package.skeleton(attributes = TRUE, example_code = TRUE,
name="majortest")
```
2. create majortest/src/Makevars containing:
```
PKG_CXXFLAGS = $(CXX1XSTD)
```
3. Edit rcpp_hello_world.cpp replacing:
```
List rcpp_hel
Dear All,
I followed your interesting and detailed discussion about the problem in
Rcpp 0.11.3 which resulted in compilation failure with "major", "minor"
or "makedev" as function arguments due to leakage from system headers on
Linux.
https://github.com/RcppCore/Rcpp/issues/227
I am posting foll
I figured it out: attribute is called "dimnames" not ".Dimnames".
> .Internal(inspect(rmat))
@34d39b0 10 LGLSXP g0c2 [MARK,NAM(2),ATT] (len=4, tl=0) 1,1,0,0
ATTRIB:
@32b8228 02 LISTSXP g0c0 [MARK]
TAG: @e83798 01 SYMSXP g1c0 [MARK,LCK,gp=0x4000] "dim" (has value)
@33d78c8 13 INTSXP g0c1
Hello,
I am trying to return a matrix derived from a std::vector with row
names.
I followed the advice of Kevin and Dirk I read at
https://stackoverflow.com/questions/19864226/convert-stdvector-to-rcpp-matrix
Strangely, the matrix is correct, but when I print it in R, it prints
differently to de