search for: rcpparmadillo

Displaying 20 results from an estimated 64 matches for "rcpparmadillo".

2023 Sep 02
1
Fails to install Rfast package
...s clang++ -mmacosx-version-min=10.13 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.2/Resources/library/RcppArmadillo/include' -I/usr/local/include -fPIC -Wall -g -O2 -c Diag.cpp -o Diag.o In file included from Diag.cpp:4: In file included from /Library/Frameworks/R.framework/Versions/4.2/Resources/library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Library/Frameworks/R.framework/Ve...
2010 Sep 15
2
lapack in R 2.11.1 (Ubuntu 10.04.1)
Hi there, I'm trying to install the package RcppArmadillo in my R 2.11.1 which I installed and regularly update via Ubuntu's repositories. When I try to install RcppArmadillo from CRAN I get: > install.packages('RcppArmadillo', lib='~/myRlibs') [...] g++ -shared -o RcppArmadillo.so RcppArmadillo.o fastLm.o -L/home/matias/myRl...
2014 Jan 15
1
rbinom in RcppArmadillo?
What is the RcppArmadillo way to make binomial draws from a vector of probs, similar to what rbinom does in R? Thanx! -- View this message in context: http://r.789695.n4.nabble.com/rbinom-in-RcppArmadillo-tp4683593.html Sent from the R devel mailing list archive at Nabble.com.
2011 Dec 05
1
RcppArmadillo compilation error: R CMD SHLIB returns status 1
Dear all, running the example by D. Eddebuettel (http://dirk.eddelbuettel.com/blog/2011/04/23/) I get an error message. Specifically, the R code I was taking from the above example is ### BEGIN EXAMPLE ### suppressMessages(require(RcppArmadillo)) suppressMessages(require(Rcpp)) suppressMessages(require(inline)) code <- ' arma::mat coeff = Rcpp::as<arma::mat>(a); arma::mat errors = Rcpp::as<arma::mat>(e); int m = errors.n_rows; int n = errors.n_cols; arma::mat simdata(m,n); simdata.row(0) = arma::zeros<...
2020 Jan 14
2
possible bug in win R-devel in check/test environment
...dials development, I've came across a strange test failing during 'R CMD check' exclusively on win R-devel which I could reproduce with a minimal example that I present here. The toy packages testarma1 [1] and testarma2 [2] are minimal modifications of a skeleton package produced by RcppArmadillo.package.skeleton(). They are almost identical. The first one fails to passe its tests on win R-devel [3] while the second one is OK [4]. The reason of test failing in testarma1 boils down to not finding a package during tests (here RcppArmadillo) although it is well present in LinkingTo field of...
2016 Jan 10
3
coerce SEXP type to C++ matrix class and back
Dear all, I am testing a simple C++ function that takes a double matrix as argument and which uses routines provided by the C++ Armadillo package. I am aware of the nice capabilities of Rcpp and RcppArmadillo which helps simplifying a lot and that I have already successfully tested. However, I had a hard time trying to figure out how the coercion from a REALSPX matrix to an arma::mat = arma::Mat<double> matrix (double matrix in Armadillo) is done. In this particular case, because of the simplicity...
2011 Apr 15
1
[Rcpp-devel] Find number of elements less than some number: Elegant/fastsolution needed
...n R. ?I don't have the script on this computer so I will > post it tomorrow when I am back on the computer at the office. > > Apologies for cross-posting to the Rcpp-devel list but I am doing so > because this might make a good example of the usefulness of Rcpp and > inline. And RcppArmadillo, as the case may be. This is a cool little problem. In the examples given, I'd caution people against comparing apples and durian. The sort(x) is a cost that should be considered *within* each implementation. I used Armadillo to sort (src, f4), and get another 100% worth of speedup that I ca...
2014 Sep 30
1
Package Rcpp: Question conerning source code of cpp files and related question
...see how the //-lines are replaced and what soureCpp does?) 2) (Connected with the first question) Up to now, I am working in R Studio, but I would prefer an IDE (e.g. NetBeans IDE). But when I compile the cpp-file there, the following message shows up: In file included from /R/win-library/3.0/RcppArmadillo/include/RcppArmadilloForward.h:28:0, from /R/win-library/3.0/RcppArmadillo/include/RcppArmadillo.h:30, from crossp.cpp:1: /R/win-library/3.0/RcppArmadillo/include/RcppArmadilloConfig.h:90:35: fatal error: RcppArmadilloLapack.h: No such file or directory #in...
2018 Mar 26
2
R Lapack – why a subset?
Hi, Why doesn't R include a full Lapack but only a subset? My cda package (now archived) relying on RcppArmadillo has broken multiple times on CRAN over the past few years following updates in the underlying Armadillo library, Every time it follows the same pattern: Armadillo adds a function to solve a specialised linear system more efficiently, and the corresponding Lapack routine is not included in the R Lap...
2016 Oct 17
4
Cluster: Various GCC, how important is consistency?
...hit a snag that RccArmadillo explicitly refuses to build with anything older than gcc-4.6. The OpenMx package and emplik packages also refuse to compile with old gcc The cluster uses a module system, it is easy enough to swap in various gcc versions to see what compiles. I did succeed compiling RcppArmadillo with gcc 4.9.2. But Rcpp is not picky, it compiled with gcc-4.4.7. I worry... 1) will reliance on various GCC make the packages incompatible with R, or each other? I logged out, logged back in, with R 3.3.1 I can run library(RcppArmadillo) library(Rcpp) with no errors so far. But I'm not...
2020 Oct 08
1
Installing package fails at "testing if installed package can be loaded from temporary location"
...uot;) PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -I../inst/include Best, Sam On Thu, Oct 8, 2020 at 3:39 PM Dirk Eddelbuettel <edd at debian.org> wrote: > > Sam, > > PS It could of course also be something else: Is you src/Makevars for your > test package correct? Did you use `RcppArmadillo.packages.skeleton()` ? > You > need the lapack/blas link instruction therein. See > > edd at rob:~$ cat > /usr/local/lib/R/site-library/RcppArmadillo/skeleton/Makevars > > ## With R 3.1.0 or later, you can uncomment the following line to tell R > to > ## enable compilati...
2013 Feb 01
2
Armadillo error in R extension
Is there anyway with some experience in using armadillo in R C++ extensions? My problem is the following: I programmed a function in a header looking like #include <armadillo> inline arma::vec foo(input) { ... do something return an arma::vec object } compiling this via R CMD INSTALL packagename (PKG_CXXFLAGS = -I/folder/of/armadillo and armadillo_bits in my package) I get the
2020 Oct 08
3
Installing package fails at "testing if installed package can be loaded from temporary location"
Hi, I can not install packages from source which links to RcppArmadillo on Ubuntu 20.04 (after upgrading from 18.04). The following problem occurs: ** testing if installed package can be loaded from temporary location Error: package or namespace load failed for 'myPackage' in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/usr/local...
2020 Jan 14
0
possible bug in win R-devel in check/test environment
...lopment, I've came across a strange test | failing during 'R CMD check' exclusively on win R-devel which I could | reproduce with a minimal example that I present here. | The toy packages testarma1 [1] and testarma2 [2] are minimal | modifications of a skeleton package produced by | RcppArmadillo.package.skeleton(). | They are almost identical. The first one fails to passe its tests on win | R-devel [3] while the second one is OK [4]. The reason of test failing | in testarma1 boils down to not finding a package during tests (here | RcppArmadillo) although it is well present in LinkingTo...
2018 Feb 27
0
Problem with R_registerRoutines
Sorry, resending with correct subject line. I didn't find the development version of your package but the latest version archived on CRAN uses Rcpp, RcppArmadillo. Since the latest versions of Rcpp and Armadillo support registration, it may be something related to RcppAttributes() or similar. I think that you don't need to do registration manually. I had a similar problem but when I realised the above, I discarded everything generated by Rcpp/RcppArmad...
2018 Feb 27
0
R-devel Digest, Vol 180, Issue 24
I didn't find the development version of your package but the latest version archived on CRAN uses Rcpp, RcppArmadillo. Since the latest versions of Rcpp and Armadillo support registration, it may be something related to RcppAttributes() or similar. I think that you don't need to do registration manually. I had a similar problem but when I realised the above, I discarded everything generated by Rcpp/RcppArmad...
2023 Jan 10
1
rhub vs. CRAN fedora-*-devel, using armadillo & slapack
Dear R-devel people, We are working to submit a package which is mainly a binding over a C++ lib (https://github.com/libKriging) using armadillo. It is _not_ a standard RcppArmadillo package, because we also had to provide a python binding... so there is a huge layer of cmake & scripting to make it work with a standard armadillo (but using same version that RcppArmadillo). It seems now working with almost all CRAN targets, but a problem remains with fedora (clang & gcc)...
2015 Nov 23
3
MKL Acceleration encouraging; need adjust package builds?
...do that, I wonder how to do it and which packages need attention. Eigen and Armadillo packages, and possibly the ones that depend on them, lme4, anything flowing through Rcpp. Here's the build for some packages. Are they finding MKL BLAS? How would I know? * installing *source* package 'RcppArmadillo' ... ** package 'RcppArmadillo' successfully unpacked and MD5 sums checked * checking LAPACK_LIBS: divide-and-conquer complex SVD available via system LAPACK ** libs g++ -I/tools/cluster/6.2/R/3.2.2_mkl/lib64/R/include -I/usr/local/include -I"/panfs/pfs.acf.ku.edu/crmda/tools/lib64...
2020 Jun 06
3
Change in package.skeleton behavior from R 3.6.3 to R 4.0.0 ?
The Rcpp package and some related packages such as RcppArmadillo make use of (local) wrappers around the utils::package.skeleton() function for creating (basic yet functional) packages using Rcpp or RcppArmadillo. RStudio also exposes this under the graphical menu as a nice way to construct a package. But it seems that something changed quite recently in R. I l...
2023 Jan 10
1
rhub vs. CRAN fedora-*-devel, using armadillo & slapack
Le 10/01/2023 ? 10:44, RICHET Yann a ?crit?: > Dear R-devel people, > > We are working to submit a package which is mainly a binding over a C++ lib (https://github.com/libKriging) using armadillo. > It is _not_ a standard RcppArmadillo package, because we also had to provide a python binding... so there is a huge layer of cmake & scripting to make it work with a standard armadillo (but using same version that RcppArmadillo). > It seems now working with almost all CRAN targets, but a problem remains with fedora (clang &...