# install blogdown
install.packages("blogdown")
library(blogdown)
# install HUGO
blogdown::install_hugo()
Set the website folder as the working directory
blogdown::serve_site()
# To stop the server
blogdown::stop_server()
While blogdown::serve_site()
, any pages that are generated from Rmd files (e.g. content/impact/impact.html) are automatically regenerated when you save the soruce.