【发布时间】:2020-06-18 11:44:59
【问题描述】:
我是 KNIT TO PDF 这本 R-notebook 包含以下 Python 代码:
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2*np.pi*t)
plt.plot(t, s)
plt.xlabel('time (s)')
plt.ylabel('voltage (mV)')
plt.grid(True)
plt.savefig("test.png")
plt.show()
当我选择 Knit To PDF 时,出现此错误:
此应用程序无法启动,因为它无法在“”中找到或加载 Qt 平台插件“windows”。重新安装应用程序可能会解决此问题。
On the other hand, when choosing to Knit To PDF a R-notebook that contains only R code, everything works fine.
你能帮我解决这个错误吗?
【问题讨论】:
标签: r rstudio r-markdown knitr reticulate