cran_install <- function() {
unlink("cran", recursive = TRUE)
dir.create("cran")
pak::pak("igraph", lib = "cran", dependencies = FALSE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.