-
Notifications
You must be signed in to change notification settings - Fork 9
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
New 464 load module #526
New 464 load module #526
Conversation
Co-authored-by: Kathryn Doering <kathryn.doering@noaa.gov> Co-authored-by: Andrea-Havron-NOAA <Andrea-Havron-NOAA@users.noreply.github.com>
This reverts commit 0809515.
Instructions for code reviewerHello reviewer, thanks for taking the time to review this PR!
Checklist
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #526 +/- ##
==========================================
+ Coverage 74.68% 74.92% +0.24%
==========================================
Files 38 38
Lines 2042 2042
Branches 136 136
==========================================
+ Hits 1525 1530 +5
+ Misses 476 471 -5
Partials 41 41 ☔ View full report in Codecov by Sentry. |
I did a find in files search and found Rcpp::Module calls are still being made in test-fims-estimation.R, test-fleet-interface.R, test-recruitment-interface.R, and fims-path-maturity.Rmd which I think should probably be removed along with associated fims$ calls? This is also being used in fims_concurrent but given that those are still in development I don't know if they are worth changing at for this pull request? EDIT: went back through the commits and realized that you had reverted the fims$ module changes in test-fims-estimation.R to get the tests to pass, strangely I have 5 tests failing when I run it locally so not sure what is happening here. |
Calls to fims$ or Fims$ are also used in fims-path-maturity.Rmd vignette which should also be changed if this file is still in use. |
There are also lots of calls to fims$ throughout the rcpp files and looking over them they seem to be all in documentation so these should also be changed. |
I removed these, thanks! |
@nathanvaughan-NOAA, thanks for your review!
|
@Andrea Havron - NOAA Federal ***@***.***> Shouldn't
loadModule be called automatically in different environments when
library(FIMS) is called?
…On Mon, Nov 27, 2023 at 7:55 PM Andrea-Havron-NOAA ***@***.***> wrote:
@nathanvaughan-NOAA <https://github.com/nathanvaughan-NOAA>, thanks for
your review!
- I kept the calls to Rcpp::Module in test-fims-estimation and
fims_concurrent. I think it is trickier to call loadModule when working
with different R environments.
- All other references to Rcpp::Module and fims$, Fims$ have been
removed, including the vignettes
- Christine added a fix to the failing tests in test-fims-estimation
in the fims-vector branch
—
Reply to this email directly, view it on GitHub
<#526 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFUSEHRYMBXEV5QX5KGLJLYGUY7TAVCNFSM6AAAAAA7QQ2EHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRYHA4DSMRWGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Matthew Supernaw
*Scientific Software Developer*
*National Oceanic and Atmospheric Administration*
*Office Of Science and Technology*
*NOAA Fisheries | *U.S. Department of Commerce
Phone 248 - 396 - 7797
|
The issue is that library(FIMS) is called in the tests/testthat.R file rather than in the individual tests. It doesn't appear that the Rcpp functions and modules are available in the new R environment when
@Bai-Li-NOAA, any ideas? |
removed fims$ references in rcpp documentation
Just pushed up a couple more documentation changes to remove fims$ references. Unless Bai has a fast solution to the test environment issue I think this is good to go and we can fix that in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the remaining test environment issue (which can be corrected in a future pull request) this looks good to go.
I currently don't have a quick solution for the test environment issue. Please go ahead and submit a new issue, and I can investigate it when I'm back from leave. |
Thanks @Bai-Li-NOAA enjoy your holiday break! |
What is the feature?
fims <- Rcpp::Module("fims", PACKAGE = "FIMS")
toRcpp::loadModule("fims", TRUE)
How have you implemented the solution?
Rcpp::loadModule("fims", TRUE)
has been added to zzz.Rfims
module firstDoes the PR impact any other area of the project?
library(FIMS)
How to test this change
devtools::load_all()
automatically loads all Rcpp classes and functions into the R environmentDeveloper pre-PR checklist