Skip to content
Snippets Groups Projects
Commit 6524ac19 authored by Holger Brandl's avatar Holger Brandl
Browse files

improved chunk defaults

parent 8bf62023
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,6 @@ rknit(){
echo '```' >> $tmdRmd
echo 'require(knitr); options(width=150); opts_knit$set(cache = TRUE); knit2html("'$tmdRmd'", output="'$(basename $rscript .R)'")' | R --vanilla -q
echo 'require(knitr); options(width=150); opts_chunk$set(cache = TRUE, fig.width=10, width=100); knit2html("'$tmdRmd'", output="'$(basename $rscript .R)'")' | R --vanilla -q
}
......@@ -2,12 +2,14 @@
require(dplyr)
require(ggplot2)
###> test heading
##> test heading
#> ... followed by some markup
head(iris)
#> some markup
#> * or list
#> * elements
ggplot(iris, aes(Species, Sepal.Length, fill=Species)) + geom_boxplot() + scale_fill_discrete(guide=F)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment