Open MayaGans opened 4 years ago
See Issue #2
Oh, I thought my take on this was pretty good to be honest :(
If you want to bring some functionalities to R but they already exist in JavaScript why not just wrap that JavaScript library rather than rewrite the entire thing in R which is generally a yuge amount of work.
In the book I give the example of lawn.
I thought this was rather compelling but perhaps I'm wrong.
The "why reinvent the wheel" definitely does come across in the lawn example and the other libraries you present, I guess I'm still fuzzy on the connection between V8 and lawn?
Ah, that's probably because I don't explain properly: lawn is a wrapper for turf.js using V8.
Ahhhh! Okay that totally makes sense, maybe consider adding or tweaking a sentence to make that more explicit? Thanks!
Thanks to you! :)
The example of 2+2 evaluating JS in R definitely gets the point across, but I'm wondering when and why people use V8? Specifically I think I've had issues deploying Shiny apps that use custom JavaScript code without having the V8 library available on the server. Does that make sense? If I'm missing something maybe that's worth including?