Blog on FAKIN project status
# Install the devtools package
if (! require("devtools")) {
install.packages("devtools", repos = "https://cloud.r-project.org")
}
# Install the blogdown package
devtools::install_github("rstudio/blogdown")
# Install hugo
blogdown::install_hugo()
Create an Rmarkdown post similar to 2017-05-19-fakin-project-started.Rmd in directory content/post
.
To do so run the following R code:
### Delete "public" folder (i.e. in case of older website builds)
unlink("public", recursive = TRUE)
### Build site
blogdown::build_site(local = FALSE)
### Copy files from public folder (please do not COMMIT!!) into docs folder
### which is required to work for GITHUB (all changed content of the docs folder
### needs to be committed to Github for the blog to be updated)
file.copy(from = "public/.", to = "docs", overwrite = TRUE, recursive = TRUE)
If completed finally commit (vit GIT/Subversion) the changed files in the following two directories:
content/post
docs
and you are done.
The content of the updated blog is available at http://kwb-r.github.io/fakin.blog.