2016-06-04 13 views
0

ich nur bin derzeit laufenden MRO Rgui auf Windows 10 (nicht mit RStudio oder RTVS)Compiler für Quellpakete in Microsoft R öffnen

ich die MRAN Versionen von RCPP, RcppEigen & Matrix Pakete installiert haben. Wenn ich jedoch die neueste Version meines eigenen Pakets von der Quelle installiere, verwendet es g ++ nicht cl. Gibt es eine Möglichkeit, MRO so zu konfigurieren, dass es Pakete mit Visual Studio kompiliert?

Microsoft R Open 3.2.5 
Default CRAN mirror snapshot taken on 2016-05-01 
The enhanced R distribution from Microsoft 
Visit https://mran.microsoft.com/ for information 
about additional features. 

Multithreaded BLAS/LAPACK libraries detected. Using 4 cores for math algorithms. 

> getwd() 
[1] "E:/MRO/R-3.2.5/bin/x64" 
> install.packages("/Dropbox/jobs/Warwick_Girolami/SERRS/serrs/code/serrsBayes_0.1-25.tar.gz", type="source") 
Installing package into ‘D:/Users/Matthew/Documents/R/win-library/3.2’ 
(as ‘lib’ is unspecified) 
inferring 'repos = NULL' from 'pkgs' 
* installing *source* package 'serrsBayes' ... 
** libs 
g++ -m64 -I"E:/MRO/R-3.2.5/include" -DNDEBUG -I"D:/Users/Matthew/Documents/R/win-library/3.2/Rcpp/include" -I"D:/Users/Matthew/Documents/R/win-library/3.2/RcppEigen/include" -I"c:/applications/extsoft/include" -fopenmp -O2 -Wall -mtune=core2 -c RcppExports.cpp -o RcppExports.o 
g++ -m64 -I"E:/MRO/R-3.2.5/include" -DNDEBUG -I"D:/Users/Matthew/Documents/R/win-library/3.2/Rcpp/include" -I"D:/Users/Matthew/Documents/R/win-library/3.2/RcppEigen/include" -I"c:/applications/extsoft/include" -fopenmp -O2 -Wall -mtune=core2 -c mixLorentz.cpp -o mixLorentz.o 
mixLorentz.cpp: In function 'Eigen::ArrayXi resampleParticles(Rcpp::NumericVector, Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericVector, int, int)': 
mixLorentz.cpp:229:18: warning: unused variable 't1' [-Wunused-variable] 
mixLorentz.cpp:229:21: warning: unused variable 't2' [-Wunused-variable] 
mixLorentz.cpp: In function 'long int marginalMetropolisUpdate(Eigen::MatrixXd, unsigned int, Eigen::VectorXd, Eigen::VectorXd, Eigen::VectorXd, Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericVector, Rcpp::NumericMatrix, Rcpp::NumericVector, Eigen::VectorXd, Rcpp::List)': 
mixLorentz.cpp:437:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] 
mixLorentz.cpp:458:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] 
mixLorentz.cpp:525:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] 
mixLorentz.cpp:374:10: warning: unused variable 'priorScaleMu' [-Wunused-variable] 
mixLorentz.cpp:375:10: warning: unused variable 'priorScaleSD' [-Wunused-variable] 
g++ -m64 -shared -s -static-libgcc -o serrsBayes.dll tmp.def RcppExports.o mixLorentz.o -fopenmp -Lc:/applications/extsoft/lib/x64 -Lc:/applications/extsoft/lib -LE:/MRO/R-3.2.5/bin/x64 -lR 
installing to D:/Users/Matthew/Documents/R/win-library/3.2/serrsBayes/libs/x64 
** R 
** preparing package for lazy loading 
** help 
*** installing help indices 
** building package indices 
** testing if installed package can be loaded 
* DONE (serrsBayes) 
> library(serrsBayes) 
Loading required package: Matrix 

Antwort

2

In Bezug auf

Allerdings, wenn ich die neueste Version von meinem eigenen Paket von der Quelle zu installieren, verwendet es g ++ nicht cl. Gibt es eine Möglichkeit, MRO so zu konfigurieren, dass es Pakete mit Visual Studio kompiliert?

die Antwort ist ein schlichtes ‚Nein, nein, nie‘ als R immer mit g++ kompiliert und unter Windows mit seinen mingw Port.

Wir decken die Rcpp-Seite davon in der Rcpp-FAQ-Vignette ab, da die Frage in der Tat häufig ist.

Verwandte Themen