Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rcpp usesRf_list6(), which was added around R 3.4 #1048

Closed
@DavisVaughan

Description

@DavisVaughan

Rcpp 1.0.4 no longer builds from source on R 3.3 because of a call toRf_list6() that was added here:

d65f3c0#diff-c524021f4c8787893aa50c251e4c35d7R35

That is becauselist6() was added to R in this commit here, around R 3.4

wch/r-source@7199ea1#diff-b2ce19943acaccf93558f770778c4730

Compilation on R 3.3 gives:

* installing *source* package ‘Rcpp’ ...** package ‘Rcpp’ successfully unpackedand MD5 sums checked** libsg++ -I/opt/R/3.2.5/lib/R/include -DNDEBUG -I../inst/include/ -I/usr/local/include    -fpic  -g -O2  -c api.cpp -o api.oIn file included from ../inst/include/RcppCommon.h:135:0,                 from ../inst/include/Rcpp.h:27,                 from api.cpp:24:../inst/include/Rcpp/lang.h: In function ‘SEXPREC*Rcpp::Rcpp_list7(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:../inst/include/Rcpp/lang.h:45:55: error: ‘Rf_list6’ was not declared in this scope     x0 = Rf_cons(x0, Rcpp_list6(x1, x2, x3, x4, x5, x6));                                                       ^../inst/include/Rcpp/lang.h: In function ‘SEXPREC*Rcpp::Rcpp_lang7(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:../inst/include/Rcpp/lang.h:53:56: error: ‘Rf_list6’ was not declared in this scope     x0 = Rf_lcons(x0, Rcpp_list6(x1, x2, x3, x4, x5, x6));                                                        ^make: *** [api.o] Error1/opt/R/3.2.5/lib/R/etc/Makeconf:143: recipefor target'api.o' failedERROR: compilation failedfor package ‘Rcpp’

Rcpp could manually addlist6() like purrr does
https://github.com/tidyverse/purrr/blob/aa7bc7f6d9854a1f2d5869536af652322a4bf38b/src/utils.c#L29-L34

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp