jimhester / knitrBootstrap

A framework to create bootstrap styled HTML reports from knitr Rmarkdown.
Other
274 stars 61 forks source link

Remove .Rprofile knitrBootstrap custom code for RStudio: it's no longer needed in knitrBootstrap 1.0.0 #61

Closed lcolladotor closed 10 years ago

lcolladotor commented 10 years ago

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.

screen shot 2014-08-13 at 12 00 02 pm

which leads to:

screen shot 2014-08-13 at 12 00 10 pm

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/