## code to prepare `devicon` dataset goes here
library(crrri)
library(rvest)
library(promises)
chrome <- Chrome$new()
client <- chrome$connect(callback = function(client) {
client$inspect()
})
Page <- client$Page
Runtime <- client$Runtime
Page$navigate(url = "https://icongr.am/devicon")
Runtime$evaluate(expression = 'window.scroll(0,99999);')
Runtime$evaluate(expression = 'window.scroll(0,99999);')
Runtime$evaluate(expression = 'window.scroll(0,99999);')
Runtime$evaluate(expression = 'document.documentElement.outerHTML') %...>%
{
out <- .$result$value %>%
xml2::read_html() %>%
rvest::html_nodes("code") %>%
rvest::html_text()
saveRDS(out, "inst/extdata/devicon.rds", version = 2)
} %>%
finally(~ client$disconnect())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.