[英]Unable to knit the Rmarkdown file to pdf
I tried to knit a R-markdown file to Pdf but kept receiving an error.我尝试将 R-markdown 文件编入 Pdf,但一直收到错误消息。 I have included a screenshot of the error.
我已经包含了错误的屏幕截图。 The r chunk in line 107 is:
第 107 行的 r 块是:
#means and confidence intervals
ggplot(data = lizard_means_dataframe, aes(x = dist_pred_nest, y = emmean, colour = dist_pred_nest)) +
geom_point(size = 2) + geom_errorbar(aes(ymin = lower.CL, ymax = upper.CL), lizard_means_dataframe, width = 0.2) +
scale_color_brewer(palette = "Dark2") + guides(colour="none") +
theme_classic(base_size = 16) + xlab ("Distance to the nest of a predator") + ylab ("Distance to the neighbor lizard territory")
What should I do here?我应该在这里做什么?
I solved my problem by creating another R-markdown file and setting the output as a pdf document.我通过创建另一个 R-markdown 文件并将输出设置为 pdf 文档解决了我的问题。 I could not use the
render
function to specify the output format.我无法使用
render
函数来指定输出格式。 I uninstalled Miktek and installed Teklive.我卸载了 Miktek 并安装了 Teklive。 Now I'm able to knit my document successfully.
现在我可以成功编织我的文档了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.