Open yixuan opened 9 years ago
Pull requests welcome :)
Here is what I'd do if I were to add this feature:
ct$validate()
to group lines of JS code into minimal complete blocks (similar idea to https://github.com/yihui/highr/blob/master/R/utils.R#L8-L23);ct$eval()
code blocks one by one, and collect output;knitr:::wrap()
the list of source code and output created from the previous step.
Just found the V8 package that could run javascript code inside R.