[Rcpp-devel] RcppArmadillo and the version of Rcpp
Weldon, Mat
m.weldon at lancaster.ac.uk
Fri Nov 8 12:04:32 CET 2013
If it helps, I recently had similar problems. In the end I realised that I needed to update my installation of R to 3.0.2 to get RcppArmadillo to work. Update R, then update Rcpp, then RcppArmadillo should install from CRAN no problem.
Best wishes,
Mat
Mat Weldon
Department of Mathematics and Statistics
Room B18 Fylde College
Lancaster University
LA1 4YF
Tel: 07929 310475
-----Original Message-----
From: rcpp-devel-bounces at lists.r-forge.r-project.org [mailto:rcpp-devel-bounces at lists.r-forge.r-project.org] On Behalf Of rcpp-devel-request at lists.r-forge.r-project.org
Sent: 08 November 2013 11:00
To: rcpp-devel at lists.r-forge.r-project.org
Subject: Rcpp-devel Digest, Vol 49, Issue 15
Send Rcpp-devel mailing list submissions to
rcpp-devel at lists.r-forge.r-project.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
or, via email, send a message with subject or body 'help' to
rcpp-devel-request at lists.r-forge.r-project.org
You can reach the person managing the list at
rcpp-devel-owner at lists.r-forge.r-project.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of Rcpp-devel digest..."
Today's Topics:
1. Re: RcppArmadillo and the version of Rcpp (Greg Distiller)
2. Re: RcppArmadillo and the version of Rcpp (Romain Francois)
----------------------------------------------------------------------
Message: 1
Date: Fri, 8 Nov 2013 07:14:39 +0000
From: Greg Distiller <greg.distiller at uct.ac.za>
To: "rcpp-devel at lists.r-forge.r-project.org"
<rcpp-devel at lists.r-forge.r-project.org>
Subject: Re: [Rcpp-devel] RcppArmadillo and the version of Rcpp
Message-ID:
<867102BEB6EDF64FA0E96947CBC8C7643C8D3F55 at srvwinexc002.wf.uct.ac.za>
Content-Type: text/plain; charset="windows-1252"
Hi
I hope its not inappropriate for me to post this as a follow up to my problems with getting RcppArmadillo to work. I tried to compile from source using R CMD INSTALL as Dirk suggested but am getting the error message below. I don't know if this particular problem is related to a small issue I had getting Rcpp to work from within RStudio: for some reason RStudio was not seeing the correct system environment path and so could not find the compiler. I managed to resolve this by explicitly setting the path when I start RStudio using Sys.setenv(). The error I get when trying to install RcppArmadillo is as follows (specifically see the errors at the bottom):
C:\Program Files\R\R-2.15.1\library>R CMD INSTALL RcppArmadillo*tar.gz
* installing to library 'C:/Program Files/R/R-2.15.1/library'
* installing *source* package 'RcppArmadillo' ...
** package 'RcppArmadillo' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/R/R-215~1.1/etc/i386/Makeconf
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-215~1.1/etc/i386/Makec
onf
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
g++ -I"C:/PROGRA~1/R/R-215~1.1/include" -DNDEBUG -I../inst/include -I. -I"C:/
Program Files/R/R-2.15.1/library/Rcpp/include" -O2 -Wall -mtune=core2 -c R
cppArmadillo.cpp -o RcppArmadillo.o
In file included from ../inst/include/RcppArmadillo.h:30:0,
from RcppArmadillo.cpp:22:
../inst/include/RcppArmadilloForward.h:99:33: error: 'ConstReferenceInputParameter' is not a template
../inst/include/RcppArmadilloForward.h:100:33: error: 'ReferenceInputParameter' is not a template
../inst/include/RcppArmadilloForward.h:101:33: error: 'ConstInputParameter' is not a template
make: *** [RcppArmadillo.o] Error 1
ERROR: compilation failed for package 'RcppArmadillo'
* removing 'C:/Program Files/R/R-2.15.1/library/RcppArmadillo'
Any advice would be much appreciated.
Thanks
Greg
________________________________
UNIVERSITY OF CAPE TOWN
This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20131108/b561f87a/attachment-0001.html>
------------------------------
Message: 2
Date: Fri, 08 Nov 2013 08:18:39 +0100
From: Romain Francois <romain at r-enthusiasts.com>
To: rcpp-devel at lists.r-forge.r-project.org
Subject: Re: [Rcpp-devel] RcppArmadillo and the version of Rcpp
Message-ID: <527C904F.90305 at r-enthusiasts.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Le 08/11/2013 08:14, Greg Distiller a ?crit :
> Hi
>
> I hope its not inappropriate for me to post this as a follow up to my
> problems with getting RcppArmadillo to work. I tried to compile from
> source using R CMD INSTALL as Dirk suggested but am getting the error
> message below. I don?t know if this particular problem is related to a
> small issue I had getting Rcpp to work from within RStudio: for some
> reason RStudio was not seeing the correct system environment path and
> so could not find the compiler. I managed to resolve this by
> explicitly setting the path when I start RStudio using Sys.setenv().
> The error I get when trying to install RcppArmadillo is as follows
> (specifically see the errors at the bottom):
>
> C:\Program Files\R\R-2.15.1\library>R CMD INSTALL RcppArmadillo*tar.gz
Bad idea to have R installed in a path with spaces.
> * installing to library 'C:/Program Files/R/R-2.15.1/library'
>
> * installing *source* package 'RcppArmadillo' ...
>
> ** package 'RcppArmadillo' successfully unpacked and MD5 sums checked
>
> ** libs
>
> *** arch - i386
>
> cygwin warning:
>
> MS-DOS style path detected:
> C:/PROGRA~1/R/R-215~1.1/etc/i386/Makeconf
>
> Preferred POSIX equivalent is:
> /cygdrive/c/PROGRA~1/R/R-215~1.1/etc/i386/Makec
>
> onf
>
> CYGWIN environment variable option "nodosfilewarning" turns off
> this warning.
>
> Consult the user's guide for more details about POSIX paths:
>
> http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
>
> g++ -I"C:/PROGRA~1/R/R-215~1.1/include" -DNDEBUG -I../inst/include
> -I. -I"C:/
>
> Program Files/R/R-2.15.1/library/Rcpp/include" -O2 -Wall
> -mtune=core2 -c R
>
> cppArmadillo.cpp -o RcppArmadillo.o
>
> In file included from ../inst/include/RcppArmadillo.h:30:0,
>
> from RcppArmadillo.cpp:22:
>
> ../inst/include/RcppArmadilloForward.h:99:33: error:
> 'ConstReferenceInputParameter' is not a template
>
> ../inst/include/RcppArmadilloForward.h:100:33: error:
> 'ReferenceInputParameter' is not a template
>
> ../inst/include/RcppArmadilloForward.h:101:33: error:
> 'ConstInputParameter' is not a template
You likely need a newer Rcpp. Chances are you are using Rcpp < 0.10.5 and the RcppArmadillo you are trying to compiler requires Rcpp >= 0.10.5
> make: *** [RcppArmadillo.o] Error 1
>
> ERROR: compilation failed for package 'RcppArmadillo'
>
> * removing 'C:/Program Files/R/R-2.15.1/library/RcppArmadillo'
>
> Any advice would be much appreciated.
>
> Thanks
>
> Greg
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
------------------------------
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel at lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
End of Rcpp-devel Digest, Vol 49, Issue 15
******************************************
More information about the Rcpp-devel
mailing list