我在让R从笔记本中输出任何工作时遇到了困难。我已经更新了所有的软件包,并重新安装了R。我尝试预览,但收到的错误信息是“未找到html_dependency的路径”。我相信这个问题可能与我的文件无法创建包含.Rmd文件的.nb.html文件有关,但我不确定。我用来确保不是用户错误的方法是打开一个全新的会话和笔记本,并尝试输出已经编写好的脚本。有什么想法吗?
编辑:这是我的代码,是笔记本的基本代码:- title:"R Notebook“输出: html_notebook
This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you
execute code within the notebook, the results appear beneath the code.
Try executing this chunk by clicking the *Run* button within the chunk or by
placing your cursor inside it and pressing *Ctrl+Shift+Enter*.
```{r}plot(汽车)
Add a new chunk by clicking the *Insert Chunk* button on the toolbar or by
pressing *Ctrl+Alt+I*.
When you save the notebook, an HTML file containing the code and output will
be saved alongside it (click the *Preview* button or press *Ctrl+Shift+K* to
preview the HTML file).我已经将它另存为测试notebok.Rmd,但是无法获得.nb.html文件来创建它自己,我认为这是问题所在。
https://stackoverflow.com/questions/44575160
复制相似问题