Nso
Nso

Reputation: 85

R can't save to PRN.rData

If you try to save any dataset to "PRN.rData", you'll get an error:

d<- data.frame(D=NA, K=NA)
save(d, file="E:/PRN.rData")

Error in gzfile(file, "wb") : cannot open the connection
In addition: Warning message:
In gzfile(file, "wb") :
  cannot open compressed file 'E:/PRN.rData', probable reason 'No such file or directory'

What's going on? Is it just me?

Upvotes: 3

Views: 266

Answers (1)

Nso
Nso

Reputation: 85

It's Windows related. You can't name a file or folder 'PRN'

Upvotes: 2

Related Questions