Skip to content

'Run All' now runs only R chunks in console output mode - #15139

Merged
kevinushey merged 2 commits into
mainfrom
bugfix/run-all-chunks-r-only
Sep 10, 2024
Merged

kevinushey merged 2 commits into
mainfrom
bugfix/run-all-chunks-r-only

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Intent

Addresses #11995.

Approach

The helper function isRChunk() was put together in the old days, before rmarkdown and knitr supported declaring the engine name directly at the start of a chunk. Because it specifically tried to pull out a chunk option set via engine =, it fell to the default behavior of assuming everything was an R chunk.

Note that non-R chunks are still not executed in this mode; I think we're still advocating that users who want all chunks to be executed (even non-R chunks) will need to enable inline chunk outputs?

Automated Tests

Not included.

QA Notes

Test via notes in #11995.

Documentation

N/A

Checklist

  • If this PR adds a new feature, or fixes a bug in a previously released version, it includes an entry in NEWS.md
  • If this PR adds or changes UI, the updated UI meets accessibility standards
  • A reviewer is assigned to this PR (if unsure who to assign, check Area Owners list)
  • This PR passes all local unit tests

@gtritchie gtritchie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kevinushey
kevinushey merged commit 1478d61 into main Sep 10, 2024
@kevinushey
kevinushey deleted the bugfix/run-all-chunks-r-only branch September 10, 2024 23:16
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.

2 participants