This is the GitHub repository of my personal blog about R, Scala and machine learning related materials.
It is forked from Jan Gorecki’s Rep and the original repository seems to be Jekyll Now. According to the maintainer of Jekyll Now, ‘Jekyll is a static site generator that’s perfect for GitHub hosted blogs’.
A quick start guide is found in the repository of Jekyll Now and a very basic modification is made to create a markdown file using Knitr in RStudio as illustrated below.
A RStudio project is created in the **_posts** folder and R markdown files are going to be created there. A R markdown file will have a name in the format of **YYYY-MM-DD-Article-Name.Rmd** (eg 2014-11-09-README.Rmd) and it’ll be converted into a markdown file without the underscore at the beginning (eg 2014-11-09-README.md) because
Note that sometimes it takes quite a while to have a markdown file updated and the up-to-date versions can be seen in the _posts.
Below is a quick modification of the default R Markdown file of RStudio.
kable(summary(cars))
| speed | dist | |
|---|---|---|
| Min. : 4.0 | Min. : 2.00 | |
| 1st Qu.:12.0 | 1st Qu.: 26.00 | |
| Median :15.0 | Median : 36.00 | |
| Mean :15.4 | Mean : 42.98 | |
| 3rd Qu.:19.0 | 3rd Qu.: 56.00 | |
| Max. :25.0 | Max. :120.00 |
Figures can be created in the fig folder and an option can be set to make reference. (eg **{r _fig1, fig.path=‘fig/2014-11-09-README’}**)
plot(cars)