Skip to content

Compile error in 0.7.3 #3106

@itworkslol

Description

@itworkslol

The 0.7.3 CRAN package fails to compile. The error is the same as reported in #3078:

> install.packages("dplyr")
[...]
join_exports.cpp: In function ‘Rcpp::DataFrame semi_join_impl(Rcpp::DataFrame, Rcpp::DataFrame, Rcpp::CharacterVector, Rcpp::CharacterVector, bool)’:
join_exports.cpp:174:21: error: ‘Rcpp::DataFrame {aka class Rcpp::DataFrame_Impl<Rcpp::PreserveStorage>}’ has no member named ‘nrow’; did you mean ‘nrows’?
   indices.reserve(x.nrow());
                     ^~~~
                     nrows
/usr/lib/R/etc/Makeconf:141: recipe for target 'join_exports.o' failed

This is just a typo, isn't it? Changing to x.nrows() makes the install succeed. Line: join_exports.cpp:174

This happened when installing dplyr over Debian's R packages. Environment:

% lsb_release -d
Description:	Debian GNU/Linux testing (buster)

% R --version
R version 3.3.3 (2017-03-06) -- "Another Canoe"
...

% g++ --version
g++ (Debian 7.2.0-4) 7.2.0
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions