Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Shield around parameters in Rcpp::interfaces (fixes #712) #713

Merged
merged 1 commit into from
Jun 14, 2017

Conversation

jjallaire
Copy link
Member

No description provided.

@eddelbuettel
Copy link
Member

Hah. Saves me some testing and means I can go straight to rev.dep testing this :)

@codecov-io
Copy link

codecov-io commented Jun 14, 2017

Codecov Report

Merging #713 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #713   +/-   ##
=======================================
  Coverage   89.57%   89.57%           
=======================================
  Files          66       66           
  Lines        3588     3588           
=======================================
  Hits         3214     3214           
  Misses        374      374
Impacted Files Coverage Δ
src/attributes.cpp 98.4% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c75bbdd...e7b1698. Read the comment docs.

@@ -2172,7 +2172,7 @@ namespace attributes {

const std::vector<Argument>& args = function.arguments();
for (std::size_t i = 0; i<args.size(); i++) {
ostr() << "Rcpp::wrap(" << args[i].name() << ")";
ostr() << "Shield<SEXP>(Rcpp::wrap(" << args[i].name() << "))";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could make this Rcpp::Shield for consistency with Rcpp::wrap but I see other identifiers without the namespace qualifier.

@jjallaire
Copy link
Member Author

jjallaire commented Jun 14, 2017 via email

@eddelbuettel
Copy link
Member

Looks good, and have a rev.dep run chugging along. May as well merge now.

@eddelbuettel eddelbuettel merged commit 1ec267a into master Jun 14, 2017
@coatless
Copy link
Contributor

coatless commented Jun 14, 2017

Would it be worth it to prefix with Rcpp:: where applicable to avoid any namespace headaches?

@kevinushey
Copy link
Contributor

The fact that we're injecting a using namespace Rcpp; statement into another package's namespace within a header file is a little bit wonky, so it might be worth doing.

@jjallaire
Copy link
Member Author

jjallaire commented Jun 15, 2017 via email

@eddelbuettel
Copy link
Member

Also, aren't we talking RcppExports.cpp here -- a single compilation unit and not included into other files.

@kevinushey
Copy link
Contributor

Good point :) Okay, let's not touch anything there.

@krlmlr
Copy link
Contributor

krlmlr commented Jun 16, 2017

Thanks for the very quick fix!

@eddelbuettel
Copy link
Member

eddelbuettel commented Jun 16, 2017

Thanks to you for the heads-up. I also ran a full rev.dep check yesterday, and we're good. I did sixteen out of 1050 or so packages failing, and about eight looked like possible dplyr interactions I had not seen (and do no worry about for Rcpp as they also fail at CRAN for the released version -- hence unlikely to be us).
See RcppCore/rcpp-logs@1f85c64

@krlmlr
Copy link
Contributor

krlmlr commented Jun 16, 2017

Thanks. Most of the eight new failures look familiar, I hope the upcoming dplyr point release will fix them.

@eddelbuettel eddelbuettel deleted the bugfix/interfaces-param-shield branch June 18, 2017 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants