-
Notifications
You must be signed in to change notification settings - Fork 1
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
Translate func_MCMC()
's subfunctions to C++
#11
Comments
This is necessary for `func_MCMC_graph()` to be called and work on #11 to continue.
* Added `src/.gitignore` * Added test skeleton Literally the output of `usethis::use_testthat()` * Added README as test script (#13) * Restyled file Output of `styler::style_file()`. * Added unit tests (solves #13) * Added gcno files to .gitignore * Added `inst/doc` to .gitignore Those are generated files that get removed whenever `devtools::check()` is ran. * Finished writing tests for #13 * Sped up #13 tests 3x * Resolved TODO, suppressed output on test (#13) * Reinstated test with `MRF.G = FALSE` (#13) This is necessary for `func_MCMC_graph()` to be called and work on #11 to continue. * Added test for `MRF.G = FALSE` (closes #13) * Relaxed unit test expectations So checks passes on macOS
Benchmark results for calling
|
Supert! |
* Added `src/.gitignore` * Added placeholder for `func_MCMC_graph_cpp()` (#11) * Added `cpp` flag (#11) * Updated docs * Added test file for `func_MCMC_graph_cpp()` (#11) * Translated a bit more of #11 * Added FIXME (#11) * Updated RoxygenNote version * Properly exporting `func_MCMC_graph_cpp()` (#11) * Fixed syntax (#11) * Updated unit test (#11) * Translated a bit more of #11 * Added commented R code to loop (#11) * Translated rest of `func_MCMC_graph()' (#11) * Added unit tests for `func_MCMC_graph()` (#11) * Put `func_MCMC()` progressbar under `verbose` (#14) Otherwise, the `pb` would be drawn even if the user sets `verbose = FALSE` on `BayesSurvive()` (which I assume is not the intended behaviour). * Updated NEWS.md (#11)
Hi George, I can reproduce the error and your solution. Keeping track of built files (i.e., anything under /inst/doc) is not ideal, though. What's the use of that build folder anyway? I tried deleting it and the package still installs with vignettes, you can also try it from the remotes::install_github("ocbe-uio/BayesSurvive@fix-vignettes", build_vignettes = TRUE)
browseVignettes("BayesSurvive") |
This solution works. Do you know if we can set up something, so that the usual installation still works? |
Since this case call all remaining functions to be translated, it should suffice for testing the rest of #11. Tests will still need to be readapted once R code is removed.
Thank you very much, Waldir, for updating and testing the package! If I remember correctly, the argument
It might be also helpful to add the following table in the help file or README.
|
Thanks for checking, will edit accordingly! :) |
Question: when we have a situation like below (triggered when BayesSurvive/R/UpdateRPlee11.R Lines 48 to 56 in 83698c9
|
Yes, the same dimension across subgroups should be required according to the model setting. |
Great news, thanks! Then I can just implement those as cubes on C++... :) |
Files to be translated
func_MCMC_graph()
updateGamma()
UpdateRPlee11()
calJpost()
Cleanup
model.type
,MRF2b
andMRF_G
(see next section)Combinations of
BayesSurvive()
to testNot all combos are valid, see #11 (comment).
FALSE
FALSE
TRUE
FALSE
FALSE
FALSE
TRUE
FALSE
FALSE
FALSE
FALSE
TRUE
TRUE
FALSE
TRUE
TRUE
The text was updated successfully, but these errors were encountered: