'LazyData' is specified without a 'data' directory
Running examples in 'phillydaodata-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_summary_case_length
> ### Title: Get Philadelphia District Attorney's Office Case Case Summary
> ###   Case Length Data
> ### Aliases: get_summary_case_length
> 
> ### ** Examples
> 
> data <- get_summary_case_length("citywide")
Error in `$<-.data.frame`(`*tmp*`, "date", value = numeric(0)) : 
  replacement has 0 rows, data has 2
Calls: get_summary_case_length -> get_data -> clean_data -> $<- -> $<-.data.frame
Execution halted
Running 'spelling.R' [0s/1s]
  Running 'testthat.R' [4s/5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(phillydaodata)
  > 
  > test_check("phillydaodata")
  == Skipped tests ===============================================================
  * On CRAN (3)
  
  == Failed tests ================================================================
  -- Error (test-data_contents.R:148:3): Starting values are right for case outcome and bail --
  Error: replacement has 0 rows, data has 2
  Backtrace:
      x
   1. +-testthat::expect_equal(get_bail()$bail_category[1:10], bail_types) test-data_contents.R:148:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-phillydaodata::get_bail()
   5.   \-phillydaodata:::get_data(data_type = "bail", geography = geography)
   6.     \-phillydaodata:::clean_data(data)
   7.       +-base::`$<-`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
   8.       \-base::`$<-.data.frame`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 121 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘phillydaodata-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_summary_case_length
> ### Title: Get Philadelphia District Attorney's Office Case Case Summary
> ###   Case Length Data
> ### Aliases: get_summary_case_length
> 
> ### ** Examples
> 
> data <- get_summary_case_length("citywide")
Error in `$<-.data.frame`(`*tmp*`, "date", value = numeric(0)) : 
  replacement has 0 rows, data has 2
Calls: get_summary_case_length -> get_data -> clean_data -> $<- -> $<-.data.frame
Execution halted
Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [3s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(phillydaodata)
  > 
  > test_check("phillydaodata")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-data_contents.R:148:3): Starting values are right for case outcome and bail ──
  Error: replacement has 0 rows, data has 2
  Backtrace:
      █
   1. ├─testthat::expect_equal(get_bail()$bail_category[1:10], bail_types) test-data_contents.R:148:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─phillydaodata::get_bail()
   5.   └─phillydaodata:::get_data(data_type = "bail", geography = geography)
   6.     └─phillydaodata:::clean_data(data)
   7.       ├─base::`$<-`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
   8.       └─base::`$<-.data.frame`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 121 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘phillydaodata-Ex.R’ failed
The error most likely occurred in:

> ### Name: get_summary_case_length
> ### Title: Get Philadelphia District Attorney's Office Case Case Summary
> ###   Case Length Data
> ### Aliases: get_summary_case_length
> 
> ### ** Examples
> 
> data <- get_summary_case_length("citywide")
Error in `$<-.data.frame`(`*tmp*`, "date", value = numeric(0)) : 
  replacement has 0 rows, data has 2
Calls: get_summary_case_length -> get_data -> clean_data -> $<- -> $<-.data.frame
Execution halted
Running ‘spelling.R’
  Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(phillydaodata)
  > 
  > test_check("phillydaodata")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-data_contents.R:148:3): Starting values are right for case outcome and bail ──
  Error: replacement has 0 rows, data has 2
  Backtrace:
      █
   1. ├─testthat::expect_equal(get_bail()$bail_category[1:10], bail_types) test-data_contents.R:148:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─phillydaodata::get_bail()
   5.   └─phillydaodata:::get_data(data_type = "bail", geography = geography)
   6.     └─phillydaodata:::clean_data(data)
   7.       ├─base::`$<-`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
   8.       └─base::`$<-.data.frame`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 121 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘phillydaodata-Ex.R’ failed
The error most likely occurred in:

> ### Name: get_summary_case_length
> ### Title: Get Philadelphia District Attorney's Office Case Case Summary
> ###   Case Length Data
> ### Aliases: get_summary_case_length
> 
> ### ** Examples
> 
> data <- get_summary_case_length("citywide")
Error in `$<-.data.frame`(`*tmp*`, "date", value = numeric(0)) : 
  replacement has 0 rows, data has 2
Calls: get_summary_case_length -> get_data -> clean_data -> $<- -> $<-.data.frame
Execution halted
Running ‘spelling.R’
  Running ‘testthat.R’ [4s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(phillydaodata)
  > 
  > test_check("phillydaodata")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-data_contents.R:148:3): Starting values are right for case outcome and bail ──
  Error: replacement has 0 rows, data has 2
  Backtrace:
      █
   1. ├─testthat::expect_equal(get_bail()$bail_category[1:10], bail_types) test-data_contents.R:148:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─phillydaodata::get_bail()
   5.   └─phillydaodata:::get_data(data_type = "bail", geography = geography)
   6.     └─phillydaodata:::clean_data(data)
   7.       ├─base::`$<-`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
   8.       └─base::`$<-.data.frame`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 121 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Running examples in 'phillydaodata-Ex.R' failed
The error most likely occurred in:

> ### Name: get_summary_case_length
> ### Title: Get Philadelphia District Attorney's Office Case Case Summary
> ###   Case Length Data
> ### Aliases: get_summary_case_length
> 
> ### ** Examples
> 
> data <- get_summary_case_length("citywide")
Error in `$<-.data.frame`(`*tmp*`, "date", value = numeric(0)) : 
  replacement has 0 rows, data has 2
Calls: get_summary_case_length -> get_data -> clean_data -> $<- -> $<-.data.frame
Execution halted
Running 'spelling.R'
  Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Last 13 lines of output:
  Error: replacement has 0 rows, data has 2
  Backtrace:
      x
   1. +-testthat::expect_equal(get_bail()$bail_category[1:10], bail_types) test-data_contents.R:148:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-phillydaodata::get_bail()
   5.   \-phillydaodata:::get_data(data_type = "bail", geography = geography)
   6.     \-phillydaodata:::clean_data(data)
   7.       +-base::`$<-`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
   8.       \-base::`$<-.data.frame`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 121 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘phillydaodata-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get_summary_case_length
> ### Title: Get Philadelphia District Attorney's Office Case Case Summary
> ###   Case Length Data
> ### Aliases: get_summary_case_length
> 
> ### ** Examples
> 
> data <- get_summary_case_length("citywide")
Error in `$<-.data.frame`(`*tmp*`, "date", value = numeric(0)) : 
  replacement has 0 rows, data has 2
Calls: get_summary_case_length -> get_data -> clean_data -> $<- -> $<-.data.frame
Execution halted
Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(phillydaodata)
  > 
  > test_check("phillydaodata")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-data_contents.R:148:3): Starting values are right for case outcome and bail ──
  Error: replacement has 0 rows, data has 2
  Backtrace:
      █
   1. ├─testthat::expect_equal(get_bail()$bail_category[1:10], bail_types) test-data_contents.R:148:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─phillydaodata::get_bail()
   5.   └─phillydaodata:::get_data(data_type = "bail", geography = geography)
   6.     └─phillydaodata:::clean_data(data)
   7.       ├─base::`$<-`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
   8.       └─base::`$<-.data.frame`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 121 ]
  Error: Test failures
  Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘phillydaodata-Ex.R’ failed
The error most likely occurred in:

> ### Name: get_summary_case_length
> ### Title: Get Philadelphia District Attorney's Office Case Case Summary
> ###   Case Length Data
> ### Aliases: get_summary_case_length
> 
> ### ** Examples
> 
> data <- get_summary_case_length("citywide")
Error in `$<-.data.frame`(`*tmp*`, "date", value = numeric(0)) : 
  replacement has 0 rows, data has 2
Calls: get_summary_case_length -> get_data -> clean_data -> $<- -> $<-.data.frame
Execution halted
Running ‘spelling.R’
  Running ‘testthat.R’ [5s/21s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(phillydaodata)
  > 
  > test_check("phillydaodata")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-data_contents.R:148:3): Starting values are right for case outcome and bail ──
  Error: replacement has 0 rows, data has 2
  Backtrace:
      █
   1. ├─testthat::expect_equal(get_bail()$bail_category[1:10], bail_types) test-data_contents.R:148:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─phillydaodata::get_bail()
   5.   └─phillydaodata:::get_data(data_type = "bail", geography = geography)
   6.     └─phillydaodata:::clean_data(data)
   7.       ├─base::`$<-`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
   8.       └─base::`$<-.data.frame`(`*tmp*`, "date", value = structure(numeric(0), class = "Date"))
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 121 ]
  Error: Test failures
  Execution halted