Error in gzfile(file, “wb”): cannot open the connection or compressed file

前端 未结 19 1286
自闭症患者
自闭症患者 2021-02-05 06:49

I\'m trying to run two things: first, I\'m creating a PDF with 4x5, ending with dev.off(), and then trying to create a new graph. However, after starting the second plot, I get:

19条回答
  •  长发绾君心
    2021-02-05 07:12

    You may have no permission to save file in the directory. On RStudio, get your working directory by getwd(). Then, go to the directory in linux and observe its owner by ls -l. Now you can change the owner of the directory by chown -R username directoryname. But you must be root.

提交回复
热议问题