使用blogdown安装syui / hugo-theme-arch主题

时间:2017-02-14 16:49:56

标签: r rstudio r-markdown toml blogdown

我正在使用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)

1 个答案:

答案 0 :(得分:3)

我相信你需要先使用blogdown的new_site功能。我认为它正在尝试更新尚不存在的配置文件,因为install_theme函数具有update_config参数,默认为TRUE。