hugo
command to build a site.
install_hugo(version = "latest", use_brew = TRUE, force = FALSE)
0.17
; the special value
latest
means the latest version (fetched from Github releases).brew update && brew upgrade
instead).Sys.getenv('APPDATA')
on
Windows, ~/Library/Application Support on macOS, and ~/bin/ on
other platforms (such as Linux). If these directories are not writable, the
package directory Hugo of blogdown will be used. If it still
fails, you have to install Hugo by yourself and make sure it can be found via
the environment variable PATH
.This is just a helper function and may fail to choose the correct Hugo executable for your operating system, especially if you are not on Windows or Mac or a major Linux distribution. When in doubt, read the Hugo documentation and install it by yourself: https://gohugo.io.