【问题标题】:blogdown:::new_post_addin() causes unsolved errorblogdown:::new_post_addin() 导致未解决的错误
【发布时间】:2022-01-17 14:01:50
【问题描述】:

我正在尝试使用new_post_addin() 创建新帖子。

然后我得到了:

> Listening on [http://127.0.0.1:6651](http://127.0.0.1:6651/)
Warning in file(con, "r") :
cannot open file 'Content "C:\\Users\\82103\\Desktop\\ssangblog\\content\\post\\2021-12-14-1234\\index.md"/index.md': Invalid argument
Warning: Error in file: cannot open the connection
> 9: shiny::runApp
> 8: shiny::runGadget
> 7: eval
> 6: eval
> 5: sys.source
> 2: source_addin
> 1: blogdown:::new_post_addin
>

首先,文件目录有些奇怪

'Content "C:\\Users\\82103\\Desktop\\ssangblog\\content\\post\\2021-12-14-234\\index.md"/index.md'

我不知道为什么会有'双反斜杠'和两个'index.md'和'Content "~"'。 我只是觉得处理文件目录的代码一定有错误。

其次,在内容文件夹中创建的唯一文件是 index.md,其中我输入的标签没有正确输入。 我还创建了 R markdown,为什么是 '.md'... index.md

这可能是源于第一个问题。

为了解决我的问题,我参考了以下网址。

https://www.py4u.net/discuss/896387

https://d.cosx.org/d/422702-blogdownnew-post-addin

我找不到根本的解决方案,唯一的答案是通过更新来修复它。

我参考了下面的 url 来检查回溯错误发生在哪里。

通过查看它们,我意识到这超出了我的能力范围。

【问题讨论】:

    标签: r blogdown


    【解决方案1】:

    这是a known bug,已在blogdown 的开发版中得到修复(如NEWS.md 所示)。请安装开发版:

    remotes::install_github('rstudio/blogdown')
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-28
      • 2021-10-28
      • 1970-01-01
      • 2011-11-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多