CRAN Package Check Results for Package fixedincome

Last updated on 2022-10-06 15:53:42 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.0.3 14.38 135.83 150.21 ERROR
r-devel-linux-x86_64-debian-gcc 0.0.3 9.23 95.69 104.92 ERROR
r-devel-linux-x86_64-fedora-clang 0.0.3 130.51 ERROR
r-devel-linux-x86_64-fedora-gcc 0.0.3 103.89 ERROR
r-devel-windows-x86_64 0.0.3 95.00 193.00 288.00 ERROR
r-patched-linux-x86_64 0.0.3 12.47 130.29 142.76 OK
r-release-linux-x86_64 0.0.3 11.39 132.43 143.82 OK
r-release-macos-arm64 0.0.3 51.00 OK
r-release-macos-x86_64 0.0.3 77.00 OK
r-release-windows-x86_64 0.0.3 26.00 201.00 227.00 OK
r-oldrel-macos-arm64 0.0.3 56.00 OK
r-oldrel-macos-x86_64 0.0.3 86.00 OK
r-oldrel-windows-ix86+x86_64 0.0.3 44.00 238.00 282.00 OK

Check Details

Version: 0.0.3
Check: tests
Result: ERROR
     Running 'testthat.R' [9s/12s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(fixedincome)
     >
     > test_check("fixedincome")
     [ FAIL 24 | WARN 0 | SKIP 0 | PASS 283 ]
    
     == Failed tests ================================================================
     -- Failure (test-spotratecurve.R:99:3): it should index the elements -----------
     as.numeric(curve[[11]]) (`actual`) not equal to 0.056 (`expected`).
    
     `actual`: NA
     `expected`: 0
     -- Failure (test-spotratecurve.R:102:3): it should index the elements ----------
     as.numeric(curve[[c(1, 11)]]) (`actual`) not equal to c(0.0719, 0.056) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     -- Failure (test-spotratecurve.R:111:3): it should return a NA spotrate for unexistent indexes --
     as.numeric(curve[[c(10, 11)]]) (`actual`) not equal to c(NA, 0.056) (`expected`).
    
     `actual`: NA NA
     `expected`: NA 0
     -- Failure (test-spotratecurve.R:120:3): it should replace or insert elements into the curve --
     as.numeric(curve[[10]]) (`actual`) not equal to 0.051 (`expected`).
    
     `actual`: NA
     `expected`: 0
     -- Failure (test-spotratecurve.R:122:3): it should replace or insert elements into the curve --
     match(10, curve@terms) (`actual`) not equal to 2 (`expected`).
    
     `actual`: NA
     `expected`: 2
     -- Failure (test-spotratecurve.R:125:3): it should replace or insert elements into the curve --
     as.numeric(curve[[c(8, 9)]]) (`actual`) not equal to c(0.048, 0.049) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     -- Failure (test-spotratecurve.R:126:3): it should replace or insert elements into the curve --
     match(c(8, 9), curve@terms) (`actual`) not equal to c(2, 3) (`expected`).
    
     `actual`: NA NA
     `expected`: 2 3
     -- Failure (test-spotratecurve.R:129:3): it should replace or insert elements into the curve --
     as.numeric(curve[[c(12, 13)]]) (`actual`) not equal to c(0.049, 0.049) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     -- Failure (test-spotratecurve.R:133:3): it should replace or insert elements into the curve --
     as.numeric(curve[[11]]) (`actual`) not equal to 0.051 (`expected`).
    
     `actual`: NA
     `expected`: 0
     -- Failure (test-spotratecurve.R:134:3): it should replace or insert elements into the curve --
     length(curve) (`actual`) not equal to `len_` (`expected`).
    
     `actual`: 11
     `expected`: 10
     -- Failure (test-spotratecurve.R:138:3): it should replace or insert elements into the curve --
     as.numeric(curve[[c(1, 11)]]) (`actual`) not equal to c(0.051, 0.051) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     -- Failure (test-spotratecurve.R:139:3): it should replace or insert elements into the curve --
     length(curve) (`actual`) not equal to `len_` (`expected`).
    
     `actual`: 13
     `expected`: 11
     -- Failure (test-spotratecurve.R:142:3): it should replace or insert elements into the curve --
     as.numeric(curve[[c(1, 11)]]) (`actual`) not equal to c(0.05, 0.05) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     -- Failure (test-spotratecurve.R:143:3): it should replace or insert elements into the curve --
     length(curve) (`actual`) not equal to `len_` (`expected`).
    
     `actual`: 15
     `expected`: 11
     -- Failure (test-spotratecurve.R:147:3): it should replace or insert elements into the curve --
     as.numeric(curve[[c(25, 26, 29)]]) (`actual`) not equal to c(0.07, 0.07, 0.07) (`expected`).
    
     `actual`: NA NA NA
     `expected`: 0 0 0
     -- Failure (test-spotratecurve.R:148:3): it should replace or insert elements into the curve --
     length(curve) (`actual`) not equal to len_ + 2 (`expected`).
    
     `actual`: 18
     `expected`: 17
     -- Failure (test-spotratecurve.R:151:3): it should replace or insert elements into the curve --
     as.numeric(curve[[c(31, 28, 35)]]) (`actual`) not equal to c(0.072, 0.071, 0.073) (`expected`).
    
     `actual`: NA NA NA
     `expected`: 0 0 0
     -- Failure (test-spotratecurve.R:158:3): it should replace with another spotrate --
     as.numeric(curve[[13]]) (`actual`) not equal to as.numeric(curve[1]) (`expected`).
    
     `actual`: NA
     `expected`: 0
     -- Failure (test-spotratecurve.R:179:3): it should insert a spotratecurve into another spotratecurve --
     as.numeric(curve[[c(1, 3)]]) (`actual`) not equal to c(0.05, 0.5) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     -- Error (test-spotratecurve.R:237:3): it should remove a term from spotrate curve by using negative index --
     Error in `validObject(.Object)`: invalid class "SpotRateCurve" object: FALSE
     Backtrace:
     x
     1. +-testthat::expect_equal(...) at test-spotratecurve.R:237:2
     2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
     3. | \-rlang::eval_bare(expr, quo_get_env(quo))
     4. +-curve[[-11]]
     5. \-curve[[-11]]
     6. +-fixedincome::spotratecurve(...)
     7. \-fixedincome:::spotratecurve.numeric(...)
     8. \-methods::new(...)
     9. +-methods::initialize(value, ...)
     10. \-methods::initialize(value, ...)
     11. \-methods::validObject(.Object)
     -- Failure (test-spotratecurve.R:244:3): it should index spotratecurve by position --
     curve[[11]] (`actual`) not equal to curve[2] (`expected`).
    
     `actual@.Data`: NA
     `expected@.Data`: 0
    
     `actual`: NA
     `expected`: 0
     -- Error (test-spotratecurve.R:249:3): it should remove a spotratecurve element by its strict position --
     Error in `validObject(.Object)`: invalid class "SpotRateCurve" object: FALSE
     Backtrace:
     x
     1. +-testthat::expect_equal(curve[[-11]], curve[-2]) at test-spotratecurve.R:249:2
     2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
     3. | \-rlang::eval_bare(expr, quo_get_env(quo))
     4. +-curve[[-11]]
     5. \-curve[[-11]]
     6. +-fixedincome::spotratecurve(...)
     7. \-fixedincome:::spotratecurve.numeric(...)
     8. \-methods::new(...)
     9. +-methods::initialize(value, ...)
     10. \-methods::initialize(value, ...)
     11. \-methods::validObject(.Object)
     -- Failure (test-spotratecurve.R:256:3): it should replace spotratecurve elements using its strict position --
     as.numeric(curve[[11]]) (`actual`) not equal to 0.051 (`expected`).
    
     `actual`: NA
     `expected`: 0
     -- Failure (test-spotratecurve.R:260:3): it should replace spotratecurve elements using its strict position --
     as.numeric(curve[[c(11, 26)]]) (`actual`) not equal to c(0.051, 0.052) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
    
     [ FAIL 24 | WARN 0 | SKIP 0 | PASS 283 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.0.3
Check: re-building of vignette outputs
Result: ERROR
    Error(s) in re-building vignettes:
     ...
    --- re-building 'spot-rate-curve-indexing.Rmd' using rmarkdown
    Quitting from lines 134-135 (spot-rate-curve-indexing.Rmd)
    Error: processing vignette 'spot-rate-curve-indexing.Rmd' failed with diagnostics:
    invalid class "SpotRateCurve" object: FALSE
    --- failed re-building 'spot-rate-curve-indexing.Rmd'
    
    --- re-building 'spot-rate-curve-interpolation.Rmd' using rmarkdown
    
    Attaching package: 'dplyr'
    
    The following objects are masked from 'package:fixedincome':
    
     first, last
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    --- finished re-building 'spot-rate-curve-interpolation.Rmd'
    
    --- re-building 'spot-rate-curve-plotting.Rmd' using rmarkdown
    Quitting from lines 83-86 (spot-rate-curve-plotting.Rmd)
    Error: processing vignette 'spot-rate-curve-plotting.Rmd' failed with diagnostics:
    'to' must be a finite number
    --- failed re-building 'spot-rate-curve-plotting.Rmd'
    
    SUMMARY: processing the following files failed:
     'spot-rate-curve-indexing.Rmd' 'spot-rate-curve-plotting.Rmd'
    
    Error: Vignette re-building failed.
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 0.0.3
Check: tests
Result: ERROR
     Running ‘testthat.R’ [7s/11s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(fixedincome)
     >
     > test_check("fixedincome")
     [ FAIL 24 | WARN 0 | SKIP 0 | PASS 283 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure (test-spotratecurve.R:99:3): it should index the elements ───────────
     as.numeric(curve[[11]]) (`actual`) not equal to 0.056 (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:102:3): it should index the elements ──────────
     as.numeric(curve[[c(1, 11)]]) (`actual`) not equal to c(0.0719, 0.056) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:111:3): it should return a NA spotrate for unexistent indexes ──
     as.numeric(curve[[c(10, 11)]]) (`actual`) not equal to c(NA, 0.056) (`expected`).
    
     `actual`: NA NA
     `expected`: NA 0
     ── Failure (test-spotratecurve.R:120:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[10]]) (`actual`) not equal to 0.051 (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:122:3): it should replace or insert elements into the curve ──
     match(10, curve@terms) (`actual`) not equal to 2 (`expected`).
    
     `actual`: NA
     `expected`: 2
     ── Failure (test-spotratecurve.R:125:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(8, 9)]]) (`actual`) not equal to c(0.048, 0.049) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:126:3): it should replace or insert elements into the curve ──
     match(c(8, 9), curve@terms) (`actual`) not equal to c(2, 3) (`expected`).
    
     `actual`: NA NA
     `expected`: 2 3
     ── Failure (test-spotratecurve.R:129:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(12, 13)]]) (`actual`) not equal to c(0.049, 0.049) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:133:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[11]]) (`actual`) not equal to 0.051 (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:134:3): it should replace or insert elements into the curve ──
     length(curve) (`actual`) not equal to `len_` (`expected`).
    
     `actual`: 11
     `expected`: 10
     ── Failure (test-spotratecurve.R:138:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(1, 11)]]) (`actual`) not equal to c(0.051, 0.051) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:139:3): it should replace or insert elements into the curve ──
     length(curve) (`actual`) not equal to `len_` (`expected`).
    
     `actual`: 13
     `expected`: 11
     ── Failure (test-spotratecurve.R:142:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(1, 11)]]) (`actual`) not equal to c(0.05, 0.05) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:143:3): it should replace or insert elements into the curve ──
     length(curve) (`actual`) not equal to `len_` (`expected`).
    
     `actual`: 15
     `expected`: 11
     ── Failure (test-spotratecurve.R:147:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(25, 26, 29)]]) (`actual`) not equal to c(0.07, 0.07, 0.07) (`expected`).
    
     `actual`: NA NA NA
     `expected`: 0 0 0
     ── Failure (test-spotratecurve.R:148:3): it should replace or insert elements into the curve ──
     length(curve) (`actual`) not equal to len_ + 2 (`expected`).
    
     `actual`: 18
     `expected`: 17
     ── Failure (test-spotratecurve.R:151:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(31, 28, 35)]]) (`actual`) not equal to c(0.072, 0.071, 0.073) (`expected`).
    
     `actual`: NA NA NA
     `expected`: 0 0 0
     ── Failure (test-spotratecurve.R:158:3): it should replace with another spotrate ──
     as.numeric(curve[[13]]) (`actual`) not equal to as.numeric(curve[1]) (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:179:3): it should insert a spotratecurve into another spotratecurve ──
     as.numeric(curve[[c(1, 3)]]) (`actual`) not equal to c(0.05, 0.5) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Error (test-spotratecurve.R:237:3): it should remove a term from spotrate curve by using negative index ──
     Error in `validObject(.Object)`: invalid class "SpotRateCurve" object: FALSE
     Backtrace:
     ▆
     1. ├─testthat::expect_equal(...) at test-spotratecurve.R:237:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─curve[[-11]]
     5. └─curve[[-11]]
     6. ├─fixedincome::spotratecurve(...)
     7. └─fixedincome:::spotratecurve.numeric(...)
     8. └─methods::new(...)
     9. ├─methods::initialize(value, ...)
     10. └─methods::initialize(value, ...)
     11. └─methods::validObject(.Object)
     ── Failure (test-spotratecurve.R:244:3): it should index spotratecurve by position ──
     curve[[11]] (`actual`) not equal to curve[2] (`expected`).
    
     `actual@.Data`: NA
     `expected@.Data`: 0
    
     `actual`: NA
     `expected`: 0
     ── Error (test-spotratecurve.R:249:3): it should remove a spotratecurve element by its strict position ──
     Error in `validObject(.Object)`: invalid class "SpotRateCurve" object: FALSE
     Backtrace:
     ▆
     1. ├─testthat::expect_equal(curve[[-11]], curve[-2]) at test-spotratecurve.R:249:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─curve[[-11]]
     5. └─curve[[-11]]
     6. ├─fixedincome::spotratecurve(...)
     7. └─fixedincome:::spotratecurve.numeric(...)
     8. └─methods::new(...)
     9. ├─methods::initialize(value, ...)
     10. └─methods::initialize(value, ...)
     11. └─methods::validObject(.Object)
     ── Failure (test-spotratecurve.R:256:3): it should replace spotratecurve elements using its strict position ──
     as.numeric(curve[[11]]) (`actual`) not equal to 0.051 (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:260:3): it should replace spotratecurve elements using its strict position ──
     as.numeric(curve[[c(11, 26)]]) (`actual`) not equal to c(0.051, 0.052) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
    
     [ FAIL 24 | WARN 0 | SKIP 0 | PASS 283 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.0.3
Check: tests
Result: ERROR
     Running ‘testthat.R’
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(fixedincome)
     >
     > test_check("fixedincome")
     [ FAIL 24 | WARN 0 | SKIP 0 | PASS 283 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure (test-spotratecurve.R:99:3): it should index the elements ───────────
     as.numeric(curve[[11]]) (`actual`) not equal to 0.056 (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:102:3): it should index the elements ──────────
     as.numeric(curve[[c(1, 11)]]) (`actual`) not equal to c(0.0719, 0.056) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:111:3): it should return a NA spotrate for unexistent indexes ──
     as.numeric(curve[[c(10, 11)]]) (`actual`) not equal to c(NA, 0.056) (`expected`).
    
     `actual`: NA NA
     `expected`: NA 0
     ── Failure (test-spotratecurve.R:120:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[10]]) (`actual`) not equal to 0.051 (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:122:3): it should replace or insert elements into the curve ──
     match(10, curve@terms) (`actual`) not equal to 2 (`expected`).
    
     `actual`: NA
     `expected`: 2
     ── Failure (test-spotratecurve.R:125:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(8, 9)]]) (`actual`) not equal to c(0.048, 0.049) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:126:3): it should replace or insert elements into the curve ──
     match(c(8, 9), curve@terms) (`actual`) not equal to c(2, 3) (`expected`).
    
     `actual`: NA NA
     `expected`: 2 3
     ── Failure (test-spotratecurve.R:129:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(12, 13)]]) (`actual`) not equal to c(0.049, 0.049) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:133:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[11]]) (`actual`) not equal to 0.051 (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:134:3): it should replace or insert elements into the curve ──
     length(curve) (`actual`) not equal to `len_` (`expected`).
    
     `actual`: 11
     `expected`: 10
     ── Failure (test-spotratecurve.R:138:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(1, 11)]]) (`actual`) not equal to c(0.051, 0.051) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:139:3): it should replace or insert elements into the curve ──
     length(curve) (`actual`) not equal to `len_` (`expected`).
    
     `actual`: 13
     `expected`: 11
     ── Failure (test-spotratecurve.R:142:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(1, 11)]]) (`actual`) not equal to c(0.05, 0.05) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:143:3): it should replace or insert elements into the curve ──
     length(curve) (`actual`) not equal to `len_` (`expected`).
    
     `actual`: 15
     `expected`: 11
     ── Failure (test-spotratecurve.R:147:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(25, 26, 29)]]) (`actual`) not equal to c(0.07, 0.07, 0.07) (`expected`).
    
     `actual`: NA NA NA
     `expected`: 0 0 0
     ── Failure (test-spotratecurve.R:148:3): it should replace or insert elements into the curve ──
     length(curve) (`actual`) not equal to len_ + 2 (`expected`).
    
     `actual`: 18
     `expected`: 17
     ── Failure (test-spotratecurve.R:151:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(31, 28, 35)]]) (`actual`) not equal to c(0.072, 0.071, 0.073) (`expected`).
    
     `actual`: NA NA NA
     `expected`: 0 0 0
     ── Failure (test-spotratecurve.R:158:3): it should replace with another spotrate ──
     as.numeric(curve[[13]]) (`actual`) not equal to as.numeric(curve[1]) (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:179:3): it should insert a spotratecurve into another spotratecurve ──
     as.numeric(curve[[c(1, 3)]]) (`actual`) not equal to c(0.05, 0.5) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Error (test-spotratecurve.R:237:3): it should remove a term from spotrate curve by using negative index ──
     Error in `validObject(.Object)`: invalid class "SpotRateCurve" object: FALSE
     Backtrace:
     ▆
     1. ├─testthat::expect_equal(...) at test-spotratecurve.R:237:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─curve[[-11]]
     5. └─curve[[-11]]
     6. ├─fixedincome::spotratecurve(...)
     7. └─fixedincome:::spotratecurve.numeric(...)
     8. └─methods::new(...)
     9. ├─methods::initialize(value, ...)
     10. └─methods::initialize(value, ...)
     11. └─methods::validObject(.Object)
     ── Failure (test-spotratecurve.R:244:3): it should index spotratecurve by position ──
     curve[[11]] (`actual`) not equal to curve[2] (`expected`).
    
     `actual@.Data`: NA
     `expected@.Data`: 0
    
     `actual`: NA
     `expected`: 0
     ── Error (test-spotratecurve.R:249:3): it should remove a spotratecurve element by its strict position ──
     Error in `validObject(.Object)`: invalid class "SpotRateCurve" object: FALSE
     Backtrace:
     ▆
     1. ├─testthat::expect_equal(curve[[-11]], curve[-2]) at test-spotratecurve.R:249:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─curve[[-11]]
     5. └─curve[[-11]]
     6. ├─fixedincome::spotratecurve(...)
     7. └─fixedincome:::spotratecurve.numeric(...)
     8. └─methods::new(...)
     9. ├─methods::initialize(value, ...)
     10. └─methods::initialize(value, ...)
     11. └─methods::validObject(.Object)
     ── Failure (test-spotratecurve.R:256:3): it should replace spotratecurve elements using its strict position ──
     as.numeric(curve[[11]]) (`actual`) not equal to 0.051 (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:260:3): it should replace spotratecurve elements using its strict position ──
     as.numeric(curve[[c(11, 26)]]) (`actual`) not equal to c(0.051, 0.052) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
    
     [ FAIL 24 | WARN 0 | SKIP 0 | PASS 283 ]
     Error: Test failures
     Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.0.3
Check: re-building of vignette outputs
Result: ERROR
    Error(s) in re-building vignettes:
    --- re-building ‘spot-rate-curve-indexing.Rmd’ using rmarkdown
    Quitting from lines 134-135 (spot-rate-curve-indexing.Rmd)
    Error: processing vignette 'spot-rate-curve-indexing.Rmd' failed with diagnostics:
    invalid class "SpotRateCurve" object: FALSE
    --- failed re-building ‘spot-rate-curve-indexing.Rmd’
    
    --- re-building ‘spot-rate-curve-interpolation.Rmd’ using rmarkdown
    
    Attaching package: 'dplyr'
    
    The following objects are masked from 'package:fixedincome':
    
     first, last
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    --- finished re-building ‘spot-rate-curve-interpolation.Rmd’
    
    --- re-building ‘spot-rate-curve-plotting.Rmd’ using rmarkdown
    Quitting from lines 83-86 (spot-rate-curve-plotting.Rmd)
    Error: processing vignette 'spot-rate-curve-plotting.Rmd' failed with diagnostics:
    'to' must be a finite number
    --- failed re-building ‘spot-rate-curve-plotting.Rmd’
    
    SUMMARY: processing the following files failed:
     ‘spot-rate-curve-indexing.Rmd’ ‘spot-rate-curve-plotting.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64

Version: 0.0.3
Check: tests
Result: ERROR
     Running 'testthat.R' [10s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(fixedincome)
     >
     > test_check("fixedincome")
     [ FAIL 24 | WARN 0 | SKIP 0 | PASS 283 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure (test-spotratecurve.R:99:3): it should index the elements ───────────
     as.numeric(curve[[11]]) (`actual`) not equal to 0.056 (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:102:3): it should index the elements ──────────
     as.numeric(curve[[c(1, 11)]]) (`actual`) not equal to c(0.0719, 0.056) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:111:3): it should return a NA spotrate for unexistent indexes ──
     as.numeric(curve[[c(10, 11)]]) (`actual`) not equal to c(NA, 0.056) (`expected`).
    
     `actual`: NA NA
     `expected`: NA 0
     ── Failure (test-spotratecurve.R:120:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[10]]) (`actual`) not equal to 0.051 (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:122:3): it should replace or insert elements into the curve ──
     match(10, curve@terms) (`actual`) not equal to 2 (`expected`).
    
     `actual`: NA
     `expected`: 2
     ── Failure (test-spotratecurve.R:125:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(8, 9)]]) (`actual`) not equal to c(0.048, 0.049) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:126:3): it should replace or insert elements into the curve ──
     match(c(8, 9), curve@terms) (`actual`) not equal to c(2, 3) (`expected`).
    
     `actual`: NA NA
     `expected`: 2 3
     ── Failure (test-spotratecurve.R:129:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(12, 13)]]) (`actual`) not equal to c(0.049, 0.049) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:133:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[11]]) (`actual`) not equal to 0.051 (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:134:3): it should replace or insert elements into the curve ──
     length(curve) (`actual`) not equal to `len_` (`expected`).
    
     `actual`: 11
     `expected`: 10
     ── Failure (test-spotratecurve.R:138:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(1, 11)]]) (`actual`) not equal to c(0.051, 0.051) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:139:3): it should replace or insert elements into the curve ──
     length(curve) (`actual`) not equal to `len_` (`expected`).
    
     `actual`: 13
     `expected`: 11
     ── Failure (test-spotratecurve.R:142:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(1, 11)]]) (`actual`) not equal to c(0.05, 0.05) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Failure (test-spotratecurve.R:143:3): it should replace or insert elements into the curve ──
     length(curve) (`actual`) not equal to `len_` (`expected`).
    
     `actual`: 15
     `expected`: 11
     ── Failure (test-spotratecurve.R:147:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(25, 26, 29)]]) (`actual`) not equal to c(0.07, 0.07, 0.07) (`expected`).
    
     `actual`: NA NA NA
     `expected`: 0 0 0
     ── Failure (test-spotratecurve.R:148:3): it should replace or insert elements into the curve ──
     length(curve) (`actual`) not equal to len_ + 2 (`expected`).
    
     `actual`: 18
     `expected`: 17
     ── Failure (test-spotratecurve.R:151:3): it should replace or insert elements into the curve ──
     as.numeric(curve[[c(31, 28, 35)]]) (`actual`) not equal to c(0.072, 0.071, 0.073) (`expected`).
    
     `actual`: NA NA NA
     `expected`: 0 0 0
     ── Failure (test-spotratecurve.R:158:3): it should replace with another spotrate ──
     as.numeric(curve[[13]]) (`actual`) not equal to as.numeric(curve[1]) (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:179:3): it should insert a spotratecurve into another spotratecurve ──
     as.numeric(curve[[c(1, 3)]]) (`actual`) not equal to c(0.05, 0.5) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
     ── Error (test-spotratecurve.R:237:3): it should remove a term from spotrate curve by using negative index ──
     Error in `validObject(.Object)`: invalid class "SpotRateCurve" object: FALSE
     Backtrace:
     ▆
     1. ├─testthat::expect_equal(...) at test-spotratecurve.R:237:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─curve[[-11]]
     5. └─curve[[-11]]
     6. ├─fixedincome::spotratecurve(...)
     7. └─fixedincome:::spotratecurve.numeric(...)
     8. └─methods::new(...)
     9. ├─methods::initialize(value, ...)
     10. └─methods::initialize(value, ...)
     11. └─methods::validObject(.Object)
     ── Failure (test-spotratecurve.R:244:3): it should index spotratecurve by position ──
     curve[[11]] (`actual`) not equal to curve[2] (`expected`).
    
     `actual@.Data`: NA
     `expected@.Data`: 0
    
     `actual`: NA
     `expected`: 0
     ── Error (test-spotratecurve.R:249:3): it should remove a spotratecurve element by its strict position ──
     Error in `validObject(.Object)`: invalid class "SpotRateCurve" object: FALSE
     Backtrace:
     ▆
     1. ├─testthat::expect_equal(curve[[-11]], curve[-2]) at test-spotratecurve.R:249:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─curve[[-11]]
     5. └─curve[[-11]]
     6. ├─fixedincome::spotratecurve(...)
     7. └─fixedincome:::spotratecurve.numeric(...)
     8. └─methods::new(...)
     9. ├─methods::initialize(value, ...)
     10. └─methods::initialize(value, ...)
     11. └─methods::validObject(.Object)
     ── Failure (test-spotratecurve.R:256:3): it should replace spotratecurve elements using its strict position ──
     as.numeric(curve[[11]]) (`actual`) not equal to 0.051 (`expected`).
    
     `actual`: NA
     `expected`: 0
     ── Failure (test-spotratecurve.R:260:3): it should replace spotratecurve elements using its strict position ──
     as.numeric(curve[[c(11, 26)]]) (`actual`) not equal to c(0.051, 0.052) (`expected`).
    
     `actual`: NA NA
     `expected`: 0 0
    
     [ FAIL 24 | WARN 0 | SKIP 0 | PASS 283 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-windows-x86_64