Repository navigation
Cell order misses - #2831
Merged
Merged
Cell order misses#2831
Conversation
- cell-order query: new option `runner` (knitr, session, jupyter) that overrides the runner of the format; session keeps the plot, the device, and the working directory across cells - the query's orders leave out orders that run into a read no cell provides; `|>` is a base function; relative file reads resolve against the notebook's directory; dev.off keeps the plot of another device; data masks over R's data sets know their columns - sure warnings: a table of base calls that surely warn and an analysis over the dataflow graph; options(warn = 2) makes a later sure warning a failure, unless it is suppressed or handled - conditional code: single random draws resolve to their range, so branches that can never run are dropped; reads, removals, and options that R may skip are not required or certain - sigdb: a `warns` property and flag - tests: every audit notebook pinned to the orders and dead ends that R produces under console and knit semantics, plus unit tests for warnings, value ranges, and the counterexamples found
- values count only if they are the same in every cell order (CodeBindings); this gates the folding of conditions, loops, random draws, and sure-warning arguments - redefined or masked base functions, S3 methods, and attached packages that export a name disable that function's sure warnings - a warn level set in a called function counts; as.complex no longer claims a warning; rm(x) of an unbound x warns - seq_len(0) loops never run; knitr::knit_exit() skips all later chunks - rm(list = ls()) keeps dot names, other lists remove nothing for sure - .GlobalEnv$x <- v rebinds x - every former expected failure is fixed or pinned to the sound answer; 31 more audit cases and unit tests
- a name has a fixed value if its one assignment runs exactly once: in blocks, under if (TRUE), as top-level <<-, or via assign() without an environment; this restores folding the mutation tests rely on - smaller diff: audit and unit tests as compact tables, certain warnings reuse argument matching and value helpers, seq_len folds through resolveAsSeq, warning and random-draw data as tables
Member
Author
|
This pull request is included in v2.17.16 (see Release v2.17.16 (Recover Perf of Cell Ordering)). |
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.
No description provided.