Closed kgoldfeld closed 1 month ago
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 75053fdba56144c5c66930e6f64e7e2d1f3f5db8 is merged into main:
This is how benchmark results would change (along with a 95% confidence interval in relative change) if f3a06bb0c8a3e1d7135e118474be30848c85b06c is merged into main:
I think I found the problem - there was some conflict with using the variable name n in .evalWith
since we were using list2evn
. There must be a a variable with that name in the devtools::check() environment. In any case,things checked OK on my laptop - hoping the tests here show the same thing. If they do, you should feel free to take a look and approve it seems OK. Thank goodness for all the tests.
Yes - I'll add those tests.
And also, I realize I am not totally comfortable with pulling in the entire environment - I would rather just pull in the functions. This way, if someone happens to have a variable that is the same as one that is used in the function, there is no conflict (as I experienced with the check environment). I am working on that, and will update .evalWith
.
This is how benchmark results would change (along with a 95% confidence interval in relative change) if c69acece89fb08eba9e5eb4ecdb70afa3060dfc1 is merged into main:
@assignUser A few things:
.evalWith
to pass only function objects from the parent environment. This seems a little safer. Unless you think this is problematic, I will go ahead and merge.gtsummary
that I need to "suggest" package broom.helper
in order to use the package, which I do in at least one vignette. Indeed, a couple of days later, I received an e-mail from CRAN indicating that simstudy
now has errors on CRAN Package Check Results. And those errors are related to calls to gtsummary
. Which I guess highlights the downsides of using other packages that are evolving over time. Granted, this is only the second time in like 10 years (or however how old simstudy
is) where I needed to make a change as a result of an external package change.Which I guess highlights the downsides of using other packages that are evolving over time.
Yep, it is always good to think about dependencies but you seem to have a good hand for that ;)
This led me to wonder how we determined which servers to check on the GitHub workflow
I looked at the recommendations from the r-lib people: https://github.com/r-lib/actions/blob/v2-branch/examples/check-standard.yaml and modified those a bit.
Testing all flavors is not really worth it for a package without any complex build dependencies like simstudy as it can produce frequent errors that just vanish after a few days (for devel) and are a waste to investigate. In addition there is no real way to accuratly reproduce the cran environments as they don't provide any form of reproducible script and a lot of things are manually tweaked, so even if you try to test on these there is no gurantee that it will accuratley reflect the results you will get on CRAN (yes, this is from painful experience...).
And even if some real issue pops up on CRAN you are not constrained by any release process (compared to arrow for example) that slows you down in deploying a fix.
Looking at the current error that happens on multiple versions and flavors I have no idea, haven't seen that one before. Looks like something broken with knitr? As it wasn't the case when initially submitted I am guessing this is on CRANs end.
Looking at the current error that happens on multiple versions and flavors I have no idea, haven't seen that one before. Looks like something broken with knitr? As it wasn't the case when initially submitted I am guessing this is on CRANs end.
I am quite sure that the error is related to the changes in package gtsummary
- which should go away since I have modified the suggests as they have recommended:
I am preparing the submission of gtsummary v2.0 to CRAN, and I wanted to alert you to a change you may need to incorporate in simstudy.
The gtsummary package utilizes the broom.helpers package to prepare regression model results. In the updated version of the package, the broom.helpers package has moved from Imports to Suggests. As a result, you may also need to add broom.helpers to the Suggests field so the package is available when your vignettes are created.
This is how benchmark results would change (along with a 95% confidence interval in relative change) if cc418dd35101cec5324e254cc38132fa05e81737 is merged into main:
@assignUser Everything seems to be good, except there is this very strange issue with one of the vignettes (double_dot_extension.Rmd) that fails to build during
R CMD check
. The message is kind of odd, because there is no times argument anywhere to be found:When I knit the rmd file, everything is fine.
And I can run the code inside a function, so clearly the environment issue has been fixed here:
But, everything I have read indicates that this is possibly an environment issue with the devtools::check() environment. This makes sense since my changes have all been environment-related. But, I can't really understand the specific error message, nor have I been able to see where the environment is properly getting passed.
I'll keep looking, but this is the last remaining piece.