Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(DBI)
  > library(RSQLite)
  > library(RSQL)
  > library(lgr)
  > library(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
  
  > 
  > log.levels <- lgr::get_log_levels()
  > 
  > lgr$set_threshold(log.levels["debug"])
  > 
  > 
  > 
  > test_check("RSQL")
  -- Warning (test_sql_lib.R:86:5): sql_lib insert and delete test ---------------
  Closing open result set, pending rows
  
  -- Warning (test_sql_lib.R:89:5): sql_lib insert and delete test ---------------
  Closing open result set, pending rows
  
  -- Warning (test_sql_lib.R:107:5): sql_lib select, insert and delete with datafr
  Closing open result set, pending rows
  
  -- Warning (test_sql_lib.R:113:5): sql_lib select, insert and delete with datafr
  Closing open result set, pending rows
  
  -- ERROR (test_sql_lib.R:138:5): sql_lib select, insert, update and delete with 
  Error: 'nchar()' requires a character vector
  Backtrace:
      x
   1. \-rsql$gen_update("mtcars", values = update_values, where_values = where_values_df) test_sql_lib.R:138:4
   2.   \-RSQL:::sql_gen_update(...)
   3.     \-RSQL::stuff_df_quoted(text.df = values.df)
   4.       \-base::sapply(text.df[i, ], FUN = rm_quotes)
   5.         \-base::lapply(X = X, FUN = FUN, ...)
   6.           \-RSQL:::FUN(X[[i]], ...)
   7.             \-base::substr(text, nchar(text), nchar(text))
  
  -- Warning (test_sql_lib.R:179:5): sql_lib select with where clause ------------
  Closing open result set, pending rows
  
  -- Warning (test_sql_lib.R:199:5): retrieveInsert ------------------------------
  Closing open result set, pending rows
  
  Finalizing object and disconnecting
  -- Warning (test_sql_lib.R:221:5): retrieveInsert ------------------------------
  Closing open result set, pending rows
  
  == testthat results  ===========================================================
  Warning (test_sql_lib.R:86:5): sql_lib insert and delete test
  Warning (test_sql_lib.R:89:5): sql_lib insert and delete test
  Warning (test_sql_lib.R:107:5): sql_lib select, insert and delete with dataframe
  Warning (test_sql_lib.R:113:5): sql_lib select, insert and delete with dataframe
  ERROR (test_sql_lib.R:138:5): sql_lib select, insert, update and delete with dataframe and stuffed apostrophe
  Warning (test_sql_lib.R:179:5): sql_lib select with where clause
  Warning (test_sql_lib.R:199:5): retrieveInsert
  Warning (test_sql_lib.R:221:5): retrieveInsert
  
  [ FAIL 1 | WARN 7 | SKIP 0 | PASS 20 ]
  Error: Test failures
  Execution halted
  Finalizing object and disconnecting