Reputation: 39
I'm using this tutorial to try and develop a website using blogdown. I get to the point of serving the site locally ( blogdown::serve_site()
) at which point in both the RStudio inline preview and my browser I get the error 'ERROR: cannot change working directory'.
It happens whether I use the 'academic' or any other theme, and I have never been able to get it to work at all.
I am using RStudio v1.2.1335, with R v3.4.4, in Linux Mint 18.1, and blogdown::hugo_version() returns '0.16'
Searches haven't been useful: this seems to identify the problem, but I can't seem to identify anything to change that allows me to serve even the example site
Any pointers would be gratefully received!
Upvotes: 0
Views: 304
Reputation: 30184
Your Hugo version is way too low. Currently the hugo-academic theme requires at least Hugo 0.55. If you install the development version of blogdown, it will automatically update Hugo when the version is not sufficient for a theme. With your current version of blogdown, you can also update Hugo by yourself: blogdown::update_hugo()
.
Upvotes: 1