-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
521 documentation review before the release #530
Conversation
Code Coverage Summary
Diff against main
Results for commit: d260d7c Minimum allowed coverage is ♻️ This comment has been updated with latest results |
If you reviewwed examples please make sure you actually run them in an interactive session as they are not covered by Unsure if there is a bigger purpose of this task besides bumping teal.code in DESCRIPTION file to 0.3.0. Am I missing something @gogonzo ? Yes, change is massive. We changed argument changes main vs last release https://github.com/insightsengineering/teal.modules.general/compare/2022_10_13...main?diff=split |
@gogonzo I did check that there was a lot of changes during this PR #485
Some needed extra packages to be installed, like |
Did you also add appropriate messages for installing those packages? Ones like this appear in several places in
|
@chlebowa yes, those were already pasted as warnings/error messages
The above are results of such assertions on the beginning of the call. Below example taken from
|
Since it is already there let's not change it, message is explicit and clear. I don't have an opinion yet how we should handle dependencies yet. This is something we'd need to discuss soon |
Oh, good. Can you fix the message, though? This |
We could open a prompt, asking a person for an action in this case On a missing dependencies:
|
It's not strictly missing, the packages are listed in |
Yeah I know they are listed in Suggests. The popular convention is that, if a package is only used in one function that is not the main function of the package and package can live without this function, then it's better to have the package in Suggests, so it's not installed by default when installing the initial package (so that installation time is shorter and there is less dependencies clutter). The dependent packages in Suggests will be installed if someone specify The only question, that we could tackle on a separate discussion, is if we:
|
That is correct. The packages that we
And that is what we do when they are encountered. Just raise an error. |
alrighty, getting back to tmg review
I think it was a great job already made on this huge PR that introduced qenv |
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.
looks good. Thanks for updating teal.code
depedency
Hey @gogonzo @pawelru the check for this PR does not pass because our own builds do not allow specific R CMD Check NOTES. In this case we do not allow any NOTES related to In our case this is raised because examples take more than 5 seconds - they actually run for 8 seconds Any idea what to do? Should we delete examples, or should we reduce NOTES check on GitHub Action checks? |
sure @gogonzo , will do! thanks |
I really don't know. I would like to still keep this note in our block-list if possible, i.e. I agree with @gogonzo to think how to optimize those examples. This is generally not good that example takes long time to execute. FYI: Yet another way of dealing with this is to set up |
@pawelru @gogonzo what if we setup R_CHECK_EXAMPLE_TIMING_THRESHOLD to 10 seconds? And for the decoupling, we can have more time to rethink - I would suggest storing minimal SCDA data in teal/data directory and reuse it in all teal.* family packages that use teal. This way we keep good examples, based on clinical/scda data and we got rid of scda |
@m7pr I am not that deep in this package so can't say how hard is it to do the optimisation. Please make a call. I trust your assessment |
@gogonzo what would you say for bumping up the threshold time for examples in here to 10 seconds? And for the decoupling I think we could have a separate discussion as I rather recommend to have scda data stored in teal and reused in mutltiple packages, instead of having examples on iris |
I think this is a good temporary solution, the threshold can be lowered once #532 is completed.
A similar solution was suggested and explicitly rejected. |
yeah, I see that, we would need to use I made a draft to increase examples time - waiting for @gogonzo for a green light insightsengineering/r.pkg.template#167 |
Please do this for this repo only. I would like to stick to defaults for all the other repos and treat this one as an exception (out of that default value of 5) |
I wouldn't keep data in
The fact that Optimally, data could be stored in |
Based on specification from #521
I checked that this PR #485 replaced all
teal.code::chunks_*
withteal.code::eval_code
orteal.code::new_qenv
. This looks like backend functionality (not exposed to the user) sochunks
were not exposed in examples, hence even though I reviewed examples, nothing was there to be checked. Vignettes, nor README nor DESCRIPTION never mentioned the usage ofchunks
so no need to update them with any deprecation notes.Unsure if there is a bigger purpose of this task besides bumping teal.code in DESCRIPTION file to 0.3.0. Am I missing something @gogonzo ?