On 7 May 2014 at 06:47, Gabor Grothendieck wrote: | I am now getting latex errors when I try to install Rcpp from github
We treat GitHub as a development repository, just like R-Forge before it. To us, it is not a means for general distribution (though we strive to keep the master branch sane at all times). OTOH releases are rigorously tested on win-builder and other platforms. So if in doubt, use CRAN. That said, even GitHub gets continuous integration and builds on every commit. Things generally work for the OS X and Linux crowds (for several flavours of each). We do turn vignettes off on GitHub to save some processing time. Building vignettes requires highlight (the package) and a decent LaTeX. As nobody in Rcpp Core develops (primarily) on Windows, if something breaks you get to keep the pieces -- at least until you, or someone else, fixes it. Dirk | (see below) but it does now work (without the vignettes) if I use: | github_install("RcppCore/Rcpp", build_vignettes = FALSE) | so at least I can proceed without explicitly setting any environment | variables now. | Thanks. | | > R.version.string | [1] "R version 3.1.0 Patched (2014-05-03 r65519)" | > | > devtools::install_github("RcppCore/rcpp") | Installing github repo rcpp/master from RcppCore | Downloading master.zip from https://github.com/RcppCore/rcpp/archive/master.zip | | <snip> | | * creating vignettes ...Warning: running command | '"C:/PROGRA~1/R/R-3.1/bin/x64/Rscript" --vanilla --default-packages= | -e "tools::buildVignettes(dir = '.', tangle = TRUE)"' had status 1 | ERROR | Loading required package: inline | Loading required package: highlight | | Attaching package: 'Rcpp' | | The following object is masked from 'package:inline': | | registerPlugin | | Warning: running command | '"C:\PROGRA~2\MIKTEX~1.9\miktex\bin\texi2dvi.exe" --quiet --pdf | "Rcpp-FAQ.tex" --max-iterations=20 -I | "C:/PROGRA~1/R/R-3.1/share/texmf/tex/latex" -I | "C:/PROGRA~1/R/R-3.1/share/texmf/bibtex/bst"' had status 1 | Error: running 'texi2dvi' on 'Rcpp-FAQ.tex' failed | | LaTeX errors: | cpp-FAQ.tex:516: pdfTeX error (font expansion): auto expansion is only possible | with scalable fonts | | | Here is how much of TeX's memory you used: | cpp-FAQ.tex:516: ==> Fatal error occurred, no output PDF file produced! | Execution halted | Error: Command failed (1) | | On Wed, May 7, 2014 at 1:50 AM, Kevin Ushey <kevinus...@gmail.com> wrote: | > Hi Gabor, | > | > Looks like it was a bug on our end -- R-exts specifies that USE_CXX1X | > should be set to any value; we try to set it to nothing (ie, define it | > but leave it empty) but apparently that is not accepted. | > | > I just pushed a bug fix to GitHub and it works on my Windows VM; can | > you give it another shot? | > | > Thanks, | > Kevin | > | > On Tue, May 6, 2014 at 9:09 PM, Gabor Grothendieck | > <ggrothendi...@gmail.com> wrote: | >> On Windows with R 3.1 I installed the latest Rcpp from github and did | >> the following but the compliation gave an error which was was due to | >> the C++11 constructs. If I rerun it but uncomment the Sys.setenv line | >> then it works. What do I do to get the cpp11 attribute to work? | >> | >> library(Rcpp) | >> # Sys.setenv("PKG_CXXFLAGS"="-std=c++0x") | >> cat(' | >> // [[Rcpp::plugins("cpp11")]] | >> // [[Rcpp::export]] | >> int useCpp11() { | >> auto x = 10; | >> return x; | >> } | >> ', file = "testauto.cpp") | >> sourceCpp("testauto.cpp") | >> | >> On Wed, Apr 30, 2014 at 11:12 AM, Dirk Eddelbuettel <e...@debian.org> wrote: | >>> | >>> On 30 April 2014 at 10:05, Dirk Eddelbuettel wrote: | >>> | | >>> | On 30 April 2014 at 10:41, JJ Allaire wrote: | >>> | | I think that might be overkill (or something that we can do later if users ask | >>> | | for it). | >>> | | >>> | It is a one-liner, and it just sits there to be used, like OpenMP plugin. | >>> | | >>> | So in that sense it doesn't hurt, and it may yet help those for which both R | >>> | < 3.1.0 and Windows are true. | >>> | >>> Actually, as Gabor points out, where 'R < 3.1.0' and 'g++ < 4.7' which may | >>> also be a bunch of servers running older RHEL or Ubuntu LTS. | >>> | >>> Dirk | >>> | >>> -- | >>> Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com | >>> _______________________________________________ | >>> Rcpp-devel mailing list | >>> Rcpp-devel@lists.r-forge.r-project.org | >>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel | >> | >> | >> | >> -- | >> Statistics & Software Consulting | >> GKX Group, GKX Associates Inc. | >> tel: 1-877-GKX-GROUP | >> email: ggrothendieck at gmail.com | >> _______________________________________________ | >> Rcpp-devel mailing list | >> Rcpp-devel@lists.r-forge.r-project.org | >> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel | | | | -- | Statistics & Software Consulting | GKX Group, GKX Associates Inc. | tel: 1-877-GKX-GROUP | email: ggrothendieck at gmail.com -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel