Running ‘testthat.R’ [4s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("wrassp")
  Loading required package: wrassp
  Loading required package: tibble
  [ FAIL 4 | WARN 0 | SKIP 1 | PASS 322 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test_libasspVSwrassp.R:11:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_alternOutputDir.R:17:5'): all signal processing functions run without errors on audio files ──
  Error in `affilter(listOfFiles = c("/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo001.wav", 
  "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo002.wav", 
  "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo003.wav", 
  "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo004.wav", 
  "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo005.wav", 
  "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo006.wav", 
  "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo007.wav", 
  "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo008.wav", 
  "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo009.wav"
  ), optLogFilePath = NULL, highPass = 4000, lowPass = 0, stopBand = 96, 
      transition = 250, useIIR = FALSE, numIIRsections = 4, toFile = TRUE, 
      explicitExt = NULL, outputDirectory = "/home/hornik/tmp/scratch/RtmpeC4FsH", 
      forceToLog = useWrasspLogger, verbose = FALSE)`: Can't write file (/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo001.wav)
  Backtrace:
      ▆
   1. ├─base::do.call(func, as.list(funcFormals)) at test_alternOutputDir.R:17:4
   2. └─wrassp::affilter(...)
  ── Error ('test_fileIO.R:19:7'): read things that are written to disc are the same as origs ──
  Error in `affilter(listOfFiles = "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo001.wav", 
      optLogFilePath = NULL, highPass = 4000, lowPass = 0, stopBand = 96, 
      transition = 250, useIIR = FALSE, numIIRsections = 4, toFile = TRUE, 
      explicitExt = "testthat", outputDirectory = "/home/hornik/tmp/scratch/RtmpeC4FsH", 
      forceToLog = useWrasspLogger, verbose = TRUE)`: Can't write file (/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo001.wav)
  Backtrace:
      ▆
   1. ├─base::do.call(func, as.list(funcFormals)) at test_fileIO.R:19:6
   2. └─wrassp::affilter(...)
  ── Error ('test_logging.R:28:7'): logging file content is the same as hard coded string ──
  Error in `affilter(listOfFiles = "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo001.wav", 
      optLogFilePath = "/home/hornik/tmp/scratch/RtmpeC4FsH/wrasspTESTTHATlog.txt", 
      highPass = 4000, lowPass = 0, stopBand = 96, transition = 250, 
      useIIR = FALSE, numIIRsections = 4, toFile = FALSE, explicitExt = NULL, 
      outputDirectory = NULL, forceToLog = TRUE, verbose = FALSE)`: Can't write file (/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo001.wav)
  Backtrace:
      ▆
   1. ├─base::do.call(func, as.list(funcFormals)) at test_logging.R:28:6
   2. └─wrassp::affilter(...)
  ── Error ('test_signalProc.R:93:5'): affilter doesn't break due to varying parameters ──
  Error in `(function (listOfFiles = NULL, optLogFilePath = NULL, highPass = 4000, 
      lowPass = 0, stopBand = 96, transition = 250, useIIR = FALSE, 
      numIIRsections = 4, toFile = TRUE, explicitExt = NULL, outputDirectory = NULL, 
      forceToLog = useWrasspLogger, verbose = TRUE) 
  {
      if (is.null(listOfFiles)) {
          stop(paste("listOfFiles is NULL! It has to be a string or vector of file", 
              "paths (min length = 1) pointing to valid file(s) to perform", 
              "the given analysis function."))
      }
      if (is.null(optLogFilePath) && forceToLog) {
          stop("optLogFilePath is NULL! -> not logging!")
      }
      else {
          if (forceToLog) {
              optLogFilePath = path.expand(optLogFilePath)
          }
      }
      if (!is.null(outputDirectory)) {
          outputDirectory = normalizePath(path.expand(outputDirectory))
          finfo <- file.info(outputDirectory)
          if (is.na(finfo$isdir)) 
              if (!dir.create(outputDirectory, recursive = TRUE)) 
                  stop("Unable to create output directory.")
              else if (!finfo$isdir) 
                  stop(paste(outputDirectory, "exists but is not a directory."))
      }
      listOfFiles <- prepareFiles(listOfFiles)
      if (length(listOfFiles) == 1 | !verbose) {
          pb <- NULL
      }
      else {
          if (toFile == FALSE) {
              stop("length(listOfFiles) is > 1 and ToFile=FALSE! ToFile=FALSE only permitted for single files.")
          }
          cat("\n  INFO: applying affilter to", length(listOfFiles), 
              "files\n")
          pb <- utils::txtProgressBar(min = 0, max = length(listOfFiles), 
              style = 3)
      }
      externalRes = invisible(.External("performAssp", listOfFiles, 
          fname = "affilter", highPass = highPass, lowPass = lowPass, 
          stopBand = stopBand, transition = transition, useIIR = useIIR, 
          numIIRsections = as.integer(numIIRsections), toFile = toFile, 
          explicitExt = explicitExt, progressBar = pb, outputDirectory = outputDirectory, 
          PACKAGE = "wrassp"))
      if (forceToLog) {
          optionsGivenAsArgs = as.list(match.call(expand.dots = TRUE))
          wrassp.logger(optionsGivenAsArgs[[1]], optionsGivenAsArgs[-1], 
              optLogFilePath, listOfFiles)
      }
      if (!is.null(pb)) {
          close(pb)
      }
      else {
          return(externalRes)
      }
  })(listOfFiles = "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo008.wav", 
      optLogFilePath = NULL, highPass = 4000, lowPass = 0, stopBand = 96, 
      transition = 250, useIIR = FALSE, numIIRsections = 4, toFile = FALSE, 
      explicitExt = NULL, outputDirectory = NULL, forceToLog = FALSE, 
      verbose = FALSE)`: Can't write file (/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/wrassp/extdata/lbo008.wav)
  Backtrace:
      ▆
   1. ├─base::do.call(affilter, as.list(params)) at test_signalProc.R:93:4
   2. └─wrassp (local) `<fn>`(...)
  
  [ FAIL 4 | WARN 0 | SKIP 1 | PASS 322 ]
  Error: Test failures
  Execution halted