r-markdown
multiple authors and subtitles in Rmarkdown yaml
I just found out that it is possible to add subtitles to R markdown PDF output. I am using R 3.2.2 and RStudio 0.99.473 in Ubuntu 14.04. — title: ‘This is the title: it contains a colon’ subtitle: ‘This is the subtitle’ output: pdf_document —
rmarkdown: pandoc: pdflatex not found
For people using ubuntu who get stranded here a better option (because it is 1/5 the size) is to use: sudo apt-get install texlive-latex-base Which I found via https://tex.stackexchange.com/a/128309
How to convert R Markdown to HTML? I.e., What does “Knit HTML” do in Rstudio 0.96?
Basic Script So now that the R markdown package has been released, here is some code to replicate the features of Knit to Html. require(knitr) # required for knitting from rmd to md require(markdown) # required for md to html knit(‘test.rmd’, ‘test.md’) # creates md file markdownToHTML(‘test.md’, ‘test.html’) # creates html file browseURL(paste(‘file://’, file.path(getwd(),’test.html’), sep=”)) … Read more
Plot size and resolution with R markdown, knitr, pandoc, beamer
I think that is a frequently asked question about the behavior of figures in beamer slides produced from Pandoc and markdown. The real problem is, R Markdown produces PNG images by default (from knitr), and it is hard to get the size of PNG images correct in LaTeX by default (I do not know why). … Read more
“long vectors not supported yet” error in Rmd but not in R Script
I also ran into this today, and fixed it by using cache.lazy = FALSE in the setup chunk in my .Rmd. So what is inside of the first chunk in my R Markdown file looks like this: library(knitr) knitr::opts_chunk$set(cache = TRUE, warning = FALSE, message = FALSE, cache.lazy = FALSE)