zachmayer / caretEnsemble

caret models all the way down :turtle:
http://zachmayer.github.io/caretEnsemble/
Other
226 stars 75 forks source link

Tests fail when gbm is not installed #137

Closed hadley closed 8 years ago

hadley commented 9 years ago
checking tests ... ERROR
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:

  > library(testthat)
  > library(caretEnsemble)
  Loading required package: caret
  Loading required package: lattice
  Loading required package: ggplot2
  > 
  > test_check("caretEnsemble")
  randomForest 4.6-10
  Type rfNews() to see new features/changes/bug fixes.
  Error in library("gbm") : there is no package called 'gbm'
  Calls: test_check ... lapply -> FUN -> sys.source2 -> eval -> eval -> library
  Execution halted

You can avoid this problem with skip_if_not_installed()

zachmayer commented 9 years ago

Thanks for the tip! I'll fix that asap

zachmayer commented 8 years ago

@hadley I think this is fixed. Could you check again with the master branch?