Spelunking XHRs (XMLHttpRequests) with splashr

[This article was first published on R – rud.is, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

splashr has gained some new functionality since the introductory post. First, there’s a whole new Docker image for it that embeds a local web server. Why? The main request for it was to enable rendering of htmlwidgets:

splash_vm <- start_splash(add_tempdir=TRUE)  DiagrammeR("
 graph LR
 A-->B
 A-->C
 C-->E
 B-->D
 C-->D
 D-->F
 E-->F
") %>% 
 saveWidget("/tmp/diag.html")  splash("localhost") %>% 
 render_file("/tmp/diag.html", output="html")
## {xml_document}
## ## [1]\n\n\n 

To leave a comment for the author, please follow the link and comment on their blog: R – rud.is.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)