-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
facilitate user extension of break_chain
may fix #15
- Loading branch information
1 parent
5d57ca9
commit 5fb9a8e
Showing
10 changed files
with
87 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ | |
^\.github$ | ||
^\.vscode$ | ||
^\.devcontainer | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.Rproj.user | ||
.Rhistory | ||
.RData | ||
.Ruserdata | ||
*.Rproj |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# 0.3.0 | ||
|
||
`break_chain()` is now extendable by developers. It returns the result of chain | ||
evaluation invisibly, so that you can handle the result as you choose with a new | ||
shortcut, e.g. `View(break_chain())`. Also in aid of this, printing and | ||
assigning the result of evaluation can be disabled via arguments, e.g. : | ||
|
||
`View(break_chain(print_result = FALSE, assign_result = FALSE))` | ||
|
||
For RStudio users, probably the best way to quickly build a custom chain result | ||
handler is via the excellent `{shrtcts}` package. You could put something like | ||
this in your `~/shrtcts.R`: | ||
|
||
```{r} | ||
#' View broken chain | ||
#' | ||
#' @interactive | ||
function() { | ||
View(breakerofchains::break_chain(print_result = FALSE, assign_result = FALSE)) | ||
} | ||
``` | ||
|
||
Thanks to @chorgan182 for giving me the idea for this in [#15](https://github.com/MilesMcBain/breakerofchains/issues/15) |
This file contains 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
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.