我有一个简单的R脚本.当它通过Rscript.exe运行时,默认情况下它正在绘制为PDF文件.我希望脚本打开一个绘图窗口.
我使用命令:
Rscript.exe tmp_plot.R
r文件tmp_plot.R包含:
x <- 1:10 y <- sin(x) plot(x,y)
scripting r
r ×1
scripting ×1