-
Notifications
You must be signed in to change notification settings - Fork 7
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
232 functions used in formula= argument in defdata not available for functions defined out of global namespace #233
Conversation
…available-for-functions-defined-out-of-global-namespace' of https://github.com/kgoldfeld/simstudy into 232-functions-used-in-formula=-argument-in-defdata-not-available-for-functions-defined-out-of-global-namespace
@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
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. |
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 75053fd is merged into main:
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if f3a06bb is merged into main:
|
I think I found the problem - there was some conflict with using the variable name n in |
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.
Nice, looks good!
Thank goodness for all the tests.
Right? Tests give peace of mind :D In that regard it probably makes sense to add a test to make sure evaluation in non-global envs works for vars and functions?
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 |
This is how benchmark results would change (along with a 95% confidence interval in relative change) if c69acec is merged into main:
|
@assignUser A few things:
|
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.
Nice, looks good. One minor suggestion.
Yep, it is always good to think about dependencies but you seem to have a good hand for that ;)
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. |
I am quite sure that the error is related to the changes in package
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if cc418dd is merged into main:
|
No description provided.