new_post不会在blogdown中创建RMarkdown帖子

时间:2017-06-26 17:23:07

标签: r r-markdown blogdown

我正在尝试使用hugo-future-imperfect主题,但我无法使用以下内容制作新的Rmarkdown帖子:Addins>新帖> <取代。

当我点击完成后,编辑器或文件系统中没有文件,并且控制台报告:

Loading required package: shiny
Warning: package ‘shiny’ was built under R version 3.3.3

Listening on http://127.0.0.1:7789
Error: open : The system cannot find the file specified.
Warning: running command '"C:\Users\jrl\AppData\Roaming\Hugo\hugo.exe" new "post/2017-06-26-test.Rmd" -k default' had status 65535
Error: open : The system cannot find the file specified.
Warning: running command '"C:\Users\jrl\AppData\Roaming\Hugo\hugo.exe" new "post/2017-06-26-test.Rmd" -k default' had status 65535
The system cannot find the path specified.
Warning: running command 'C:\WINDOWS\system32\cmd.exe /c "C:\Users\jrl\AppData\Roaming\Hugo\hugo.exe" new "post/2017-06-26-test.Rmd" -k default' had status 1
Warning: Error in shell: '"C:\Users\jrl\AppData\Roaming\Hugo\hugo.exe" new "post/2017-06-26-test.Rmd" -k default' execution failed with error code 1
Stack trace (innermost first):
    82: shell
    81: shell2
    80: system2
    79: hugo_cmd
    78: new_content
    77: blogdown::new_post
    76: observeEventHandler
    12: shiny::runApp
    11: shiny::runGadget
    10: eval
     9: eval
     8: eval
     7: eval
     6: eval.parent
     5: local
     4: eval
     3: eval
     2: sys.source
     1: blogdown:::new_post_addin

我用来构建网站的步骤是:

blogdown :: new_site(theme ='jpescador / hugo-future-imperfect')

1 个答案:

答案 0 :(得分:1)

这听起来像是前几天在Hugo 0.24.1中修复的错误。请重新启动您的R会话,尝试重新安装 blogdown ,并更新Hugo:

devtools::install_github('rstudio/blogdown')
blogdown::update_hugo()