-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add nlmixr2 vignette #36
Conversation
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #36 +/- ##
=======================================
Coverage 80.20% 80.20%
=======================================
Files 4 4
Lines 1051 1051
=======================================
Hits 843 843
Misses 208 208 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I'm working to fix the pred-corrected example. |
@certara-jcraig, I'm having trouble with the pred-corrected VPC in the last section of the vignette. Can you please take a look and see if you can tell what I'm missing? |
Hi @billdenney, the predcorrect() should be called after binning() : https://certara.github.io/tidyvpc/articles/tidyvpc_cont.html#predcorrect
I acknowledge that this may lead to confusion and at minimum should be better documented. I'll have some time to more thoroughly review the implementation this weekend, and pretty confident that we should be able to support Also noting that in earlier versions of |
Hi @billdenney , regarding why we cannot use Line 597 in 8c7ed9c
predcorrect() , first, stratbin is NULL and the ypc calculation then incorrectly uses mpred value as median(pred) for the entire data. We did have a check for this but it was erroneously commented out when I made changes to allow binless() to be used before/after predcorrect() .
If using I've made some changes to I'm not too happy about the additional warnings and implementation in general, but this is required to preserve existing behavior. We may decide to overhaul some of this for the next major version release. Happy to hear your thoughts. |
I just realized that having the vignette work with nlmixr2 will require suggesting the nlmixr2 package. That is a heavy suggested package. If you know a way to make it more optional, I'd be happy to incorporate that change. |
Hmm, instead of adding to Suggests, what about adding in an additional step inside check-standard.yml to run
I haven't done this before however, and I expect the vignette will not be able to build on CRAN without nlmixr2 listed in suggests. We can still deploy the vignette to pkgdown website though. I would be OK with ultimately adding it to suggests, but we'll also need to assess whether CRAN will complain about overall R CMD check time duration. |
I think that the package being used in a vignette without being in suggests will fail CRAN. I don't think that the package check time on CRAN will be affected since I think that you get the package installation time on CRAN for free (for other packages). Because I think that the CRAN infrastructure includes all packages. (I'm not certain of that, though.) |
Thanks @billdenney, merging PR. |
Fix #27
Note that there are some issues that appear to be in play within
tidyvpc
that occurred during creating this vignette. Those will be addressed separately.