R Under development (unstable) (2025-07-06 r88390 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(rcdo) > > test_check("rcdo") [ FAIL 10 | WARN 0 | SKIP 0 | PASS 22 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-test-build-operation.R:6:3'): simple operator ──────────────── build_operation(cdo_ymonmin(x)) (`actual`) not equal to "cdo ymonmin [ 'file.nc' ] {{output}}" (`expected`). actual vs expected - "cdo ymonmin [ \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file.nc\" ] {{output}}" + "cdo ymonmin [ 'file.nc' ] {{output}}" Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-test-build-operation.R:6:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─testthat::expect_equal(build_operation(cdo_ymonmin(x)), "cdo ymonmin [ 'file.nc' ] {{output}}") ── Failure ('test-test-build-operation.R:14:3'): 2 file operator ─────────────── build_operation(op) (`actual`) not equal to "cdo ymonsub [ 'file2.nc' 'file.nc' ] {{output}}" (`expected`). actual vs expected - "cdo ymonsub [ \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file2.nc\" \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file.nc\" ] {{output}}" + "cdo ymonsub [ 'file2.nc' 'file.nc' ] {{output}}" Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-test-build-operation.R:14:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─testthat::expect_warning(expect_equal(build_operation(op), "cdo ymonsub [ 'file2.nc' 'file.nc' ] {{output}}")) 8. │ └─testthat:::expect_condition_matching(...) 9. │ └─testthat:::quasi_capture(...) 10. │ ├─testthat (local) .capture(...) 11. │ │ └─base::withCallingHandlers(...) 12. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 13. └─testthat::expect_equal(build_operation(op), "cdo ymonsub [ 'file2.nc' 'file.nc' ] {{output}}") ── Failure ('test-test-build-operation.R:21:3'): parameters work ─────────────── build_operation(op) (`actual`) not equal to "cdo sellonlatbox,0,360,-90,0 [ 'file.nc' ] {{output}}" (`expected`). actual vs expected - "cdo sellonlatbox,0,360,-90,0 [ \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file.nc\" ] {{output}}" + "cdo sellonlatbox,0,360,-90,0 [ 'file.nc' ] {{output}}" Backtrace: ▆ 1. ├─testthat::expect_warning(expect_equal(build_operation(op), "cdo sellonlatbox,0,360,-90,0 [ 'file.nc' ] {{output}}")) at test-test-build-operation.R:21:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─testthat::expect_equal(build_operation(op), "cdo sellonlatbox,0,360,-90,0 [ 'file.nc' ] {{output}}") ── Failure ('test-test-build-operation.R:28:3'): chaining ────────────────────── build_operation(op) (`actual`) not equal to "cdo ymonsub [ 'file2.nc' -ymonmean [ 'file.nc' ] ] {{output}}" (`expected`). actual vs expected - "cdo ymonsub [ \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file2.nc\" -ymonmean [ \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file.nc\" ] ] {{output}}" + "cdo ymonsub [ 'file2.nc' -ymonmean [ 'file.nc' ] ] {{output}}" Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-test-build-operation.R:28:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─testthat::expect_warning(expect_equal(build_operation(op), "cdo ymonsub [ 'file2.nc' -ymonmean [ 'file.nc' ] ] {{output}}")) 8. │ └─testthat:::expect_condition_matching(...) 9. │ └─testthat:::quasi_capture(...) 10. │ ├─testthat (local) .capture(...) 11. │ │ └─base::withCallingHandlers(...) 12. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 13. └─testthat::expect_equal(build_operation(op), "cdo ymonsub [ 'file2.nc' -ymonmean [ 'file.nc' ] ] {{output}}") ── Failure ('test-test-build-operation.R:38:3'): options work ────────────────── build_operation(op_option) (`actual`) not equal to "cdo -L -f ymonmax [ 'file.nc' ] {{output}}" (`expected`). actual vs expected - "cdo -L -f ymonmax [ \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file.nc\" ] {{output}}" + "cdo -L -f ymonmax [ 'file.nc' ] {{output}}" Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-test-build-operation.R:38:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─testthat::expect_equal(build_operation(op_option), "cdo -L -f ymonmax [ 'file.nc' ] {{output}}") ── Failure ('test-test-build-operation.R:42:3'): options work ────────────────── build_operation(op) (`actual`) not equal to "cdo -O ymonmax [ 'file.nc' ] {{output}}" (`expected`). actual vs expected - "cdo -O ymonmax [ \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file.nc\" ] {{output}}" + "cdo -O ymonmax [ 'file.nc' ] {{output}}" Backtrace: ▆ 1. ├─testthat::expect_warning(expect_equal(build_operation(op), "cdo -O ymonmax [ 'file.nc' ] {{output}}")) at test-test-build-operation.R:42:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─testthat::expect_equal(build_operation(op), "cdo -O ymonmax [ 'file.nc' ] {{output}}") ── Failure ('test-test-build-operation.R:44:3'): options work ────────────────── build_operation(op_option) (`actual`) not equal to "cdo -L -f -O ymonmax [ 'file.nc' ] {{output}}" (`expected`). actual vs expected - "cdo -L -f -O ymonmax [ \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file.nc\" ] {{output}}" + "cdo -L -f -O ymonmax [ 'file.nc' ] {{output}}" Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-test-build-operation.R:44:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─testthat::expect_equal(build_operation(op_option), "cdo -L -f -O ymonmax [ 'file.nc' ] {{output}}") ── Failure ('test-test-build-operation.R:46:3'): options work ────────────────── build_operation(op_option, options_replace = TRUE) (`actual`) not equal to "cdo ymonmax [ 'file.nc' ] {{output}}" (`expected`). actual vs expected - "cdo ymonmax [ \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file.nc\" ] {{output}}" + "cdo ymonmax [ 'file.nc' ] {{output}}" Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-test-build-operation.R:46:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─testthat::expect_equal(...) ── Failure ('test-test-build-operation.R:48:3'): options work ────────────────── build_operation(op_option, options = "-L", options_replace = TRUE) (`actual`) not equal to "cdo -L ymonmax [ 'file.nc' ] {{output}}" (`expected`). actual vs expected - "cdo -L ymonmax [ \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file.nc\" ] {{output}}" + "cdo -L ymonmax [ 'file.nc' ] {{output}}" Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-test-build-operation.R:48:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─testthat::expect_equal(...) ── Failure ('test-test-build-operation.R:57:3'): setting ouput works ─────────── build_operation(op) (`actual`) not equal to "cdo ymonmax [ 'file.nc' ] out.nc" (`expected`). actual vs expected - "cdo ymonmax [ \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file.nc\" ] out.nc" + "cdo ymonmax [ 'file.nc' ] out.nc" Backtrace: ▆ 1. ├─testthat::expect_warning(expect_equal(build_operation(op), "cdo ymonmax [ 'file.nc' ] out.nc")) at test-test-build-operation.R:57:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─testthat::expect_equal(build_operation(op), "cdo ymonmax [ 'file.nc' ] out.nc") [ FAIL 10 | WARN 0 | SKIP 0 | PASS 22 ] Error: Test failures Execution halted