Skip to content

fix vignette figure paths and sv_importance variable name#84

Merged
bgreenwell merged 3 commits into
masterfrom
devel
Apr 21, 2026
Merged

fix vignette figure paths and sv_importance variable name#84
bgreenwell merged 3 commits into
masterfrom
devel

Conversation

@bgreenwell
Copy link
Copy Markdown
Owner

Summary

  • Fix vignette plots not rendering: fig.path in fastshap.Rmd.orig was man/figures/ (relative to package root when knitting), but rmarkdown::render() runs from vignettes/, so images couldn't be found. Changed to figures/ and updated the knit workflow to run from inside vignettes/.
  • Add vignettes/figures/ with all 7 pre-rendered PNGs copied from man/figures/.
  • Update all src= paths in the pre-rendered fastshap.Rmd to match.
  • Fix sv_importance(shv)sv_importance(shv.global) in both .orig and the rendered .Rmd (wrong variable from local explanations section was referenced in the global explanations section).

Test plan

  • rmarkdown::render("vignettes/fastshap.Rmd") — open output HTML and confirm all 7 plots appear
  • pkgdown::build_site() — confirm no new errors; article page shows all plots

Brandon Greenwell added 3 commits April 20, 2026 22:36
Change fig.path from man/figures/ to figures/ in fastshap.Rmd.orig so
figures land in vignettes/figures/ (relative to vignettes/) and resolve
correctly when rmarkdown renders the vignette. Update knit comment to
reflect running from inside vignettes/. Copy existing PNGs to
vignettes/figures/ and update all src= paths in the pre-rendered .Rmd.

Also fix sv_importance(shv) -> sv_importance(shv.global) in both files.
@bgreenwell bgreenwell merged commit eb72910 into master Apr 21, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant