Running ‘testthat.R’ [10s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(PSPManalysis)
  
  Welcome to the PSPManalysis package for anlyzing physiologically structured population models
  Explore the demos (shown by demo(package="PSPManalysis") to get an overview
  Also check out the help pages of the exported functions:
  
  PSPMdemo, PSPMecodyn, PSPMequi, PSPMevodyn, PSPMind, PSPMclean, PSPMhelp, csbread and showpspm
  
  For detailed information consult the manual using PSPMhelp("html") or PSPMhelp("pdf")
  
  > 
  > test_check("PSPManalysis")
  
  Building executable Medflydemo.so using sources from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/PSPManalysis/C ...
  
  make[1]: Entering directory '/tmp/Rtmpe29S3m'
  clang-6.0 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -DR_PACKAGE -I. -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/PSPManalysis/C"  -DRFUNCTIONS=0 -DPROBLEMHEADER="Medfly.h"  -I/usr/local/include   -fpic  -g -O3 -Wall -pedantic -mtune=native -c PSPMdemo.c -o PSPMdemo.o
  make[1]: *** read jobs pipe: Bad file descriptor.  Stop.
  make[1]: *** Waiting for unfinished jobs....
  make[1]: Leaving directory '/tmp/Rtmpe29S3m'
  ── 1. Error: (unknown) (@test.01-Medfly.R#1)  ──────────────────────────────────
  Command failed (1)
  1: PSPMdemo("Medfly", clean = TRUE, force = TRUE) at testthat/test.01-Medfly.R:1
  2: buildSO("PSPMdemo", modelname, debug, force, silent)
  3: devtools::RCMD("SHLIB", options = buildargs, path = tmpdir, env_vars = buildenv, 
         quiet = silent)
  4: R(paste("CMD", cmd, options), path = path, env_vars = env_vars, ...)
  5: fun(r, args = args, env_vars = env_vars, path = path, ...)
  6: stop("Command failed (", status, ")", call. = FALSE)
  
  
  Building executable PNAS2002equi.so using sources from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/PSPManalysis/C ...
  
  make[1]: Entering directory '/tmp/Rtmpe29S3m'
  clang-6.0 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -DR_PACKAGE -I. -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/PSPManalysis/C"  -DRFUNCTIONS=0 -DPROBLEMHEADER="PNAS2002.h"  -I/usr/local/include   -fpic  -g -O3 -Wall -pedantic -mtune=native -c PSPMequi.c -o PSPMequi.o
  make[1]: *** read jobs pipe: Bad file descriptor.  Stop.
  make[1]: *** Waiting for unfinished jobs....
  make[1]: Leaving directory '/tmp/Rtmpe29S3m'
  ── 2. Error: (unknown) (@test.02-PNAS2002.R#7)  ────────────────────────────────
  Command failed (1)
  1: eval(parse(text = cmd)) at testthat/test.02-PNAS2002.R:7
  2: eval(parse(text = cmd))
  3: PSPMequi("PNAS2002.h", "EQ", c(1e-06, 1e-06), 0.5, c(1, 0, 4e-04), NULL, c("popZE", 
         "0", "envZE", "1", "envZE", "2"), clean = TRUE, force = TRUE)
  4: buildSO("PSPMequi", modelname, debug, force, silent)
  5: devtools::RCMD("SHLIB", options = buildargs, path = tmpdir, env_vars = buildenv, 
         quiet = silent)
  6: R(paste("CMD", cmd, options), path = path, env_vars = env_vars, ...)
  7: fun(r, args = args, env_vars = env_vars, path = path, ...)
  8: stop("Command failed (", status, ")", call. = FALSE)
  
  
  
  
  Detection of the ESS value of the bifurcation parameter of the structured population (ingestion exponent)
  
  
  Building executable Indet_growthequi.so using sources from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/PSPManalysis/C ...
  
  make[1]: Entering directory '/tmp/Rtmpe29S3m'
  clang-6.0 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -DR_PACKAGE -I. -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/PSPManalysis/C"  -DRFUNCTIONS=0 -DPROBLEMHEADER="Indet_growth.h"  -I/usr/local/include   -fpic  -g -O3 -Wall -pedantic -mtune=native -c PSPMequi.c -o PSPMequi.o
  make[1]: *** read jobs pipe: Bad file descriptor.  Stop.
  make[1]: *** Waiting for unfinished jobs....
  make[1]: Leaving directory '/tmp/Rtmpe29S3m'
  ── 3. Error: (unknown) (@test.03-Indet_growth.R#5)  ────────────────────────────
  Command failed (1)
  1: eval(parse(text = cmd)) at testthat/test.03-Indet_growth.R:5
  2: eval(parse(text = cmd))
  3: PSPMequi("Indet_growth.h", "EQ", c(1, 0.22, 0), -0.1, c(6, 0.5, 2), options = c("popEVO", 
         "0", "report", "2"), clean = TRUE)
  4: buildSO("PSPMequi", modelname, debug, force, silent)
  5: devtools::RCMD("SHLIB", options = buildargs, path = tmpdir, env_vars = buildenv, 
         quiet = silent)
  6: R(paste("CMD", cmd, options), path = path, env_vars = env_vars, ...)
  7: fun(r, args = args, env_vars = env_vars, path = path, ...)
  8: stop("Command failed (", status, ")", call. = FALSE)
  
  
  Building executable PNAS2002_5bsind.so using sources from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/PSPManalysis/C ...
  
  make[1]: Entering directory '/tmp/Rtmpe29S3m'
  clang-6.0 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -DR_PACKAGE -I. -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/PSPManalysis/C"  -DRFUNCTIONS=0 -DPROBLEMHEADER="PNAS2002_5bs.h"  -I/usr/local/include   -fpic  -g -O3 -Wall -pedantic -mtune=native -c PSPMind.c -o PSPMind.o
  make[1]: *** read jobs pipe: Bad file descriptor.  Stop.
  make[1]: *** Waiting for unfinished jobs....
  make[1]: Leaving directory '/tmp/Rtmpe29S3m'
  ── 4. Error: (unknown) (@test.04-PNAS2002_5bsind.R#3)  ─────────────────────────
  Command failed (1)
  1: PSPMind("PNAS2002_5bs", c(1.30341e-05, 3.84655e-05, 4.00802e-06), pars, options = c("isort", 
         "1"), clean = TRUE, force = TRUE) at testthat/test.04-PNAS2002_5bsind.R:3
  2: buildSO("PSPMind", modelname, debug, force, silent)
  3: devtools::RCMD("SHLIB", options = buildargs, path = tmpdir, env_vars = buildenv, 
         quiet = silent)
  4: R(paste("CMD", cmd, options), path = path, env_vars = env_vars, ...)
  5: fun(r, args = args, env_vars = env_vars, path = path, ...)
  6: stop("Command failed (", status, ")", call. = FALSE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 0 SKIPPED: 0 FAILED: 4
  1. Error: (unknown) (@test.01-Medfly.R#1) 
  2. Error: (unknown) (@test.02-PNAS2002.R#7) 
  3. Error: (unknown) (@test.03-Indet_growth.R#5) 
  4. Error: (unknown) (@test.04-PNAS2002_5bsind.R#3) 
  
  Error: testthat unit tests failed
  Execution halted