Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > testthat::context("hct")
  > Sys.setenv("R_TESTS" = "")
  > library(HCT)
  Loading required package: rstan
  Loading required package: StanHeaders
  Loading required package: ggplot2
  rstan (Version 2.19.3, GitRev: 2e1f913d3ca3)
  For execution on a local, multicore CPU with excess RAM we recommend calling
  options(mc.cores = parallel::detectCores()).
  To avoid recompilation of unchanged Stan programs, we recommend calling
  rstan_options(auto_write = TRUE)
  For improved execution time, we recommend calling
  Sys.setenv(LOCAL_CPPFLAGS = '-march=corei7 -mtune=corei7')
  although this causes Stan to throw an error on a few processors.
  
  Attaching package: 'HCT'
  
  The following object is masked from 'package:base':
  
      summary
  
  > als=data.frame(
  +   estimate=c(-1.13, -1.01, -0.96, -1, -1.04, -1, -0.83, -1.04, -0.99, -1.05,
  +                           -1.14, -1.08, -0.92, -1.16, -0.93, -0.99),
  +                SE=c(0.05, 0.04, 0.16, 0.12, 0.05, 0.11, 0.02, 0.03, 0.03, 0.06,
  +                     0.06, 0.03, 0.05, 0.04, 0.06, 0.05),
  +                N=c(350, 730, 83, 83, 287, 90, 1193, 859, 583, 227, 279, 510, 185,
  +                    468, 127, 206))
  > ts=hct(als,'estimate','SE','N',rseed=322)
  WARNING: Rtools is required to build R packages, but the version of Rtools previously installed in D:/Compiler/rtools40 has been deleted.
  
  Please download and install Rtools custom from http://cran.r-project.org/bin/windows/Rtools/.
  WARNING: Rtools is required to build R packages, but the version of Rtools previously installed in D:/Compiler/rtools40 has been deleted.
  
  Please download and install Rtools custom from http://cran.r-project.org/bin/windows/Rtools/.
  WARNING: Rtools is required to build R packages, but the version of Rtools previously installed in D:/Compiler/rtools40 has been deleted.
  
  Please download and install Rtools custom from http://cran.r-project.org/bin/windows/Rtools/.
  sh: c:/Rtools/mingw_64/bin/g++: No such file or directory
  make[1]: *** [D:/RCompile/recent/R4/etc/x64/Makeconf:224: file1b0d032ae96c.o] Error 127
  Error in file(con, "r") : cannot open the connection
  Calls: hct ... <Anonymous> -> cxxfunction -> compileCode -> readLines -> file
  In addition: Warning messages:
  1: In system(cmd, intern = !verbose) :
    running command 'D:/RCompile/recent/R4/bin/x64/R CMD SHLIB file1b0d032ae96c.cpp 2> file1b0d032ae96c.cpp.err.txt' had status 1
  2: In file(con, "r") :
    cannot open file 'file1b0d032ae96c.cpp.err.txt': No such file or directory
  Error in sink(type = "output") : invalid connection
  Calls: hct ... <Anonymous> -> stan_model -> cxxfunctionplus -> sink
  Execution halted