tests/testthat.R

library(testthat)
library(VAST)
library(TMB)

# Version
Version_VAST = "VAST_v2_4_0"

# Use "extdata" in "inst" because its loaded with R packages
singlespecies_example_path <- system.file("extdata", package="SpatialDeltaGLMM")
multispecies_example_path <- system.file("extdata", package="VAST")

# Run tests for VAST
#setwd(system.file("tests", package="VAST"))
testthat::test_check("VAST")

################
# Local testing
################

# Use local path
#singlespecies_example_path <- "C:/Users/James.Thorson/Desktop/Project_git/geostatistical_delta-GLMM/inst/extdata/"
#multispecies_example_path <- "C:/Users/James.Thorson/Desktop/Project_git/VAST/inst/extdata/"

# Run from local directory
#testthat::test_dir( "C:/Users/James.Thorson/Desktop/Project_git/VAST/tests/testthat/", reporter="check" )
#testthat::test_dir( "/media/sf_c/Users/jim/Desktop/Project_git/VAST/tests/testthat/", reporter="check" )
James-Thorson/VAST documentation built on April 18, 2018, 9:10 a.m.