-
Notifications
You must be signed in to change notification settings - Fork 71
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
Closes #2563 no_list_columns: add check to avoid list columns #2592
Conversation
I'm a little over my head ...
|
@jimrothstein this is due to having an older version of you need to install latest from github by using be sure to restart and verify that you are using latest dev version 1.1.0.9006 |
When we depend on a dev version of a package, we should also indicated this in our DESCRIPTION file FYI
It used to be the case, that |
No problems or errors:
Just fyi, Imports: |
I have updated the required admiraldev version in I wonder if we should add a function/addin to pharmaverse4devs which installs the @bms63 , what do you think? |
FYI if we have a |
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.
I am happy! :) @jeffreyad @jimrothstein @ddsjoberg any other thoughts? if not lets get this merged in before Stefan leaves for the day (noon US EST)
@bundfussr this is popping up in my branch now |
@bms63 , good catch! I missed to add the snapshot. I've added it in #2625. Unfortunately, R-CMD check doesn't fail if warnings occur in the unit tests. I couldn't find an option to change this behaviour. @ddsjoberg , any ideas? |
@bundfussr if we used the standard R CMD Check workflow from Posit, then default is to error when warnings are present. Otherwise, we'd need to ask the IDR team whether it's possible in their current workflows. I am in favor of replacing this workflow with the standard one: https://github.com/pharmaverse/admiral/blob/main/.github/workflows/R-CMD-check.yaml I don't like how the one we have only checks against dev versions. I would much prefer we use the DESCRIPTION file to specify if we depend on dev versions of packages. Also, it makes it difficult for someone who installs the package from github to get a working version when we do indeed depend on a dev version of, for example, admiraldev, because in the past we've forgotten to update the DESCRIPTION file with this information (which is how all the installation functions identify dep packages needed). Anyway, I think I am a broken record on this point 😝 |
@ddsjoberg , all our R CMD Check workflows fail if R CMD check issues a warning. The problem is that a warning in a unit test doesn't trigger a warning in the R CMD check. Consider for example https://github.com/pharmaverse/admiral/actions/runs/12655315803/job/35265315719. In R CMD check the unit tests pass: Do you know if this behavior can be changed? |
We could use
in @bms63 , @ddsjoberg , what do you think? |
that feels sensible and nice to use already existing tools!! |
looks great! |
Handling of warnings in unit tests was changed in #2628. |
Thank you for your Pull Request! We have developed this task checklist from the Development Process Guide to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.
Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the
main
branch until you have checked off each task.styler::style_file()
to style R and Rmd filesinst/cheatsheet/admiral_cheatsheet.pptx
and re-upload a PDF and a PNG version of it to the same folder. (The PNG version can be created by taking a screenshot of the PDF version.)devtools::document()
so all.Rd
files in theman
folder and theNAMESPACE
file in the project root are updated appropriatelyNEWS.md
under the header# admiral (development version)
if the changes pertain to a user-facing function (i.e. it has an@export
tag) or documentation aimed at users (rather than developers). A Developer Notes section is available inNEWS.md
for tracking developer-facing issues.pkgdown::build_site()
and check that all affected examples are displayed correctly and that all new functions occur on the "Reference" page.lintr::lint_package()
R CMD check
locally and address all errors and warnings -devtools::check()