f = system.file("samples", "sitepairs.R", package = "CodeDepends")
## url checking takes a while, too long for CRAN example
fout <- file.path(tempdir(), "foo.html")
if(requireNamespace("highlight") && requireNamespace("RJSONIO"))
highlightCode(f, fout, checkURLs=FALSE)
Run the code above in your browser using DataLab