p <- jsonlite::read_json("parameters.json")
end <- Sys.time() + p$time
while (Sys.time() < end) {
cat(sprintf("%s waiting...\n", runif(1)))
Sys.sleep(p$poll)
}
png("mygraph.png")
par(mar = c(15, 4, .5, .5)) # nolint
barplot(setNames(dat$number, dat$name), las = 2)
dev.off()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.