I previously had the following code in my .Rprofile file. This is what I had to use prior to knitrBootstrap version 1.0.0 in order to use it with RStudio.
## For knitrBootstrap
## More info at http://www.rstudio.com/ide/docs/authoring/markdown_custom_rendering
options(rstudio.markdownToHTML =
function(inputFile, outputFile) {
library("knitrBootstrap")
knit_bootstrap_md(input=inputFile, output=outputFile, code_style="Brown Paper", chooser=c("boot", "code"), show_code=FALSE)
}
)
However, this is no longer needed. I failed to notice the updated documentation which recommends using the YAML front matter.
If for some reason you still are using the above code in your .Rprofile you will not get the R Markdown menu when using "File -> New File -> R Markdown" menu in RStudio.
which leads to:
So if you are like me and for some reason you forgot to remove this and you are wondering why the RStudio R Markdown menu doesn't show up, well, it's probably because of this.
I previously had the following code in my
.Rprofile
file. This is what I had to use prior toknitrBootstrap
version 1.0.0 in order to use it with RStudio.However, this is no longer needed. I failed to notice the updated documentation which recommends using the YAML front matter.
If for some reason you still are using the above code in your
.Rprofile
you will not get the R Markdown menu when using "File -> New File -> R Markdown" menu in RStudio.which leads to:
So if you are like me and for some reason you forgot to remove this and you are wondering why the RStudio R Markdown menu doesn't show up, well, it's probably because of this.
RStudio version used: 0.98.1017 which you can currently download from http://www.rstudio.com/products/rstudio/download/preview/