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/