由于找不到html_dependency,RNotebook无法输出 [英] RNotebook cannot output due to html_dependency not found

查看:179
本文介绍了由于找不到html_dependency,RNotebook无法输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难让R从笔记本上输出任何作品.我已经更新了所有软件包并重新安装了R.我尝试预览,并且收到的错误消息是找不到html_dependency的路径".我相信此问题可能与我的文件无法使用.Rmd文件创建.nb.html文件有关,但我不确定. 我用来确保不是用户错误的方法是打开一个全新的会话和笔记本,然后尝试输出已编写的脚本. 有什么想法吗?

I have had trouble getting R to output any work from the notebook. I have updated all packages and reinstalled R. I try to preview and the error message I receive is "path for html_dependency not found". I believe this problem could be related to the failure of my file to create a .nb.html file with the .Rmd file but I am unsure. The method I have used to try to insure that it was not user error is opening a brand new session and notebook and trying to output the already written script. Any ideas?

这是我的代码,这是笔记本的基本代码: --- 标题:"R Notebook" 输出:html_notebook ---

Here is my code which is the base notebook code: --- title: "R Notebook" output: 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(cars)
```

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文件来创建自身.

I have it saved as test notebok.Rmd but cannot get a .nb.html file to create itself I believe is the problem.

推荐答案

我遇到了类似的问题,但由于要编织成HTML,在尝试了所有方法之后,我最终卸载并删除了所有内容,然后重新安装了所有内容.这对我有用,只是更新软件没有

I had a similar issue but for knit to HTML, after trying everything I ended up uninstalling and deleting everything and re-installing It all. This worked for me, simply updating the software didn't

这篇关于由于找不到html_dependency,RNotebook无法输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆