How to Add a Blog Post With Source Code

There is an easy to post a blog with knitr and the html source code. Just follow the following steps and you could finish it easily.

  1. Knit your .Rmd file into a html and open it in the browser.
  2. Right click and see the source code
  3. Choose Text label in the
  4. Paste the source code into the editor
  5. Click the button: Publish!

Attention! This method would work well if your knitr file is relatively small, e.g. less than 2 MB. Uploading a large source code will crash your browser!


1 Comment

  1. Nice post. I learn something totally new and challenging on blogs I stumbleupon every day.
    It's always useful to read articles from other authors
    and practice something from their web sites.

Leave a Reply

Your email address will not be published. Required fields are marked *