mjskay / ARTool

R Package for Aligned Rank Transform for Nonparametric Factorial ANOVAs
56 stars 9 forks source link

R CMD check fails when lsmeans is not available #1

Closed hadley closed 9 years ago

hadley commented 9 years ago
checking tests ... ERROR
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
  Type 'q()' to quit R.

  > library(testthat)
  > library(ARTool)
  Loading required package: lme4
  Loading required package: Matrix
  Loading required package: Rcpp
  Loading required package: car
  > 
  > test_check("ARTool")
  Error in library(lsmeans) : there is no package called 'lsmeans'
  Calls: test_check ... lapply -> FUN -> sys.source2 -> eval -> eval -> library
  Execution halted

You can use skip_if_not_installed() to avoid this problem