In R 3.5 blogdown:::serve_site() cannot render .Rmd file

空扰寡人 提交于 2019-12-22 08:26:33

问题


After I updated R to 3.5, I found I couldn't render .Rmd file. I tried to reinstall the relevant packages, but it seemed it didn't solve the problem. More specifically, the error message is:

blogdown:::serve_site()

Rendering content/post/mypost.Rmd

Fatal error: cannot open file 'C:/Users/John': No such file or directory

Error in render_page(f) : Failed to render 'content/post/mypost.Rmd'

My blogdown.Rproj is under the folder C:\Users\John Smith\Documents\GitHub\blogdown. I am not sure why the path in the error message only shows cannot open file 'C:/Users/John', the remaining part of the path was missing. Note the space in "John Smith"

Your help will be really appreciated!


回答1:


You ran into the same problem as Is this a bug in R 3.5?, and I just applied a workaround in the devel version of blogdown:

devtools::install_github('rstudio/blogdown')


来源:https://stackoverflow.com/questions/50077412/in-r-3-5-blogdownserve-site-cannot-render-rmd-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!