I’m trying to run my R code to generate maps using the tmap package on a new laptop computer (the code worked on my other desktop computer) and I’m getting a strange new error when I try to output the map using the tmap_save function:
`tmap_save(mainmap,filename="Fig_overview_test.png",
dpi=300, insets_tm=insetmap, insets_vp=vp,
height=asp*11, width=11, units="in")`
Error in h(simpleError(msg, call)) :
error in evaluating the argument ‘x’ in selecting a method for function ‘rast’: cannot open the connection
what could be causing this new error in the tmap_save function? If it matters, I upgraded to tmap v.4 on the new computer.
thanks for the help!
tried running code to produce maps using R tmap package on a new computer and with new tmap version 4. I am now getting a new error:
Error in h(simpleError(msg, call)) :
error in evaluating the argument ‘x’ in selecting a method for function ‘rast’: cannot open the connection
I wasn’t getting this error before and it the code does not output the map.
AKeph is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.