Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(parsemsf)
  > 
  > test_check("parsemsf")
  1. Error: make_area_table creates a data frame with the correct column names (@test_make_area_table.R#16) 
  Condition message must be a string
  1: expect_equal(colnames(make_area_table(parsemsf_example("test_db.msf"))), pep_col_names) at testthat/test_make_area_table.R:16
  2: compare(object, expected, ...)
  3: colnames(make_area_table(parsemsf_example("test_db.msf")))
  4: is.data.frame(x)
  5: make_area_table(parsemsf_example("test_db.msf"))
  6: src_sqlite(msf_file)
  7: check_dbplyr()
  8: check_pkg("dbplyr", "communicate with database backends", install = FALSE)
  9: glubort(NULL, "The {name} package is required to {reason}.", if (install) "\nPlease install it with `install.packages(\"{name}\")`")
  10: .abort(text)
  11: cnd_error(type, .msg = msg, .call = sys.call(-1))
  12: new_cnd(c(.type, "error"), ..., .msg = .msg)
  13: stop("Condition message must be a string", call. = FALSE)
  
  2. Error: make_pep_table creates a data frame with the correct column names (@test_make_pep_table.R#13) 
  Condition message must be a string
  1: expect_equal(colnames(make_pep_table(parsemsf_example("test_db.msf"))), pep_col_names) at testthat/test_make_pep_table.R:13
  2: compare(object, expected, ...)
  3: colnames(make_pep_table(parsemsf_example("test_db.msf")))
  4: is.data.frame(x)
  5: make_pep_table(parsemsf_example("test_db.msf"))
  6: src_sqlite(msf_file)
  7: check_dbplyr()
  8: check_pkg("dbplyr", "communicate with database backends", install = FALSE)
  9: glubort(NULL, "The {name} package is required to {reason}.", if (install) "\nPlease install it with `install.packages(\"{name}\")`")
  10: .abort(text)
  11: cnd_error(type, .msg = msg, .call = sys.call(-1))
  12: new_cnd(c(.type, "error"), ..., .msg = .msg)
  13: stop("Condition message must be a string", call. = FALSE)
  
  3. Error: map_peptides creates a data frame with the correct column names (@test_map_peptides.R#16) 
  Condition message must be a string
  1: expect_equal(colnames(map_peptides(parsemsf_example("test_db.msf"))), pep_col_names) at testthat/test_map_peptides.R:16
  2: compare(object, expected, ...)
  3: colnames(map_peptides(parsemsf_example("test_db.msf")))
  4: is.data.frame(x)
  5: map_peptides(parsemsf_example("test_db.msf"))
  6: make_pep_table(msf_file, min_conf, collapse = FALSE) %>% rename_(.dots = setNames(list(~sequence), 
         c("peptide_sequence")))
  7: eval(lhs, parent, parent)
  8: eval(lhs, parent, parent)
  9: make_pep_table(msf_file, min_conf, collapse = FALSE)
  10: src_sqlite(msf_file)
  11: check_dbplyr()
  12: check_pkg("dbplyr", "communicate with database backends", install = FALSE)
  13: glubort(NULL, "The {name} package is required to {reason}.", if (install) "\nPlease install it with `install.packages(\"{name}\")`")
  14: .abort(text)
  15: cnd_error(type, .msg = msg, .call = sys.call(-1))
  16: new_cnd(c(.type, "error"), ..., .msg = .msg)
  17: stop("Condition message must be a string", call. = FALSE)
  
  Error: Condition message must be a string
  testthat results ================================================================
  OK: 0 SKIPPED: 0 FAILED: 3
  1. Error: make_area_table creates a data frame with the correct column names (@test_make_area_table.R#16) 
  2. Error: make_pep_table creates a data frame with the correct column names (@test_make_pep_table.R#13) 
  3. Error: map_peptides creates a data frame with the correct column names (@test_map_peptides.R#16) 
  
  Error: testthat unit tests failed
  Execution halted