daattali/shinyjs

runjs output to R?

samssann opened this issue · 1 comments

Could it be possible to run queries with runjs() and return output to R?

Runjs is a one way street, it just sends a command to javascript. You can't directly di what you want.

There is no way to "capture" the output of a specific block of code that is run using runjs, but you can use the showLog function to print the jacacript log messages in the R console. You may be able to use that for your purposes. But in general, no what you want is not supported