我是不熟悉Blogdown的人,并且通过神话般的resource引导自己。不幸的是,我无法在雨果中使用学术主题。要创建一个新站点,我需要:
尝试通过运行以下命令来创建新站点:
blogdown :: new_site(theme =“ gcushen / hugo-academic”)
不幸的是,我随后遇到以下错误:
Error: Unable to find theme Directory: C:\Users\myusername\Documents\MyBlog\themes\academic
Error: Unable to find theme Directory: C:\Users\myusername\Documents\MyBlog\themes\academic
Error: Unable to find theme Directory: C:\Users\myusername\Documents\MyBlog\themes\academic
我还遇到以下问题:
Error in shell(cmd, mustWork = TRUE, intern = intern) :
'"C:\Users\myusername\AppData\Roaming\Hugo\hugo.exe" convert toYAML --unsafe' execution failed with error code 65535
我要去哪里错了?我还尝试在通过RStudio进行安装/创建过程中使用the guide,但遇到了相同的问题。我是Blogdown的新手,请多多帮助。
谢谢!
sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252 LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
[5] LC_TIME=English_Australia.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_0.12.17 bookdown_0.9 later_0.7.3 digest_0.6.15 rprojroot_1.3-2 R6_2.2.2 backports_1.1.2 magrittr_1.5 evaluate_0.10.1
[10] blogdown_0.10 stringi_1.1.7 promises_1.0.1 rstudioapi_0.7 rmarkdown_1.10 tools_3.5.2 stringr_1.3.1 httpuv_1.4.4.2 xfun_0.4
[19] compiler_3.5.2 htmltools_0.3.6 knitr_1.20
答案 0 :(得分:5)
这是由于雨果学术主题的重大变化。 {strong> blogdown (几个小时前)中的I have fixed it。请尝试开发版本:
remotes::install_github('rstudio/blogdown')
重新启动R并再次使用该主题创建一个新站点。