簡體   English   中英

無法將 Rmarkdown 文件編織成 pdf

[英]Unable to knit the Rmarkdown file to pdf

我嘗試將 R-markdown 文件編入 Pdf,但一直收到錯誤消息。 我已經包含了錯誤的屏幕截圖。 第 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")  

R中的錯誤

我應該在這里做什么?

我通過創建另一個 R-markdown 文件並將輸出設置為 pdf 文檔解決了我的問題。 我無法使用render函數來指定輸出格式。 我卸載了 Miktek 並安裝了 Teklive。 現在我可以成功編織我的文檔了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM