[Rcpp-devel] using [[Rcpp::interfaces(r, cpp)]] causes a package to fail

JJ Allaire jj.allaire at gmail.com
Mon Feb 17 00:10:54 CET 2014


You need to specify the owner of the repo -- in this case "RcppCore", so
you would do:

install_github("Rcpp", "RcppCore")

I'm not sure when this will go to CRAN -- it's a pretty egregious bug so
hopefully soon. Dirk, are there other bugs related to the 0.11 transition
that we're expecting a patch release for or is this the only known major
regression?

J.J.



On Sun, Feb 16, 2014 at 3:39 PM, Søren Højsgaard <sorenh at math.aau.dk> wrote:

>  Thanks for the info. Learning to work with github is - alas - still on
> my todo-list. I tried
>
>
>
> > install_github("Rcpp")
>
> Installing github repo Rcpp/master from hadley
>
> Downloading Rcpp.zip from
> https://github.com/hadley/Rcpp/archive/master.zip
>
> Installing package from c:\temp\RtmpwLANoa/Rcpp.zip
>
> Installing Rcpp
>
> "C:/programs/R/current/bin/x64/R" --vanilla CMD build  \
>
>   "c:\temp\RtmpwLANoa\devtoolse9c47705010\Rcpp-master" --no-manual
> --no-resave-data
>
>
>
> * checking for file
> 'c:\temp\RtmpwLANoa\devtoolse9c47705010\Rcpp-master/DESCRIPTION' ... OK
>
> * preparing 'Rcpp':
>
> * checking DESCRIPTION meta-information ... OK
>
> * cleaning src
>
> * installing the package to process help pages
>
> * creating vignettes ...Warning: running command
> '"C:/programs/R/current/bin/x64/Rscript" --vanilla --default-packages= -e
> "tools::buildVignettes(dir = '.', tangle = TRUE)"' had status 1
>
> ERROR
>
> Error in loadVignetteBuilder(vigns$pkgdir) :
>
>   vignette builder 'highlight' not found
>
> Calls: <Anonymous> -> loadVignetteBuilder
>
> In addition: Warning message:
>
> In tools::buildVignettes(dir = ".", tangle = TRUE) :
>
>   Files named as vignettes but with no recognized vignette engine:
>
>    'vignettes/Rcpp-FAQ.Rnw'
>
>    'vignettes/Rcpp-attributes.Rnw'
>
>    'vignettes/Rcpp-extending.Rnw'
>
>    'vignettes/Rcpp-modules.Rnw'
>
>    'vignettes/Rcpp-package.Rnw'
>
>    'vignettes/Rcpp-quickref.Rnw'
>
>    'vignettes/Rcpp-sugar.Rnw'
>
> (Is a VignetteBuilder field missing?)
>
> Execution halted
>
> Error: Command failed (1)
>
>
>
> Any insights on what I should do?
>
>
>
> When will this "bugfix" propagate to CRAN (I need to update a package!).
>
>
>
> All the best
>
> Søren
>
>
>
>
>
>
>
>
>
> *From:* jj at rstudio.com [mailto:jj at rstudio.com] *On Behalf Of *JJ Allaire
> *Sent:* 16. februar 2014 21:54
> *To:* Søren Højsgaard
> *Cc:* rcpp-devel at lists.r-forge.r-project.org (
> rcpp-devel at r-forge.wu-wien.ac.at)
> *Subject:* Re: [Rcpp-devel] using [[Rcpp::interfaces(r, cpp)]] causes a
> package to fail
>
>
>
> That's a bug! (introduced when we were adding support for checking user
> interrupts from Rcpp code). Now fixed on master:
> https://github.com/RcppCore/Rcpp/commit/c356c701d79773ba35113872bb6e32d66804f362
>
>
>
>
>
> On Sat, Feb 15, 2014 at 1:16 AM, Søren Højsgaard <sorenh at math.aau.dk>
> wrote:
>
> Dear all
>
> If in a package I have
> // [[Rcpp::interfaces(r, cpp)]]
> in all .cpp files then things work.
>
> However, if in a .cpp file I have
> // [[Rcpp::interfaces(r, cpp)]]
> then compilation fails with the message:
>
> * checking whether package 'mypack' can be installed ...Warning: running
> command '"C:/programs/R/current/bin/x64/Rcmd.exe" INSTALL -l
> "c:/Documents/stat/Rdevel/gmwR-DEVEL/gRbaseDEVEL/c-code/c-code-gRbase/array-ops-2014/mypack.Rcheck"
> --no-html
> "c:\DOCUME~2\stat\Rdevel\GMWR-D~1\GRBASE~1\c-code\C-CODE~1\ARRAY-~1\MYPACK~1.RCH\00_PKG~1\mypack"'
> had status 1  ERROR Installation failed.
> See
> 'c:/Documents/stat/Rdevel/gmwR-DEVEL/gRbaseDEVEL/c-code/c-code-gRbase/array-ops-2014/mypack.Rcheck/00install.out
>
>
> The 00install.out says
> * installing *source* package 'mypack' ...
>
> ** libs
>
> *** arch - i386
>
> g++ -m32 -I"C:/programs/R/current/include" -DNDEBUG -I../inst/include/
> -I"C:/programs/R/current/library/Rcpp/include"
> -I"C:/programs/R/current/library/RcppEigen/include"
> -I"C:/programs/R/current/library/RcppArmadillo/include"
> -I"d:/RCompile/CRANpkg/extralibs64/local/include"     -O2 -Wall
>  -mtune=core2 -c RcppExports.cpp -o RcppExports.o
> RcppExports.cpp: In function 'SEXPREC* mypack_cell2entry_cpp(SEXP, SEXP)':
>
> RcppExports.cpp:37:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_cell2entry2_cpp(SEXP, SEXP)':
> RcppExports.cpp:72:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_nextCell_cpp(SEXP, SEXP)':
> RcppExports.cpp:107:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_nextCellSlicePrim_cpp(SEXP,
> SEXP, SEXP)':
> RcppExports.cpp:143:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_nextCellSlice_cpp(SEXP,
> SEXP, SEXP)':
> RcppExports.cpp:179:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_slice2entry_cpp(SEXP, SEXP,
> SEXP)':
> RcppExports.cpp:215:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_getCellNumberPrim_cpp(SEXP,
> SEXP, SEXP)':
> RcppExports.cpp:251:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_getCellNumber_cpp(SEXP,
> SEXP, SEXP)':
> RcppExports.cpp:287:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_permuteCellEntries_cpp(SEXP,
> SEXP)':
> RcppExports.cpp:322:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
>
> make: *** [RcppExports.o] Error 1
> Warning: running command 'make -f "Makevars.win" -f
> "C:/programs/R/current/etc/i386/Makeconf" -f
> "C:/programs/R/current/share/make/winshlib.mk"
> SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)'
> SHLIB="mypack.dll" OBJECTS="RcppExports.o array-ops14-prim.o
> rcppeigen_hello_world.o spdinv-arma.o utils-all-subsets.o"' had status 2
>
> g++ -m32 -I"C:/programs/R/current/include" -DNDEBUG -I../inst/include/
> -I"C:/programs/R/current/library/Rcpp/include"
> -I"C:/programs/R/current/library/RcppEigen/include"
> -I"C:/programs/R/current/library/RcppArmadillo/include"
> -I"d:/RCompile/CRANpkg/extralibs64/local/include"     -O2 -Wall
>  -mtune=core2 -c RcppExports.cpp -o RcppExports.o
> RcppExports.cpp: In function 'SEXPREC* mypack_cell2entry_cpp(SEXP, SEXP)':
>
> RcppExports.cpp:37:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_cell2entry2_cpp(SEXP, SEXP)':
> RcppExports.cpp:72:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_nextCell_cpp(SEXP, SEXP)':
> RcppExports.cpp:107:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_nextCellSlicePrim_cpp(SEXP,
> SEXP, SEXP)':
> RcppExports.cpp:143:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_nextCellSlice_cpp(SEXP,
> SEXP, SEXP)':
> RcppExports.cpp:179:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_slice2entry_cpp(SEXP, SEXP,
> SEXP)':
> RcppExports.cpp:215:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_getCellNumberPrim_cpp(SEXP,
> SEXP, SEXP)':
> RcppExports.cpp:251:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_getCellNumber_cpp(SEXP,
> SEXP, SEXP)':
> RcppExports.cpp:287:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
> RcppExports.cpp: In function 'SEXPREC* mypack_permuteCellEntries_cpp(SEXP,
> SEXP)':
> RcppExports.cpp:322:9: error: 'jumpToTop' is not a member of
> 'Rcpp::internal'
>
> make: *** [RcppExports.o] Error 1
> Warning: running command 'make -f "Makevars.win" -f
> "C:/programs/R/current/etc/i386/Makeconf" -f
> "C:/programs/R/current/share/make/winshlib.mk"
> SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)'
> SHLIB="mypack.dll" OBJECTS="RcppExports.o array-ops14-prim.o
> rcppeigen_hello_world.o spdinv-arma.o utils-all-subsets.o" symbols.rds' had
> status 2
>
> ERROR: compilation failed for package 'mypack'
>
> * removing
> 'c:/Documents/stat/Rdevel/gmwR-DEVEL/gRbaseDEVEL/c-code/c-code-gRbase/array-ops-2014/mypack.Rcheck/mypack'
>
> I have this sessionInfo()
>
> > sessionInfo()
> R version 3.0.2 Patched (2014-02-12 r64985)
> Platform: x86_64-w64-mingw32/x64 (64-bit)
>
> locale:
> [1] LC_COLLATE=Danish_Denmark.1252  LC_CTYPE=Danish_Denmark.1252
>  LC_MONETARY=Danish_Denmark.1252
> [4] LC_NUMERIC=C                    LC_TIME=Danish_Denmark.1252
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] Rcpp_0.11.0    devtools_1.4.1 shTools_1.0    markdown_0.6.4 knitr_1.5
>
> loaded via a namespace (and not attached):
>  [1] compiler_3.0.2          digest_0.6.4            evaluate_0.5.1
>    formatR_0.10
>  [5] grid_3.0.2              httr_0.2                lattice_0.20-24
>   Matrix_1.1-2
>  [9] memoise_0.1             parallel_3.0.2
>  RcppArmadillo_0.4.000.2 RcppEigen_0.3.2.0.2
> [13] RCurl_1.95-4.1          stringr_0.6.2           tools_3.0.2
>   whisker_0.3-2
>
> Any thoughts on what is going on?
>
> Cheers
> Søren
>
>
>
>
> --------------------------------------------------
> Dr. Søren Højsgaard, Head of Department
> Department of Mathematical Sciences
> Aalborg University
> Fredrik Bajers Vej 7 G
> DK-9220 Aalborg Ø
> --------------------------------------------------
> Phone +45 9940 8801; cell phone +45 2485 5748
> Secretary: phone +45 9940 8800; Fax: +45 9815 8129
> Homepage: people.math.aau.dk/~sorenh
> --------------------------------------------------
>
> _______________________________________________
> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140216/d319604c/attachment-0001.html>


More information about the Rcpp-devel mailing list