2017-02-14 1 views
2

Rstudio의 markdown 패키지를 사용하여 웹 사이트를 만드는 중입니다.블로그 다운로 syui/hugo-theme-arch 테마 설치

blogdown::install_theme('syui/hugo-theme-arch',theme_example =TRUE) 

반환 오류 :

Error in find_config(): Cannot find the configuration file config.yaml or config.toml of the website

내 코드입니다 : 나는 기능을 실행하면

devtools::install_github('rstudio/blogdown') 
blogdown::install_hugo() 
blogdown::install_theme('syui/hugo-theme-arch',theme_example =TRUE) 
+0

작업 디렉토리를 사이트의 디렉토리로 설정 했습니까? 'find_config()'가 그렇게 불평하면 테마가 아닌 * your * 사이트의 설정 파일을 찾을 수 없기 때문일 수 있습니다. 예를 들어, 사이트의 wd에 있지 않고 blogdown 기능을 실행하려고하면이 오류가 발생합니다. – RobertMc

답변

3

을 내가 먼저 사용 blogdown의 new_site 기능에 필요 믿습니다. 나는 install_theme 함수의 기본값이 TRUE 인 update_config 인수를 가지고 있기 때문에 아직 존재하지 않는 설정 파일을 업데이트하려고한다고 생각한다.

관련 문제