Running ‘testthat.R’ [30s/53s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(msde)
  > 
  > Sys.unsetenv("R_TESTS")
  > test_check("msde")
  In file included from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdePost.h:13:0,
                   from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdeInterface.h:166,
                   from msde-41a0593b7a78_Exports.cpp:9:
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdeMCMC.h: In instantiation of ‘sdeMCMC<sMod, sPi>::sdeMCMC(int, double*, double*, double*, int*, bool*, double**, int, int*, int) [with sMod = sdeModel; sPi = sdePrior]’:
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdePost.h:91:21:   required from ‘List sdeRobj<sMod, sPi>::Post(Numeric, Numeric, Numeric, Integer, Logical, int, int, int, int, Integer, Integer, Integer, double, double, List, List, int, int, int, int, int, bool) [with sMod = sdeModel; sPi = sdePrior; List = Rcpp::Vector<19>; Numeric = Rcpp::Vector<14, Rcpp::PreserveStorage>; Integer = Rcpp::Vector<13>; Logical = Rcpp::Vector<10, Rcpp::PreserveStorage>]’
  msde-41a0593b7a78_Exports.cpp:31:1:   required from here
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdeMCMC.h:68:7: warning: variable ‘nDims2’ set but not used [-Wunused-but-set-variable]
     int nDims2, nCores; // inherited from sdeLogLik
         ^~~~~~
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdeMCMC.h:70:16: warning: variable ‘sqrtDT’ set but not used [-Wunused-but-set-variable]
     double *dT, *sqrtDT; // inherited from sdeLogLik
                  ^~~~~~
  ── 1. Failure: lpi.R == lpi.cpp  ───────────────────────────────────────────────
  mxd[ii, 2] not equal to 0.
  1/1 mismatches
  [1] 5.83e-08 - 0 == 5.83e-08
  
  In file included from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdePost.h:13:0,
                   from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdeInterface.h:166,
                   from msde-41a0199a5b2f_Exports.cpp:9:
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdeMCMC.h: In instantiation of ‘sdeMCMC<sMod, sPi>::sdeMCMC(int, double*, double*, double*, int*, bool*, double**, int, int*, int) [with sMod = sdeModel; sPi = sdePrior]’:
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdePost.h:91:21:   required from ‘List sdeRobj<sMod, sPi>::Post(Numeric, Numeric, Numeric, Integer, Logical, int, int, int, int, Integer, Integer, Integer, double, double, List, List, int, int, int, int, int, bool) [with sMod = sdeModel; sPi = sdePrior; List = Rcpp::Vector<19>; Numeric = Rcpp::Vector<14, Rcpp::PreserveStorage>; Integer = Rcpp::Vector<13>; Logical = Rcpp::Vector<10, Rcpp::PreserveStorage>]’
  msde-41a0199a5b2f_Exports.cpp:31:1:   required from here
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdeMCMC.h:68:7: warning: variable ‘nDims2’ set but not used [-Wunused-but-set-variable]
     int nDims2, nCores; // inherited from sdeLogLik
         ^~~~~~
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdeMCMC.h:70:16: warning: variable ‘sqrtDT’ set but not used [-Wunused-but-set-variable]
     double *dT, *sqrtDT; // inherited from sdeLogLik
                  ^~~~~~
  In file included from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdePost.h:13:0,
                   from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdeInterface.h:166,
                   from msde-41a02e79716e_Exports.cpp:9:
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdeMCMC.h: In instantiation of ‘sdeMCMC<sMod, sPi>::sdeMCMC(int, double*, double*, double*, int*, bool*, double**, int, int*, int) [with sMod = sdeModel; sPi = sdePrior]’:
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdePost.h:91:21:   required from ‘List sdeRobj<sMod, sPi>::Post(Numeric, Numeric, Numeric, Integer, Logical, int, int, int, int, Integer, Integer, Integer, double, double, List, List, int, int, int, int, int, bool) [with sMod = sdeModel; sPi = sdePrior; List = Rcpp::Vector<19>; Numeric = Rcpp::Vector<14, Rcpp::PreserveStorage>; Integer = Rcpp::Vector<13>; Logical = Rcpp::Vector<10, Rcpp::PreserveStorage>]’
  msde-41a02e79716e_Exports.cpp:31:1:   required from here
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdeMCMC.h:68:7: warning: variable ‘nDims2’ set but not used [-Wunused-but-set-variable]
     int nDims2, nCores; // inherited from sdeLogLik
         ^~~~~~
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/msde/include/sdeMCMC.h:70:16: warning: variable ‘sqrtDT’ set but not used [-Wunused-but-set-variable]
     double *dT, *sqrtDT; // inherited from sdeLogLik
                  ^~~~~~
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 457 SKIPPED: 0 FAILED: 1
  1. Failure: lpi.R == lpi.cpp 
  
  Error: testthat unit tests failed
  Execution halted