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
#' this script demos how to use knitr::spin to turn a .R script into a knitted markdown | |
#' these funny hash/tick comments will be read in the .md doc as text | |
#' everything else will be run as a code chunk | |
#' to use spin, in the console run knitr::spin(file = spintest.R) | |
#' you will end up with a .md doc in your files, open it and knit to html | |
#' load packages | |
library(tidyverse) |