我正在使用blogdown
库开发一个网站。 https://bookdown.org/yihui/blogdown/workflow.html
当我尝试通过以下方式加载主题时:
library(blogdown
blogdown::new_site(theme = 'https://github.com/pacollins/hugo-future-imperfect-slim.git'
我收到错误和警告消息:
Error: /Users/mrmole/Documents/R_Projects/my_blog already exists and is not empty
Warning message:
In blogdown::new_site(theme = "https://github.com/pacollins/hugo-future-imperfect-slim.git") :
The directory '.' is not empty
有人知道这是怎么回事吗?
注意:我没有另一个名为“ my_blog”的项目。
谢谢
答案 0 :(得分:0)
好的,这对我有用:
library(blogdown
blogdown::new_site(dir = "Theme",
theme = 'https://github.com/pacollins/hugo-future-imperfect-slim.git')
我只需要设置一个目录。
感谢@SébastienRochette