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

前端 未结 19 1283
自闭症患者
自闭症患者 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:15

    I have another instance of this error which seems to be new (or at least not listed here or here: apparently it's not OK to save a file with the name aux.RData. I guess it's a reserved filename.

    x <- rnorm(9000)
    save(x, file = "aux.RData")
    
    Error in gzfile(file, "wb") : no se puede abrir la conexión
    Also: Warning message:
    In gzfile(file, "wb") :
      cannot open compressed file 'aux.RData', probable reason 'No such file or directory'
    

    But when I change the filename saves with no problem:

    save(x, file = "aux_file.RData")
    

提交回复
热议问题