Running ‘testthat.R’ [13s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(coursekata)
  Loading required package: dslabs
  Loading required package: fivethirtyeight
  Some larger datasets need to be installed separately, like senators and
  house_district_forecast. To install these, we recommend you install the
  fivethirtyeightdata package by running:
  install.packages('fivethirtyeightdata', repos =
  'https://fivethirtyeightdata.github.io/drat/', type = 'source')
  Loading required package: Metrics
  Loading required package: lsr
  Loading required package: mosaic
  
  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.
  
  Attaching package: 'mosaic'
  
  The following objects are masked from 'package:dplyr':
  
      count, do, tally
  
  The following object is masked from 'package:Matrix':
  
      mean
  
  The following object is masked from 'package:ggplot2':
  
      stat
  
  The following object is masked from 'package:testthat':
  
      compare
  
  The following objects are masked from 'package:stats':
  
      IQR, binom.test, cor, cor.test, cov, fivenum, median, prop.test,
      quantile, sd, t.test, var
  
  The following objects are masked from 'package:base':
  
      max, mean, min, prod, range, sample, sum
  
  Loading required package: supernova
  ── CourseKata packages ──────────────────────────────────── coursekata 0.18.1 ──
  ✔ dslabs              0.8.0       ✔ Metrics             0.1.4
  x Lock5withR                      ✔ lsr                 0.5.2
  x fivethirtyeightdata             ✔ mosaic              1.9.1
  ✔ fivethirtyeight     0.6.2       ✔ supernova           3.0.0
  
  Attaching package: 'coursekata'
  
  The following object is masked from 'package:datasets':
  
      penguins
  
  > 
  > test_check("coursekata")
  Starting 2 test processes
  
  
  Error in `private$handle_error()`:
  ! testthat subprocess failed to start, stderr:
  Error: package or namespace load failed for 'coursekata' in ans[ypos] <- rep(yes, length.out = len)[ypos]:
   Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'logical'
  Caused by error:
  ! R session crashed with exit code 1
  Backtrace:
       ▆
    1. └─testthat::test_check("coursekata")
    2.   └─testthat::test_dir(...)
    3.     └─testthat:::test_files(...)
    4.       └─testthat:::test_files_parallel(...)
    5.         ├─withr::with_dir(...)
    6.         │ └─base::force(code)
    7.         ├─testthat::with_reporter(...)
    8.         │ └─base::tryCatch(...)
    9.         │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.         │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.         │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   12.         └─testthat:::parallel_event_loop_chunky(queue, reporters, ".")
   13.           └─queue$poll(Inf)
   14.             └─base::lapply(...)
   15.               └─testthat (local) FUN(X[[i]], ...)
   16.                 └─private$handle_error(msg, i)
   17.                   └─rlang::abort(...)
  Execution halted