Skip to content

quartz.save tilde

1 message · Carl Witthoft

#
Just to help him out,  here's the error message I get, which pretty
clearly indicates that one of the subfunctions does not parse a tilde 
(my working directory is /users/cgw/rgames) .

Rgames> quartz.save('~/downloads/foo.png')
Error in dev.off(eval.parent(oc)) :
   QuartzBitmap_Output - unable to open file '~/downloads/foo.png'
ImageIO: could not open '/Users/cgw/Rgames/~/downloads/.foo.png-zY8H'
          error = 2
Sat Nov 19 09:35:05 TheiMac.local R[2951] <Error>:
CGImageDestinationCreate destination parameter is nil