library("reposr")
Assumes that working directory points to a valid package project
require("microbenchmark") root <- "tests/testthat/data/lcran_3" file.copy(root, tempdir(), recursive = TRUE) repo <- PackageRepository$new(root = root) repo$register() microbenchmark( "1" = repo$dependsOn("invalid"), "2" = try(miniCRAN::pkgDep("invalid")) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.