all.pkgs <- c("testthat", "dplyr", "dtplyr", "data.table", "magrittr", "survey", "zoo")
if (all(vapply(all.pkgs, requireNamespace, logical(1), quietly = TRUE))){
library(testthat)
library(grattan)
library(dplyr)
library(dtplyr)
library(data.table)
if (requireNamespace("taxstats", quietly = TRUE)){
library(taxstats)
}
library(magrittr)
library(survey)
library(zoo)
test_check("grattan")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.