Repository navigation
feat: Copy table and plot .md files into the report folder - #62
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #61.
When the report is knitted,
sbr_tables()andsbr_figures()now also copy each table's and plot's rounded.mdfile into the local report folder (sbr_get_report()), next to the.csv,.yaml,.xlsxand.pngfiles they already copy.poisreport::report_to_directory()andreport_to_client()copy the whole report folder recursively, so the.mdfiles now also reach the project's SharePoint folder and the client transfer folder, with no change to poisreport.Details
.mdfiles are copied whether or notmd = TRUE, as the.csvis..mdfile (saved with an older subfoldr2, or withoptions(sbf.save_md = FALSE)) are skipped without error..mdfiles come from subfoldr2 >= 1.0.1.9022, which is already required. Plot.mdfiles come from feat: Save rounded.mdfile of the ggplot data insbf_save_plot()subfoldr2#218, which is on subfoldr2mainbut not yet in a tagged version. The figure tests expect them, so they need subfoldr2main(asRemotesinstalls on CI).Before merging
Checks
test-tables.Randtest-figures.Rto include the.mdfiles..mdmatch the saved ones, and that a table saved without one is skipped.devtools::test()with subfoldr2main: 126 passed, 0 failed. The one warning ("No files found, so no files were dropped") predates this change.🤖 Generated with Claude Code