#' @title
#' Update sawmill
#'
#' @description
#' The \code{update_sawmill()} function fetches and installs the latest
#' release of sawmill from GitHub.
#'
#' @return
#' No value returned.
#'
#' @export
update_sawmill <- function() {
try(detach("package:sawmill"))
usePackage <- function(p) {
if (!is.element(p, installed.packages()[, 1])) install.packages(p, dep = TRUE)
library(p, character.only = TRUE)
}
usePackage("remotes")
remotes::install_github("iAM-AMR/sawmill@*release")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.