Running ‘testthat.R’ [5s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mdsr)
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  Loading required package: lattice
  Loading required package: ggformula
  Loading required package: ggplot2
  Loading required package: ggstance
  
  Attaching package: 'ggstance'
  
  The following objects are masked from 'package:ggplot2':
  
      GeomErrorbarh, geom_errorbarh
  
  
  New to ggformula?  Try the tutorials: 
  	learnr::run_tutorial("introduction", package = "ggformula")
  	learnr::run_tutorial("refining", package = "ggformula")
  Loading required package: mosaicData
  Loading required package: Matrix
  
  The 'mosaic' package masks several functions from core packages in order to add 
  additional features.  The original behavior of these functions should not be affected by this.
  
  Note: If you use the Matrix package, be sure to load it BEFORE loading mosaic.
  
  In accordance with CRAN policy, the 'mdsr' package 
             no longer attaches
  the 'tidyverse' package automatically.
  You may need to 'library(tidyverse)' in order to 
             use certain functions.
  > 
  > test_check("mdsr")
  ── 1. Error: scidb works (@tests.R#4)  ─────────────────────────────────────────
  Failed to connect to database: Too many connections
  1: src_scidb("airlines") at testthat/tests.R:4
  2: dbplyr::src_dbi(dbConnect_scidb(dbname, ...))
  3: paste0("src_", class(con)[[1]])
  4: dbConnect_scidb(dbname, ...)
  5: DBI::dbConnect(RMySQL::MySQL(), dbname = dbname, host = "mdsr.cdc7tgkkqd0n.us-east-1.rds.amazonaws.com", 
         user = "mdsr_public", password = "ImhsmflMDSwR")
  6: DBI::dbConnect(RMySQL::MySQL(), dbname = dbname, host = "mdsr.cdc7tgkkqd0n.us-east-1.rds.amazonaws.com", 
         user = "mdsr_public", password = "ImhsmflMDSwR")
  7: .local(drv, ...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 0 SKIPPED: 0 WARNINGS: 0 FAILED: 1
  1. Error: scidb works (@tests.R#4) 
  
  Error: testthat unit tests failed
  Execution halted