knitr不知道新功能(r-markdown) [英] knitr doesn't know new function (r-markdown)
问题描述
我对使用knitr(r-markdown)的HTML输出有疑问.
I have a problem regarding the HTML-output with knitr (r-markdown).
我使用了"gamlss"软件包中的函数gamlss
,但是knitr
找不到此函数/软件包.因此,当我尝试使用编织HTML"进行输出时,它只会显示一条错误消息:
I worked with the function gamlss
from the package "gamlss", but knitr
cannot find this function/package. So when I try to make an output with "Knit HTML", it just appears an error message:
(eval(expr,envir,enclos)中的错误:找不到功能 "gamlss"调用:... handle-> withCallingHandlers-> withVisible-> eval-> eval实施停止. "
"(error in eval(expr, envir, enclos) : couldnt find Function "gamlss" Calls: ... handle -> withCallingHandlers -> withVisible -> eval -> eval implementation stopped. "
有人处理过类似的问题吗?
Has anybody ever dealt with a similar problem?
推荐答案
您还必须将包加载到markdown文件中
you have to load the package in the markdown file as well
```{r,echo=FALSE}
library(gamlss)
**rest of the code**
```
这篇关于knitr不知道新功能(r-markdown)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!