inst/examples/Discrim_Install.r

# File Name: Discrim_Install.r
# Description:
#   To use the **DiscrimOD** package, one need to have R packages 'devtools', 
#   'Rcpp' and 'RcppArmadillo' installed in advance.  This file is written for 
#   users to install all the required R packages and our **DiscrimOD** package.
#		Please copy the codes below and run them in R.
# ----------------------------------------------------------------------------

# Install required R packages
pkgRequired <- c("devtools", "Rcpp", "RcppArmadillo")
install.packages(pkgRequired)
# Install the **DiscrimOD** package from GitHub
devtools::install_github("PingYangChen/DiscrimOD")
# Try if it is installed successfully
library(DiscrimOD)
?DiscrimOD
PingYangChen/DiscrimOD documentation built on Jan. 30, 2022, 5:25 p.m.