Example blog with RStudio, RMarkdown and Jekyll.
Install R language, RStudio, Git Bash and Jekyll(Optional if using Github pages)
Install the latest version of the knitr package: install.packages("knitr")
Install other packages as per requirement, Like install.packages("ggplot2");
for drawing graphs etc.
Make a theme in Jekyll or use ready-made ones available here for your blog
Make a new repository in GitHub with a default branch of gh-pages and upload that jekyll theme in it
### Screenshot https://github.com/your repository
New post can be added by two methods
1. User interface
2. Command line
Tools -> Project Project Options -> Sweave -> Select knitr is default option -> Ok
R Blog (Jekyll)
template from herer_blog
directory in rmarkdown/rmarkdown/templates
File-> New File -> RMarkdown -> From Template -> Select a template R Blog (Jekyll)
_posts
directory of your blog with the name Y-M-D-title e.g 2016-08-24-blogtitle
Making post from Command line requires some packages to install from RStudio console
install.packages(c("knitr", "servr", "devtools"))
devtools::install_github("hadley/lubridate")
devtools::install_github("brendan-r/brocks")
brocks
package will appear in Packages of RStudiobrocks
the user can see all the functions which brocks
provideslibrary(brocks)
on RStudio console and hit enternew_post(title = "new post", serve = TRUE, dir = "_source",
subdir = TRUE, skeleton_file = ".skeleton_post")
new_post(title = "This is second blog", serve = TRUE, dir ="F:/GitHub/rblog/_posts", subdir = FALSE)