我正在使用Rstudio的markdown包创建一个网站。当我运行一个函数时:
blogdown::install_theme('syui/hugo-theme-arch',theme_example =TRUE)
返回错误:
find_config()出错:找不到配置文件config.yaml 或者网站的config.toml
我的代码是:
devtools::install_github('rstudio/blogdown')
blogdown::install_hugo()
blogdown::install_theme('syui/hugo-theme-arch',theme_example =TRUE)
答案 0 :(得分:3)
我相信你需要先使用blogdown的new_site
功能。我认为它正在尝试更新尚不存在的配置文件,因为install_theme
函数具有update_config
参数,默认为TRUE。