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

Feature/module load #353

Merged
merged 2 commits into from
Sep 1, 2015
Merged

Feature/module load #353

merged 2 commits into from
Sep 1, 2015

Conversation

eddelbuettel
Copy link
Member

This contains code emailed in by Kurt Hornik to catch up with changed on the R side.

It has been tested against reverse dependencies on both r-release and r-devel and it appears that it is not creating any new issues. There are one or two breakages we have not seen before but they may be tickled by something else as well.

@jjallaire
Copy link
Member

Looks good to me. @kevinushey ?

@eddelbuettel
Copy link
Member Author

There is still some headscratchery in other places. Eg R CMD check fails on the tests in RcppDE under R 3.2.2 if and only if the last replication size (50) is used. It does not fail when gdb is used. It also does not fail under R-devel. In short, some ugly race condition somewhere, possibly in R. I also have one or two packages now puke in their unit tests so it is not clear this is us.

We need a better tool chain to run (and report) these tests. Is Gabor done yet? ;-)

@@ -67,7 +67,9 @@ loadModule <- function( module, what = character(), loadNow,
loadNow <- !is(loadM, "error")
}
if(loadNow) {
.botched <- isBotchedSession()
## .botched <- isBotchedSession()
.botched <- FALSE
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we know why we had this check?

The comment above isBotchedSession():

## the following items are to get around some insanity in the
## CMD check of packages using Rcpp that dies in loadModule()
## because some code somewhere can't find the methods package
isBotchedSession <- function()
    ! ("package:methods" %in% search())

This, at least to me, implies that there is code within Rcpp modules that requires methods not only to be loaded but also attached; do we have some way of verifying that Rcpp modules work when methods is loaded but not attached?

Copy link
Member Author

Choose a reason for hiding this comment

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

That is why I brought this to the rcpp-core list and John -- AFAIK he added it.

eddelbuettel added a commit that referenced this pull request Sep 1, 2015
@eddelbuettel eddelbuettel merged commit 4a683ea into master Sep 1, 2015
@eddelbuettel eddelbuettel deleted the feature/module-load branch September 6, 2015 22:45
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

3 participants