Running ‘doRUnit.R’ [119s/169s]
Running the tests in ‘tests/doRUnit.R’ failed.
Complete output:
  > # Copyright (C) 2010 - 2013  Dirk Eddelbuettel, Romain Francois and Douglas Bates
  > # Copyright (C) 2014 - 2017  Dirk Eddelbuettel
  > # Earlier copyrights Gregor Gorjanc, Martin Maechler and Murray Stokely as detailed below
  > #
  > # This file is part of RcppArmadillo.
  > #
  > # RcppArmadillo is free software: you can redistribute it and/or
  > # modify it under the terms of the GNU General Public License as
  > # published by the Free Software Foundation, either version 2 of the
  > # License, or (at your option) any later version.
  > #
  > # RcppArmadillo is distributed in the hope that it will be useful, but
  > # WITHOUT ANY WARRANTY; without even the implied warranty of
  > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  > # General Public License for more details.
  > #
  > # You should have received a copy of the GNU General Public License
  > # along with RcppArmadillo.  If not, see <http://www.gnu.org/licenses/>.
  > 
  > ## doRUnit.R --- Run RUnit tests
  > ##
  > ## with credits to package fUtilities in RMetrics
  > ## which credits Gregor Gojanc's example in CRAN package  'gdata'
  > ## as per the R Wiki http://wiki.r-project.org/rwiki/doku.php?id=developers:runit
  > ## and changed further by Martin Maechler
  > ## and more changes by Murray Stokely in HistogramTools
  > ## and then used adapted in RProtoBuf
  > ## and now used in Rcpp and here
  > ##
  > ## Dirk Eddelbuettel, Feb - June 2014
  > 
  > if (requireNamespace("RUnit", quietly=TRUE) &&
  +     requireNamespace("RcppArmadillo", quietly=TRUE)) {
  + 
  +     library(RUnit)
  +     library(RcppArmadillo)
  + 
  +     ## Define tests
  +     testSuite <- defineTestSuite(name="RcppArmadillo Unit Tests",
  +                                  dirs=system.file("unitTests", package = "RcppArmadillo"),
  +                                  testFuncRegexp = "^[Tt]est.+")
  + 
  +     Sys.setenv("R_TESTS"="")	    	# without this, we get (or used to get) unit test failures
  + 
  +     tests <- runTestSuite(testSuite)    # run tests
  +     printTextProtocol(tests)		# print results
  + 
  +     ## Return success or failure to R CMD CHECK
  +     if (getErrors(tests)$nFail > 0) stop("TEST FAILED!")
  +     if (getErrors(tests)$nErr > 0) stop("TEST HAD ERRORS!")
  +     if (getErrors(tests)$nTestFunc < 1) stop("NO TEST FUNCTIONS RUN!")
  + }
  
  
  Executing test function test.armadillo.as_vector  ...  done successfully.
  
  
  
  Executing test function test.armadillo.mat.const  ...  done successfully.
  
  
  
  Executing test function test.armadillo.mat.const.ref  ...  done successfully.
  
  
  
  Executing test function test.armadillo.mat.plain  ...  done successfully.
  
  
  
  Executing test function test.armadillo.mat.ref  ...  done successfully.
  
  
  
  Executing test function test.armadillo.sugar.ctor  ...  done successfully.
  
  
  
  Executing test function test.armadillo.sugar.matrix.ctor  ...  done successfully.
  
  
  
  Executing test function test.armadillo.unsigned.as  ...  done successfully.
  
  
  
  Executing test function test.armadillo.vec.const  ...  done successfully.
  
  
  
  Executing test function test.armadillo.vec.const.ref  ...  done successfully.
  
  
  
  Executing test function test.armadillo.vec.plain  ...  done successfully.
  
  
  
  Executing test function test.armadillo.vec.ref  ...  done successfully.
  
  
  
  Executing test function test.as.Col  ...  done successfully.
  
  
  
  Executing test function test.as.Mat  ...  done successfully.
  
  
  
  Executing test function test.as.Row  ...  done successfully.
  
  
  
  Executing test function test.cxmat  ...  done successfully.
  
  
  
  Executing test function test.mtGlue  ...  done successfully.
  
  
  
  Executing test function test.mtOp  ...  done successfully.
  
  
  
  Executing test function test.sugar  ...  done successfully.
  
  
  
  Executing test function test.sugar.cplx  ...  done successfully.
  
  
  
  Executing test function test.wrap.Glue  ...  done successfully.
  
  
  
  Executing test function test.wrap.Op  ...  done successfully.
  
  
  
  Executing test function test.wrap.R  ...  done successfully.
  
  
  
  Executing test function test.Rlapack  ...  done successfully.
  
  
  
  Executing test function test.complex  ...  done successfully.
  
  
  
  Executing test function test.cube  ...  done successfully.
  
  
  
  Executing test function test.fastLm  ...  done successfully.
  
  
  
  Executing test function test.fastLm.default  ...  done successfully.
  
  
  
  Executing test function test.fastLm.formula  ...  done successfully.
  
  
  
  Executing test function test.summary.fastLm  ...  done successfully.
  
  
  
  Executing test function test.rmultinom  ... Error in rmultinom(n, size, prob) : NA in probability vector
  Error in rmultinomC(n, size, prob) : NAs not allowed in probability
  Error in rmultinom(n, size, prob) : no positive probabilities
  Error in rmultinomC(n, size, prob) : Not enough positive probabilities
   done successfully.
  
  
  
  Executing test function test.randi  ...  done successfully.
  
  
  
  Executing test function test.randi.seed  ...  done successfully.
  
  
  
  Executing test function test.randn  ...  done successfully.
  
  
  
  Executing test function test.randn.seed  ...  done successfully.
  
  
  
  Executing test function test.randu  ...  done successfully.
  
  
  
  Executing test function test.randu.seed  ...  done successfully.
  
  
  
  Executing test function test.sample  ... Timing stopped at: 0.004 0 0.004
  Error in checkEquals(r.no.no, c.no.no, msg = sprintf("sample.%s.no_replace.no_prob",  : 
    28 element mismatches
  sample.logical.no_replace.no_prob
   done successfully.
  
  
  
  Executing test function test.as.sparse  ... In file included from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo.h:39,
                   from sparse.cpp:23:
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadilloSugar.h: In instantiation of ‘Rcpp::List Rcpp::simple_triplet_matrix(const arma::SpMat<eT>&) [with T = double; Rcpp::List = Rcpp::Vector<19>]’:
  sparse.cpp:31:65:   required from here
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadilloSugar.h:43:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const uword’ {aka ‘const unsigned int’} [-Wsign-compare]
       for (int cp=1, ie=0; ie < sm.n_nonzero; ie++) {
                            ~~~^~~~~~~~~~~~~~
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadilloSugar.h:44:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const uword’ {aka ‘const unsigned int’} [-Wsign-compare]
           for (; p[cp] <= ie && cp < sm.n_cols; cp++)
                                 ~~~^~~~~~~~~~~
   done successfully.
  
  
  
  Executing test function test.sparse.addition  ...  done successfully.
  
  
  
  Executing test function test.sparse.fromTriplet  ...  done successfully.
  
  
  
  Executing test function test.sparse.iterators  ...  done successfully.
  
  
  
  Executing test function test.sparse.list  ...  done successfully.
  
  
  
  Executing test function test.sparse.multiplication  ...  done successfully.
  
  
  
  Executing test function test.sparse.sqrt  ...  done successfully.
  
  
  
  Executing test function test.sparse.square  ...  done successfully.
  
  
  
  Executing test function test.sparse.transpose  ...  done successfully.
  
  
  
  Executing test function test.speye  ...  done successfully.
  
  
  
  Executing test function test.as.ddi2dgc  ...  done successfully.
  
  
  
  Executing test function test.as.dgc2dgc  ... dimnames(.) <- NULL:  translated to 
  dimnames(.) <- list(NULL,NULL)  <==>  unname(.)
  dimnames(.) <- NULL:  translated to 
  dimnames(.) <- list(NULL,NULL)  <==>  unname(.)
   done successfully.
  
  
  
  Executing test function test.as.dgr2dgc  ...  done successfully.
  
  
  
  Executing test function test.as.dgt2dgc  ...  done successfully.
  
  
  
  Executing test function test.as.dsc2dgc  ...  done successfully.
  
  
  
  Executing test function test.as.dsr2dgc  ...  done successfully.
  
  
  
  Executing test function test.as.dst2dgc  ...  done successfully.
  
  
  
  Executing test function test.as.dtc2dgc  ...  done successfully.
  
  
  
  Executing test function test.as.dtr2dgc  ...  done successfully.
  
  
  
  Executing test function test.as.dtt2dgc  ...  done successfully.
  
  
  
  Executing test function test.as.ind2dgc  ...  done successfully.
  
  
  
  Executing test function test.as.p2dgc  ...  done successfully.
  
  
  
  Executing test function test.as.stm2dgc  ...  done successfully.
  
  
  
  Executing test function test.as.stm2stm  ...  done successfully.
  
  RUNIT TEST PROTOCOL -- Fri Mar  8 18:04:44 2019 
  *********************************************** 
  Number of test functions: 62 
  Number of errors: 0 
  Number of failures: 1 
  
   
  1 Test Suite : 
  RcppArmadillo Unit Tests - 62 test functions, 0 errors, 1 failure
  FAILURE in test.sample: Error in checkEquals(r.no.no, c.no.no, msg = sprintf("sample.%s.no_replace.no_prob",  : 
    28 element mismatches
  sample.logical.no_replace.no_prob
  
  
  
  Details 
  *************************** 
  Test Suite: RcppArmadillo Unit Tests 
  Test function regexp: ^[Tt]est.+ 
  Test file regexp: ^runit.+\.[rR]$ 
  Involved directory: 
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/unitTests 
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/unitTests/runit.RcppArmadillo.R 
  test.armadillo.as_vector: (6 checks) ... OK (0 seconds)
  test.armadillo.mat.const: (1 checks) ... OK (0 seconds)
  test.armadillo.mat.const.ref: (1 checks) ... OK (0 seconds)
  test.armadillo.mat.plain: (1 checks) ... OK (0 seconds)
  test.armadillo.mat.ref: (1 checks) ... OK (0 seconds)
  test.armadillo.sugar.ctor: (1 checks) ... OK (0 seconds)
  test.armadillo.sugar.matrix.ctor: (1 checks) ... OK (0 seconds)
  test.armadillo.unsigned.as: (8 checks) ... OK (0 seconds)
  test.armadillo.vec.const: (1 checks) ... OK (0 seconds)
  test.armadillo.vec.const.ref: (1 checks) ... OK (0 seconds)
  test.armadillo.vec.plain: (1 checks) ... OK (0 seconds)
  test.armadillo.vec.ref: (1 checks) ... OK (0 seconds)
  test.as.Col: (1 checks) ... OK (0 seconds)
  test.as.Mat: (1 checks) ... OK (0 seconds)
  test.as.Row: (1 checks) ... OK (0 seconds)
  test.cxmat: (1 checks) ... OK (0 seconds)
  test.mtGlue: (1 checks) ... OK (0 seconds)
  test.mtOp: (1 checks) ... OK (0 seconds)
  test.sugar: (1 checks) ... OK (0 seconds)
  test.sugar.cplx: (1 checks) ... OK (0 seconds)
  test.wrap.Glue: (1 checks) ... OK (0 seconds)
  test.wrap.Op: (1 checks) ... OK (0 seconds)
  test.wrap.R: (10 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/unitTests/runit.Rlapack.R 
  test.Rlapack: (7 checks) ... OK (0.01 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/unitTests/runit.complex.R 
  test.complex: (11 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/unitTests/runit.cube.R 
  test.cube: (18 checks) ... OK (0.13 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/unitTests/runit.fastLm.R 
  test.fastLm: (3 checks) ... OK (0.01 seconds)
  test.fastLm.default: (5 checks) ... OK (0.01 seconds)
  test.fastLm.formula: (5 checks) ... OK (0 seconds)
  test.summary.fastLm: (12 checks) ... OK (0.01 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/unitTests/runit.rmultinom.R 
  test.rmultinom: (9 checks) ... OK (0.01 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/unitTests/runit.rng.R 
  test.randi: (2 checks) ... OK (0 seconds)
  test.randi.seed: (1 checks) ... OK (0 seconds)
  test.randn: (3 checks) ... OK (0 seconds)
  test.randn.seed: (1 checks) ... OK (0 seconds)
  test.randu: (2 checks) ... OK (0 seconds)
  test.randu.seed: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/unitTests/runit.sample.R 
  test.sample: FAILURE !! (check number 1)
  Error in checkEquals(r.no.no, c.no.no, msg = sprintf("sample.%s.no_replace.no_prob",  : 
    28 element mismatches
  sample.logical.no_replace.no_prob
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/unitTests/runit.sparse.R 
  test.as.sparse: (1 checks) ... OK (0 seconds)
  test.sparse.addition: (1 checks) ... OK (0.04 seconds)
  test.sparse.fromTriplet: (1 checks) ... OK (0 seconds)
  test.sparse.iterators: (1 checks) ... OK (0.01 seconds)
  test.sparse.list: (1 checks) ... OK (0 seconds)
  test.sparse.multiplication: (1 checks) ... OK (0 seconds)
  test.sparse.sqrt: (1 checks) ... OK (0 seconds)
  test.sparse.square: (1 checks) ... OK (0 seconds)
  test.sparse.transpose: (1 checks) ... OK (0 seconds)
  test.speye: (3 checks) ... OK (0.03 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/RcppArmadillo/unitTests/runit.sparseConversion.R 
  test.as.ddi2dgc: (8 checks) ... OK (0.05 seconds)
  test.as.dgc2dgc: (14 checks) ... OK (0.07 seconds)
  test.as.dgr2dgc: (5 checks) ... OK (0.06 seconds)
  test.as.dgt2dgc: (18 checks) ... OK (0.25 seconds)
  test.as.dsc2dgc: (8 checks) ... OK (0.12 seconds)
  test.as.dsr2dgc: (4 checks) ... OK (0.04 seconds)
  test.as.dst2dgc: (2 checks) ... OK (0.01 seconds)
  test.as.dtc2dgc: (5 checks) ... OK (0.03 seconds)
  test.as.dtr2dgc: (4 checks) ... OK (0.03 seconds)
  test.as.dtt2dgc: (4 checks) ... OK (0.06 seconds)
  test.as.ind2dgc: (9 checks) ... OK (0.08 seconds)
  test.as.p2dgc: (5 checks) ... OK (0.02 seconds)
  test.as.stm2dgc: (1 checks) ... OK (0 seconds)
  test.as.stm2stm: (1 checks) ... OK (0 seconds)
  Error: TEST FAILED!
  Execution halted