load_and_test.R

# Used for continous testing platform
# Install analysis packages using pacman
# Pacman will load the packages and install
# the packaes not available

# Install pacman if it isn't already installed
if ("pacman" %in% rownames(installed.packages()) == FALSE) install.packages("pacman")
suppressMessages(install.packages("RMariaDB",  quiet = TRUE))
suppressMessages(
	pacman::p_load(devtools, RCurl, readr, rmarkdown,
	testthat, tidyverse, DBI, RPostgreSQL,
	RSQLite, reticulate, devtools, RMariaDB)
)

install.packages(".", repos = NULL, type="source")
# Test package
test_dir("tests/testthat", reporter = c("check", "progress"))
zhangcandrew/rdataretriever documentation built on May 28, 2019, 5:57 p.m.