Error in gzfile (file, "wb"): cannot open connection or compressed file

I try to do two things: first, I create a PDF with 4x5, ending with dev.off (), and then try to create a new chart. However, after the start of the second chart, I get:

Error in gzfile(file, "wb") : cannot open the connection
In addition: Warning message:
In gzfile(file, "wb") :
  cannot open compressed file '/var/folders/n9/pw_dz8d13j3gb2xgqb6rfnz00000gn/T/RtmpTfm1Ur/rs-graphics-822a1c83-b3fd-46c3-8028-4e0778f91d0c/4db4b438-ac35-403b-b791-e781baba152c.snapshot', probable reason 'No such file or directory'
Graphics error: Error in gzfile(file, "wb") : cannot open the connection

What is this mistake? The working directory is the one to which I have read / write access, and my hard drive is not full.

In addition, I use RStudio.

+14
source share
14 answers

, , - . , , OS X, Linux, , . , abc.RData, modelAbc <- readRDS(file="abc.Rdata"). D .RData vs .RData Linux. , .

+6

, . :

: . save.image ,

Error in gzfile(file, "wb") : unable to open connection
In addition: Warning message:
In gzfile(file, "wb") :
  cannot open compressed file '.RDataTmp',
  probable reason 'Permission denied'

, getwd(), , . , , .

probable reason 'No such file or directory' Graphics error: Error in gzfile(file, "wb") : cannot open the connection , , RStudio .

+3

. RStudio getwd(). Linux ls -l. chown -R username directoryname. root.

+2

, , , , RStudio, . , , , , Windows " ". , .

+2

:

saveRDS(df,'C:\\users\\matt\\desktop\\code\\df.Rdata')
+1

. , . . , , - .

+1

. , ​​R-. .

0

, - . , . , "DavidSmith". ( "AppData", "Local", "Temp" ). C:\Users\DavidSmith\AppData\Local\Temp. , TMP TEMP C:\Users\DavidSmith\AppData\Local\Temp. . RStudio .

: TMP TEMP USER VARIABLE.

0

. Sys.getlocale(). Sys.setLocale("LC_ALL","ENG") ( "ENG" )

, , , , OS OS .

, !

0

Windows, Rstudio . Controlled Folder Access Rstudio . enter image description here

0

RStudio R Markdown. , RStudio. , , , @AHedge , . , . , .

0

- , , "/" ( , ). , .

0

( ) , . .

RDS, , , .

, RDS . . , RDS .

0

" gzfile (," wb "): " R Anaconda ". Windows 10 R-3.5.2. , Program Files, R, "". "", " " "" "". " " " " "" . .

0

All Articles