1、当前路径文件
> dir() [1] "a.txt"
2、加载包,绘图测试
> library(Cairo) > Cairo.capabilities() png jpeg tiff pdf svg ps x11 win raster TRUE FALSE FALSE TRUE TRUE TRUE TRUE FALSE TRUE > CairoPNG(file="test.png",width=1000,height=500) > plot(1:10) > dev.off() null device 1
> dir() [1] "a.txt" "test.png"
参考: https://blog.csdn.net/wa2003/article/details/46310811/