#! /usr/bin/env Rscript
library(tools)
rdfiles <- list.files("igraph/man", pattern=".*\\.Rd$", full.names=TRUE)
out <- file("igraph-Ex.R", open="w")
cat("### Load the package\nlibrary(igraph)\n\n", file=out)
sapply(rdfiles, Rd2ex, out=out)
close(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.