问题
{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