Closed barrettk closed 1 week ago
@barrettk
Can webshot::install_phantomjs()
be added to the top of test-model-tree.R
Most of the check failures are straightforward. I can help take a look at the oldest job failure:
https://github.com/metrumresearchgroup/bbr/actions/runs/9701317535/job/26774698747
ℹ Creating lockfile '.github/pkg.lock'
✔ Updated metadata database: 3.47 MB in 10 files.
ℹ Creating lockfile '.github/pkg.lock'
ℹ Updating metadata database
✔ Updating metadata database ... done
ℹ Creating lockfile '.github/pkg.lock'
✖ Creating lockfile '.github/pkg.lock' [6.3s]
Error:
! error in pak subprocess
Caused by error:
! Could not solve package dependencies:
* deps::.: Can't install dependency scales (>= 1.3.0)
* scales: scales conflicts with scales, to be installed
* any::sessioninfo: dependency conflict
* any::pkgdown: dependency conflict
* any::rcmdcheck: dependency conflict
scales (>= 1.3.0)
1.3.0 isn't on MPN 2023-01-25 (it wasn't released until Nov 2023).
@barrettk is this constraint just copied from ggplot2? Or are we using scales directly in a way that requires 1.3.0 or later? If the former, I think we can drop the constraint, and hopefully that will resolve the pak failure.
@kyleam It wasn't copied from ggplot2
and I believe I did that because of scales::pal_gradient_n
, and there wasn't really an easy workaround. That being said I do have functions set up to skip tests and not run the functions if that version isnt there, so dropping it may still be a good solution.
See req_tree_pkgs
, check_for_model_tree_pkgs
, and skip_if_tree_missing_deps
for details if interested
I believe I did that because of
scales::pal_gradient_n
I see. Then the options I can think of are
I think you're going with the first option (no objections from me).
Highlighting this note, since it won't fail the build:
https://github.com/metrumresearchgroup/bbr/actions/runs/9702122713/job/26777261543
* checking Rd \usage sections ... NOTE
Documented arguments not in \usage in Rd file 'format_model_type.Rd':
‘.mod’ ‘msg’
@kyleam can you take a look at the CI before and after I added collapsibleTree
to github actions? A) it seems like it was being installed on mpn-oldest before I added it, and B) clicking the green check is now displaying different/less options.
Edit: the B) I reported was because I accidentally hit 'enter' and didnt realize when I went to commit that change. A) is the only uncertainty
For reference: expected to see collabsibleTree here too
A) it seems like it was being installed on mpn-oldest before I added it
You don't need the custom step as long as it can be retrieved from the date-pinned RSPM URL.
You don't need the custom step as long as it can be retrieved from the date-pinned RSPM URL.
Would you recommend reverting this change then, or is there potentially a reason to keep it (some form of risk mitigation)?
Would you recommend reverting this change then
yes
Introduces new
model_tree()
function, allowing you to create a tree diagram for your modeling directorySome Example function calls
Example output
Logical values will be colored as white and red, and are referred to as 'border colors'. The more unique values are added, the more gradient colors between those two border colors are generated.
This example illustrates how
NA
values are handled. Here we color by description (which wouldn't make sense to do in practice). The two distinct descriptions are colored white and red, whereNA
values are colored grey.Previous PR for reference: https://github.com/metrumresearchgroup/bbr/pull/610