Estimados usuarios de R:


 al correr  la función

ggsave(paste('img/',plotName,'.png', sep='')


resulta el error:

Saving 7.32 x 4.87 in image

Error in grDevices::png(..., width = width, height = height, res = dpi,  :
  unable to start png() deviceIn addition: Warning messages:1: In
grDevices::png(..., width = width, height = height, res = dpi,  :
  unable to open file 'img/StreetRobberyKde2d.png' for writing2: In
grDevices::png(..., width = width, height = height, res = dpi,  :
  opening device failed




Cómo soluciono esto, ayuda por favor

	[[alternative HTML version deleted]]

