.onLoad = function(libname, pkgname) {
tryCatch({
.require_packages();
}, error = function(ex) {
warning(ex);
});
}
#' load packages that required
#'
.require_packages = function() {
############## packages required ##############
library(MCMCpack)
library(mvtnorm)
library(ellipse)
library(coda)
library(Matrix)
library(Rtsne)
library(gtools)
library(foreach)
library(doParallel)
library(doSNOW)
library(snow)
library(lattice)
library(MASS)
library(bayesm)
library(robustbase)
library(chron)
library(mnormt)
library(schoolmath)
library(RColorBrewer)
#############################################
}
.flashLoad = function() {
.onLoad(NULL, NULL);
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.