Running ‘testthat.R’ [51s/79s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pmml, quietly = T)
  > 
  > test_check("pmml")
  [ FAIL 3 | WARN 1 | SKIP 51 | PASS 374 ]
  
  ══ Skipped tests (51) ══════════════════════════════════════════════════════════
  • On CRAN (48): 'test_pmml.iForest.R:6:3',
    'test_pmml_integration_ARIMA.R:109:3', 'test_pmml_integration_ARIMA.R:184:3',
    'test_pmml_integration_ARIMA.R:269:3',
    'test_pmml_integration_e1071_svm.R:27:3',
    'test_pmml_integration_e1071_svm.R:275:3', 'test_pmml_integration_lm.R:13:3',
    'test_pmml_integration_lm.R:123:3', 'test_pmml_integration_lm.R:175:3',
    'test_pmml_integration_other.R:120:3', 'test_pmml_integration_other.R:167:3',
    'test_pmml_integration_other.R:265:3', 'test_pmml_integration_other.R:439:3',
    'test_pmml_integration_other.R:607:3', 'test_pmml_integration_other.R:692:3',
    'test_pmml_integration_other.R:849:3',
    'test_pmml_integration_other.R:1062:3',
    'test_pmml_integration_other.R:1322:3',
    'test_pmml_integration_other.R:1442:3',
    'test_pmml_integration_other.R:1547:3',
    'test_pmml_integration_other.R:1633:3',
    'test_pmml_integration_other.R:1822:3',
    'test_pmml_integration_transformations.R:19:3',
    'test_pmml_integration_transformations.R:319:3',
    'test_pmml_integration_transformations.R:354:3',
    'test_pmml_integration_transformations.R:377:3',
    'test_pmml_integration_transformations.R:407:3',
    'test_pmml_integration_transformations.R:469:3',
    'test_pmml_integration_xgboost.R:21:3', 'test_schema_validation.R:135:3',
    'test_schema_validation.R:183:3', 'test_schema_validation.R:204:3',
    'test_schema_validation.R:248:3', 'test_schema_validation.R:343:3',
    'test_schema_validation.R:426:3', 'test_schema_validation.R:458:3',
    'test_schema_validation.R:500:3', 'test_schema_validation.R:603:3',
    'test_schema_validation.R:795:3', 'test_schema_validation.R:933:3',
    'test_schema_validation.R:1008:3', 'test_schema_validation.R:1045:3',
    'test_schema_validation.R:1077:3', 'test_schema_validation.R:1146:3',
    'test_schema_validation.R:1193:3', 'test_schema_validation.R:1429:3',
    'test_schema_validation.R:1510:3', 'test_schema_validation.R:1540:3'
  • skip (2): 'test_pmml_integration_lm.R:147:3',
    'test_pmml_integration_transformations.R:439:3'
  • skip until export issue is resolved (1): 'test_pmml.nnet.R:66:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_function_to_pmml.R:28:3'): function_to_pmml('1(2)') throws unexpected end of input error ──
  `function_to_pmml("1(2")` threw an error with unexpected message.
  Expected match: "unexpected end of input"
  Actual message: "<text>:2:0: syntax error\n1: 1(2\n   ^"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(function_to_pmml("1(2"), regexp = "unexpected end of input") at test_function_to_pmml.R:28:3
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─pmml::function_to_pmml("1(2")
   7.   └─pmml:::.pmmlU(expr)
   8.     └─base::parse(text = expr0)
  ── Failure ('test_function_to_pmml.R:78:3'): function_to_pmml('?3') throws error when ? is * or / ──
  `function_to_pmml("*3")` threw an error with unexpected message.
  Expected match: "<text>:1:1: unexpected '*'"
  Actual message: "<text>:1:1: syntax error\n1: *\n    ^"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(function_to_pmml("*3"), regexp = "<text>:1:1: unexpected '*'") at test_function_to_pmml.R:78:3
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─pmml::function_to_pmml("*3")
   7.   └─pmml:::.pmmlU(expr)
   8.     └─base::parse(text = expr0)
  ── Failure ('test_function_to_pmml.R:79:3'): function_to_pmml('?3') throws error when ? is * or / ──
  `function_to_pmml("/3")` threw an error with unexpected message.
  Expected match: "<text>:1:1: unexpected '/'"
  Actual message: "<text>:1:1: syntax error\n1: /\n    ^"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(function_to_pmml("/3"), regexp = "<text>:1:1: unexpected '/'") at test_function_to_pmml.R:79:3
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─pmml::function_to_pmml("/3")
   7.   └─pmml:::.pmmlU(expr)
   8.     └─base::parse(text = expr0)
  
  [ FAIL 3 | WARN 1 | SKIP 51 | PASS 374 ]
  Error: Test failures
  Execution halted