Closed lewkrr closed 1 year ago
Here is the traceback given by the documentation's example, in case it's helpful.
10. stop(structure(list(message = "SyntaxError: Unexpected token .",
call = NULL, cppstack = NULL), class = c("std::invalid_argument",
"C++Error", "error", "condition")))
9. context_eval(join(src), private$context, serialize, await)
8. get_str_output(context_eval(join(src), private$context, serialize,
await))
7. evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
6. ctx$source(system.file("mapshaper/mapshaper-browserify.min.js", package = "rmapshaper"))
5. ms_make_ctx()
4. mapshaper_clip_erase(target_layer = target_geojson, overlay_layer = overlay_geojson,
type = type, remove_slivers = remove_slivers, bbox = bbox,
force_FC = TRUE, sys = sys, sys_mem = sys_mem)
3. clip_erase_sf(target = target, overlay_layer = clip, type = "clip",
remove_slivers = remove_slivers, bbox = bbox, ...)
2. ms_clip.sf(poly, clip_poly)
1. ms_clip(poly, clip_poly)
Thanks. Closing to consolidate in #157
Can you please report the output of: V8::engine_info()
Whenever I attempt to use the
ms_clip()
, I get the message "Error: SyntaxError: Unexpected token ." I even ran the Examples code directly from the documentation, and I still get the same error message.Below is my session info. Please advise if there is an fix. Cheers!