Nonetheless, it is doable with htmlwidgets’ serialiser (and only that one). The function htmlwidgets::JS can be used to mark a character vector so that it will be treated as JavaScript code when evaluated in the browser. ....This can be useful where the library requires the use of callback functions for instance.
Would it be possible to give a more specific example than saying "This can be useful where the library requires the use of callback functions for instance."? I think it'd be helpful for me to "see" a use case
Would it be possible to give a more specific example than saying "This can be useful where the library requires the use of callback functions for instance."? I think it'd be helpful for me to "see" a use case