1
我一直试图用blogdown和hugo设置new_site使用blogdown: Creating Websites with R Markdown中的快速示例;然而,在通过RStudio创建的新的空项目中调用new_site()命令后,我得到以下错误。我不确定错误调用是基于什么,所以任何帮助解决这个问题都非常感谢。博客中的new_site在编辑器中导致错误
> new_site()
Congratulations! Your new Hugo site is created in C:\Users\XYZ\Downloads\Test2\Site.
Just a few more steps and you're ready to go:
1. Download a theme into the same-named folder.
Choose a theme from https://themes.gohugo.io/, or
create your own with the "hugo new theme <THEMENAME>" command.
2. Perhaps you want to add some content. You can add single files
with "hugo new <SECTIONNAME>\<FILENAME>.<FORMAT>".
3. Start the built-in live server via "hugo server".
Visit https://gohugo.io/ for quickstart guide and full documentation.
trying URL 'https://github.com/yihui/hugo-lithium-theme/archive/master.zip'
Content type 'application/zip' length 119078 bytes (116 KB)
downloaded 116 KB
Error in editor(file = file, title = title) :
argument "name" is missing, with no default
快速示例页面指出新站点应显示在RStudio查看器中。这不会发生(假设由于错误)。但是,在调用服务站点后,页面确实出现在查看器中。
> serve_site()
Rendering content/post/2015-07-23-r-rmarkdown.Rmd
Started building sites ...
Built site for language en:
0 draft content
0 future content
0 expired content
4 regular pages created
16 other pages created
0 non-page files copied
0 paginator pages created
3 tags created
1 categories created
total in 34 ms
Serving the directory C:\Users\XYZ\Downloads\Test2\Site at http://BLABLA
错误通过new_post创造新的职位时()也触发:
> new_post("MyTest")
C:\Users\XYZ\Downloads\Test2\Site\content\post\2017-09-25-mytest.md created
Error in editor(file = file, title = title) :
argument "name" is missing, with no default
虽然新的帖子出现在内容/后的文件夹。
谢谢你的任何建议如何解决它。