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

Generate C++ native routines with underscore prefix#725

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jjallaire merged 1 commit intomasterfromfeature/native-routine-export-prefix
Jul 3, 2017

Conversation

@jjallaire
Copy link
Member

@jjallairejjallaire commentedJul 2, 2017
edited
Loading

Avoid export from package when standard [[ alpha ]] exportPattern is used in NAMESPACE

This addresses#723.

Note that this change does introduce the use of reserved (but not invalid) C/C++ symbols (the underscore prefix). We made some effort last year I recall to remove such symbols from generated attributes code, presumably to get a clean bill of health from linting tools?

I've tried this with Rcpp::interfaces(r, cpp) as well as with the tic.drat package (package with dot in the name). I've also tried it with packages that include their own non-generated native functions. Also of course have run the Rcpp tests. Even still, this will change the code in every existing RcppExports.* file so is worthy of some extra review/caution/testing.

eddelbuettel reacted with thumbs up emoji
Avoid export from package when standard [[ alpha ]] exportPattern is used in NAMESPACE
@jjallaire
Copy link
MemberAuthor

Note that if R core decides to stop auto-exporting the registered native symbols then we could revert the use of the underscore prefix. That's something that couldn't happen until the release of R 3.5 though.

@jjallairejjallaire merged commitf1fdc92 intomasterJul 3, 2017
@eddelbuetteleddelbuettel deleted the feature/native-routine-export-prefix branchJuly 5, 2017 15:15
setempler pushed a commit to setempler/miscset that referenced this pull requestJul 31, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@jjallaire

[8]ページ先頭

©2009-2025 Movatter.jp