Created
February 1, 2015 03:16
-
-
Save daattali/61636f4389cc91079977 to your computer and use it in GitHub Desktop.
Add this at top of R script so that "source"ing the script will automatically render a markdown+HTML
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
#+ spinme-chunk, eval = FALSE, echo = FALSE | |
.scriptName <- basename(sys.frame(1)$ofile) | |
.spinOutput <- knitr::spin(.scriptName, knit = TRUE) | |
stop(sprintf("Ignore this error - your output is ready at:\n%s", | |
normalizePath(.spinOutput)), | |
call. = FALSE) | |
#+ spinme-done, eval = TRUE, echo = TRUE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment