#' Load a package from its dev/ location (from source, not installed)
#'
#' @param pkg Package name (character)
#'
#' @examples
#' \dontrun{
#' devload(ncvreg)
#' }
#' @export
devload <- function(pkg) {
pkgname <- as.character(match.call()$pkg)
devtools::load_all(paste0('~/dev/', pkgname))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.