Rstudio won't produce plots: Shadow graphics device error: r error 4 (R code execution error) -


i've seen error reported several times there's never been solution. i'm using rstudio desktop in windows 10. i'm not able produce plots in rstudio. plots in r command line work perfectly; in rstudio if open device in png("myplot.png"); plot(1); dev.off(), works perfectly.

but if want produce plot in rstudio (like plot(1) example), following error:

error in plot.new() :   shadow graphics device error: r error 4 (r code execution error) in addition: warning messages: 1: in grdevices:::png("c:/users/marco/appdata/local/temp/rtmpgfcske/c79b28dca0464804b619980ea7a4d95e.png", :  unable open file 'c:/users/marco/appdata/local/temp/rtmpgfcske/c79b28dca0464804b619980ea7a4d95e.png' writing 2: in grdevices:::png("c:/users/marco/appdata/local/temp/rtmpgfcske/c79b28dca0464804b619980ea7a4d95e.png", :  opening device failed 3: in grdevices:::png("c:/users/marco/appdata/local/temp/rtmpgfcske/c79b28dca0464804b619980ea7a4d95e.png", :  unable open file 'c:/users/marco/appdata/local/temp/rtmpgfcske/c79b28dca0464804b619980ea7a4d95e.png' writing 4: in grdevices:::png("c:/users/marco/appdata/local/temp/rtmpgfcske/c79b28dca0464804b619980ea7a4d95e.png", :  opening device failed 

i tried unistalling rstudio , r, cleaning registry, , installing again still same. happened after installing r , rstudio in new machine. never had problem rstudio @ windows 10 before.

any highly appreciated, can't find useful hints anywhere.

> sessioninfo() r version 3.3.1 (2016-06-21) platform: x86_64-w64-mingw32/x64 (64-bit) running under: windows >= 8 x64 (build 9200)  locale: [1] lc_collate=english_united states.1252 lc_ctype=english_united states.1252 lc_monetary=english_united states.1252 lc_numeric=c lc_time=english_united states.1252  attached base packages: [1] stats graphics grdevices utils datasets methods base  loaded via namespace (and not attached): [1] tools_3.3.1 > capabilities()  jpeg png tiff tcltk x11 aqua http/ftp sockets libxml fifo cledit iconv nls profmem cairo icu   true true true true false false true true true true true true true true true true  long.double libcurl   true true  

you can use ggplot2 package plot issues.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -