Skip to content

Add Additional Analysis slides to exported PPT/QMD results decks#1033

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-additional-analysis-results
Draft

Add Additional Analysis slides to exported PPT/QMD results decks#1033
Copilot wants to merge 2 commits intomainfrom
copilot/add-additional-analysis-results

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 2, 2026

This PR extends slide exports so the app’s Additional Results (matrix ratios and excretion summary) are included in both results_slides.pptx and results_slides.qmd, under a dedicated section at the end of the deck.

  • Slide export wiring

    • inst/shiny/functions/zip-utils.R
    • .export_slides() now forwards additional analysis outputs (matrix_ratios, excretion_results) into the slide-generation pipeline via res_dose_slides metadata.
  • PPT output updates

    • R/officer-utils.R
    • create_pptx_dose_slides() now appends:
      • a separator title slide: “Additional Analysis Figures”
      • table slide(s) for available non-empty datasets:
        • Matrix Ratios
        • Excretion Summary
  • QMD output updates

    • R/quarto-utils.R
    • create_qmd_dose_slides() now:
      • persists additional_analysis with res_dose_slides in results_slides_outputs.rda
      • appends a section slide: “Additional Analysis Figures”
      • appends per-table slides for:
        • matrix_ratios
        • excretion_summary
  • Focused coverage

    • tests/testthat/test-quarto-utils.R
    • Adds targeted assertions for:
      • section/slides present when additional analysis data exists
      • section omitted when no additional analysis tables are available
attr(res_dose_slides, "additional_analysis") <- list(
  matrix_ratios = additional_analysis$matrix_ratios,
  excretion_summary = additional_analysis$excretion_results
)
Original prompt

This section details on the original issue you should resolve

<issue_title>Enhancement: Add additional analysis results in PPT</issue_title>
<issue_description>### Description
The Additional Results in the App (matrix ratios, excretion summary) when run could be added to the PPT result_slides.pptx and the respective result_slides.qmd at the end of the document in a section separated by a slide called "Additional Analysis Figures"

Definition of Done

The requirements for the feature to be complete:

  • Add Additional Results to the PPT
    </issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: Gero1999 <68994823+Gero1999@users.noreply.github.com>
Copilot AI changed the title [WIP] Add additional analysis results to PPT Add Additional Analysis slides to exported PPT/QMD results decks Mar 2, 2026
bachapman added a commit that referenced this pull request Apr 1, 2026
…customise-outputs-in-ppt-power-point

Feat: options to customise outputs in ppt power point (#972, compatible with #1033 changes) and output/zip file validation in modal
@Gero1999 Gero1999 mentioned this pull request Apr 2, 2026
13 tasks
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.

Enhancement: Add additional analysis results in PPT

2 participants