Running ‘testthat.R’ [21m/27m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > ## testthat.R
  > ##
  > ## Copyright (C)  2017  Alexander Eckert
  > ##
  > ## This file is part of parallelDist.
  > ##
  > ## parallelDist 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.
  > ##
  > ## parallelDist 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 parallelDist. If not, see <http://www.gnu.org/licenses/>.
  > 
  > library(testthat)
  > library(parallelDist)
  > # workaround for error "cannot open file 'startup.Rs': No such file or directory"
  > Sys.setenv("R_TESTS" = "")
  > test_check("parallelDist")
  g++: error: language openmp not recognized
  g++: error: language openmp not recognized
  make: Fatal error: Command failed for target `file5bd45670481d.o'
  Current working directory /tmp/RtmpVGaG6T/sourceCpp-i386-pc-solaris2.10-0.12.15/sourcecpp_5bd42f55728e
  /opt/csw/bin/g++ -std=gnu++11 -I/home/ripley/R/cc/include -DNDEBUG -I../inst/include -xopenmp  -I"/home/ripley/R/Lib32/Rcpp/include" -I"/home/ripley/R/Lib32/RcppArmadillo/include" -I"/tmp/RtmpVGaG6T/sourceCpp-i386-pc-solaris2.10-0.12.15" -I/usr/local/include   -fPIC  -O2 -c file5bd45670481d.cpp -o file5bd45670481d.o
  *** Error code 1
  ── 1. Error: custom euclidean distance method produces same outputs as native me
  Error 1 occurred building shared library.
  1: cppXPtr("double customDist(const arma::mat &A, const arma::mat &B) { return sqrt(arma::accu(arma::square(A - B))); }", 
         depends = c("RcppArmadillo")) at testthat/testMatrixCustomDistances.R:42
  2: Rcpp::cppFunction(wrapped_code, depends, plugins, includes, env, rebuild, cacheDir, 
         showOutput, verbose)
  3: sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir, showOutput = showOutput, 
         verbose = verbose)
  4: stop("Error ", status, " occurred building shared library.")
  
  g++: error: language openmp not recognized
  g++: error: language openmp not recognized
  make: Fatal error: Command failed for target `file5bd473212037.o'
  Current working directory /tmp/RtmpVGaG6T/sourceCpp-i386-pc-solaris2.10-0.12.15/sourcecpp_5bd4245a871
  /opt/csw/bin/g++ -std=gnu++11 -I/home/ripley/R/cc/include -DNDEBUG -I../inst/include -xopenmp  -I"/home/ripley/R/Lib32/Rcpp/include" -I"/home/ripley/R/Lib32/RcppArmadillo/include" -I"/tmp/RtmpVGaG6T/sourceCpp-i386-pc-solaris2.10-0.12.15" -I/usr/local/include   -fPIC  -O2 -c file5bd473212037.cpp -o file5bd473212037.o
  *** Error code 1
  ── 2. Error: error for wrong return value of func pointer shows up (@testMatrixC
  Error 1 occurred building shared library.
  1: cppXPtr("int customDist(const arma::mat &A, const arma::mat &B) { return 0; }", depends = c("RcppArmadillo")) at testthat/testMatrixCustomDistances.R:51
  2: Rcpp::cppFunction(wrapped_code, depends, plugins, includes, env, rebuild, cacheDir, 
         showOutput, verbose)
  3: sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir, showOutput = showOutput, 
         verbose = verbose)
  4: stop("Error ", status, " occurred building shared library.")
  
  g++: error: language openmp not recognized
  g++: error: language openmp not recognized
  make: Fatal error: Command failed for target `file5bd4482fda9.o'
  Current working directory /tmp/RtmpVGaG6T/sourceCpp-i386-pc-solaris2.10-0.12.15/sourcecpp_5bd47f484747
  /opt/csw/bin/g++ -std=gnu++11 -I/home/ripley/R/cc/include -DNDEBUG -I../inst/include -xopenmp  -I"/home/ripley/R/Lib32/Rcpp/include" -I"/home/ripley/R/Lib32/RcppArmadillo/include" -I"/tmp/RtmpVGaG6T/sourceCpp-i386-pc-solaris2.10-0.12.15" -I/usr/local/include   -fPIC  -O2 -c file5bd4482fda9.cpp -o file5bd4482fda9.o
  *** Error code 1
  ── 3. Error: error for wrong argument type of func pointer shows up (@testMatrix
  Error 1 occurred building shared library.
  1: cppXPtr("double customDist(int a, const arma::mat &B) { return 0; }", depends = c("RcppArmadillo")) at testthat/testMatrixCustomDistances.R:56
  2: Rcpp::cppFunction(wrapped_code, depends, plugins, includes, env, rebuild, cacheDir, 
         showOutput, verbose)
  3: sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir, showOutput = showOutput, 
         verbose = verbose)
  4: stop("Error ", status, " occurred building shared library.")
  
  g++: error: language openmp not recognized
  g++: error: language openmp not recognized
  make: Fatal error: Command failed for target `file5bd44af61bbe.o'
  Current working directory /tmp/RtmpVGaG6T/sourceCpp-i386-pc-solaris2.10-0.12.15/sourcecpp_5bd41501709a
  /opt/csw/bin/g++ -std=gnu++11 -I/home/ripley/R/cc/include -DNDEBUG -I../inst/include -xopenmp  -I"/home/ripley/R/Lib32/Rcpp/include" -I"/home/ripley/R/Lib32/RcppArmadillo/include" -I"/tmp/RtmpVGaG6T/sourceCpp-i386-pc-solaris2.10-0.12.15" -I/usr/local/include   -fPIC  -O2 -c file5bd44af61bbe.cpp -o file5bd44af61bbe.o
  *** Error code 1
  ── 4. Error: error for wrong number of arguments of func pointer shows up (@test
  Error 1 occurred building shared library.
  1: cppXPtr("double customDist(const arma::mat &A) { return 0; }", depends = c("RcppArmadillo")) at testthat/testMatrixCustomDistances.R:66
  2: Rcpp::cppFunction(wrapped_code, depends, plugins, includes, env, rebuild, cacheDir, 
         showOutput, verbose)
  3: sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir, showOutput = showOutput, 
         verbose = verbose)
  4: stop("Error ", status, " occurred building shared library.")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 230129 SKIPPED: 0 FAILED: 4
  1. Error: custom euclidean distance method produces same outputs as native method (@testMatrixCustomDistances.R#42) 
  2. Error: error for wrong return value of func pointer shows up (@testMatrixCustomDistances.R#51) 
  3. Error: error for wrong argument type of func pointer shows up (@testMatrixCustomDistances.R#56) 
  4. Error: error for wrong number of arguments of func pointer shows up (@testMatrixCustomDistances.R#66) 
  
  Error: testthat unit tests failed
  Execution halted