Skip to content

Commit

Permalink
Only use postgresql if available
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Oct 3, 2014
1 parent 854d32a commit 465c1ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ library("dplyr")

# Ensure database creation done before tests
library("Lahman")
lahman_sqlite()
has_lahman("sqlite")
if (identical(Sys.getenv("NOT_CRAN"), "true")) {
lahman_postgres()
has_lahman("postgresql")
}

test_check("dplyr")

0 comments on commit 465c1ef

Please sign in to comment.