From: Michael R. Crusoe <crusoe@debian.org>
Subject: skip phylolm related tests if that package is not installed

--- r-cran-dharma.orig/tests/testthat/testModelTypes.R
+++ r-cran-dharma/tests/testthat/testModelTypes.R
@@ -522,6 +522,7 @@
 
 test_that("phylolm works",
           {
+            skip_if_not_installed("phylolm")
             # LM
             set.seed(123456)
             tre1 <<- ape::rcoal(60) # global env
@@ -544,6 +545,7 @@
 
 test_that("phyloglm works",
           {
+            skip_if_not_installed("phylolm")
             #GLM
             set.seed(123456)
             tre <<- ape::rtree(50) # global env
--- r-cran-dharma.orig/tests/testthat/testTests.R
+++ r-cran-dharma/tests/testthat/testTests.R
@@ -221,6 +221,7 @@
 ### Test phylogenetic autocorrelation
 test_that("test phylogenetic autocorrelation", {
 
+  skip_if_not_installed("phylolm")
   set.seed(123)
   tre <<- ape::rcoal(60)
   b0 = 0; b1 = 1;
