Category : r

I’m doing a package using ‘Rcpp’ and it contains this function: Eigen::MatrixXcd matricesToMatrixXcd(const Eigen::MatrixXd& Re, const Eigen::MatrixXd& Im) { return Re.cast<std::complex<double>>() + 1i * Im.cast<std::complex<double>>(); } Here, 1i is the unit imaginary number. I submitted the package to CRAN but the R CHECK on Debian generates this warning: * checking whether package ‘EigenR’ can be ..

Read more

I´m having problems with the "rstatix" package installation. When the installation finishes and I try to run the library, I get this message: Error: package or namespace load failed for ‘rstatix’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): namespace ‘vctrs’ 0.2.0 is being loaded, but >= 0.3.2 is required In addition: Warning message: ..

Read more

I’m using Ubuntu 18.04 and I’m trying to use OpenMP to enable the Eigen parallelization. My C++ code has many matrix products so the Eigen parallelization should play a role. However, I don’t observe any difference of speed. In the Makevars file, I have: PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) CXX_STD = CXX11 PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) In the ..

Read more