ateucher / rmapshaper

An R wrapper for the mapshaper javascript library
http://andyteucher.ca/rmapshaper/
Other
200 stars 13 forks source link

Update mapshaper #130

Closed ateucher closed 1 year ago

ateucher commented 1 year ago

I had to do some gymnastics with quoting some of the mapshaper call - specifically adding -each 'rmapshaperid=this.id' via force_FC. Just using single quotes works everywhere with the bundled mapshaper, but fails on Windows when using sys_mapshaper(), which uses system2(). But using shQuote() on Windows quotes the string in a way that is incompatible with V8. So now it uses '' when sys=FALSE and shQuote() when `sys=TRUE.