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

fix issue with 'stale' symbols being registered #939

Merged
merged 1 commit into from
Feb 12, 2019

Conversation

kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Feb 12, 2019

Closes #733, #934.

The underlying issue here IIUC is that the machinery that attempts to discover used symbols was also crawling the various RcppExports files, and since those were 'stale' at the time when compileAttributes() is run, they would incorrectly contribute 'old' symbols which would then remain incorrectly registered.

The fix here removes the R-level RcppExports.R file (since we want to ensure that tools::package_native_routine_registration_skeleton() doesn't touch it), and also removes RcppExports.cpp from the set of files we crawl for exportable functions.

@jjallaire jjallaire requested review from jjallaire and removed request for jjallaire February 12, 2019 12:32
@jjallaire
Copy link
Member

LGTM

@eddelbuettel eddelbuettel merged commit f0bae39 into master Feb 12, 2019
@eddelbuettel eddelbuettel deleted the bugfix/compile-attibutes-stale-symbols branch March 18, 2019 13:48
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.

potential registration issue when using _ prefix?
3 participants