not found Calls: <Anonymous> error when knitting from r studio to HTML

北城以北 提交于 2019-12-12 04:13:42

问题


{r,eval=F}
corfit <- duplicateCorrelation(brain.rma, design.trt, block = blocks)

{r histOfcorrelations}
print(cor)
{r}
plot(hist(tanh(corfit$atanh.correlations)))

My codes run just fine in the RMD file, but will not knit to HTML.

Error in hist(tanh(corfit$atanh.correlations)) : object 'corfit' not found Calls: ... withCallingHandlers -> withVisible -> eval -> eval -> plot -> hist Execution halted

Any suggestions?

Thanks!


回答1:


I think that it might be because your statement eval=F. This in fact makes knitr not to evaluate corfit and then the object can't be found. Try to delete eval=F and see what happens!



来源:https://stackoverflow.com/questions/40334961/not-found-calls-anonymous-error-when-knitting-from-r-studio-to-html

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