Last updated on 2025-12-21 11:50:44 CET.
| Package | ERROR | OK |
|---|---|---|
| pricelevels | 4 | 9 |
Current CRAN status: ERROR: 4, OK: 9
Version: 1.4.0
Check: examples
Result: ERROR
Running examples in ‘pricelevels-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: bilateral.index
> ### Title: Bilateral price indices
> ### Aliases: bilateral.index bmw jevons carli dutot harmonic cswd laspeyres
> ### paasche fisher walsh toernqvist medgeworth theil svartia palgrave
> ### drobisch geolaspeyres geopaasche geowalsh geoyoung lowe young uvalue
> ### davies banerjee lehr
>
> ### ** Examples
>
> # sample complete price data:
> set.seed(123)
> dt1 <- rdata(R=3, B=1, N=5)
Error in `[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, :
attempt access index 9/9 in VECTOR_ELT
Calls: rdata -> [ -> [.data.table
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Version: 1.4.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [5s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # 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(pricelevels)
Attaching package: 'pricelevels'
The following object is masked from 'package:graphics':
pairs
>
> test_check("pricelevels")
Saving _problems/test-bilateral.index-12.R
Saving _problems/test-cpd-12.R
Saving _problems/test-geks-12.R
Saving _problems/test-gerardi-12.R
Saving _problems/test-gkhamis-12.R
Saving _problems/test-helper-25.R
Saving _problems/test-neighbors-9.R
Saving _problems/test-pricelevels-18.R
Saving _problems/test-ratios-11.R
Saving _problems/test-rdata-7.R
[ FAIL 10 | WARN 0 | SKIP 0 | PASS 42 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-bilateral.index.R:12:1'): (code run outside of `test_that()`) ──
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-bilateral.index.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-cpd.R:12:1'): (code run outside of `test_that()`) ──────────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-cpd.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-geks.R:12:1'): (code run outside of `test_that()`) ─────────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-geks.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-gerardi.R:12:1'): (code run outside of `test_that()`) ──────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-gerardi.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-gkhamis.R:12:1'): (code run outside of `test_that()`) ──────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-gkhamis.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-helper.r:25:1'): (code run outside of `test_that()`) ───────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 3, B = 1, N = 4, gaps = 0.1) at test-helper.r:25:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-neighbors.R:9:1'): (code run outside of `test_that()`) ─────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-neighbors.R:9:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-pricelevels.R:18:1'): (code run outside of `test_that()`) ──────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-pricelevels.R:18:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-ratios.R:11:1'): (code run outside of `test_that()`) ───────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 3, B = 1, N = 4) at test-ratios.R:11:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-rdata.R:7:1'): (code run outside of `test_that()`) ─────────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 6, B = 1, N = 15) at test-rdata.R:7:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
[ FAIL 10 | WARN 0 | SKIP 0 | PASS 42 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 1.4.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘pricelevels-intro.Rmd’ using rmarkdown
Warning in Sys.setlocale("LC_TIME", "English") :
OS reports request to set locale to "English" cannot be honored
Quitting from pricelevels-intro.Rmd:231-249 [unnamed-chunk-13]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 9/9 in VECTOR_ELT
---
Backtrace:
▆
1. └─pricelevels::rdata(...)
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'pricelevels-intro.Rmd' failed with diagnostics:
attempt access index 9/9 in VECTOR_ELT
--- failed re-building ‘pricelevels-intro.Rmd’
SUMMARY: processing the following file failed:
‘pricelevels-intro.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Version: 1.4.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # 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(pricelevels)
Attaching package: 'pricelevels'
The following object is masked from 'package:graphics':
pairs
>
> test_check("pricelevels")
Saving _problems/test-bilateral.index-12.R
Saving _problems/test-cpd-12.R
Saving _problems/test-geks-12.R
Saving _problems/test-gerardi-12.R
Saving _problems/test-gkhamis-12.R
Saving _problems/test-helper-25.R
Saving _problems/test-neighbors-9.R
Saving _problems/test-pricelevels-18.R
Saving _problems/test-ratios-11.R
Saving _problems/test-rdata-7.R
[ FAIL 10 | WARN 0 | SKIP 0 | PASS 42 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-bilateral.index.R:12:1'): (code run outside of `test_that()`) ──
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-bilateral.index.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-cpd.R:12:1'): (code run outside of `test_that()`) ──────────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-cpd.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-geks.R:12:1'): (code run outside of `test_that()`) ─────────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-geks.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-gerardi.R:12:1'): (code run outside of `test_that()`) ──────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-gerardi.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-gkhamis.R:12:1'): (code run outside of `test_that()`) ──────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-gkhamis.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-helper.r:25:1'): (code run outside of `test_that()`) ───────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 3, B = 1, N = 4, gaps = 0.1) at test-helper.r:25:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-neighbors.R:9:1'): (code run outside of `test_that()`) ─────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-neighbors.R:9:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-pricelevels.R:18:1'): (code run outside of `test_that()`) ──────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-pricelevels.R:18:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-ratios.R:11:1'): (code run outside of `test_that()`) ───────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 3, B = 1, N = 4) at test-ratios.R:11:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-rdata.R:7:1'): (code run outside of `test_that()`) ─────────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 6, B = 1, N = 15) at test-rdata.R:7:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
[ FAIL 10 | WARN 0 | SKIP 0 | PASS 42 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.4.0
Check: examples
Result: ERROR
Running examples in ‘pricelevels-Ex.R’ failed
The error most likely occurred in:
> ### Name: bilateral.index
> ### Title: Bilateral price indices
> ### Aliases: bilateral.index bmw jevons carli dutot harmonic cswd laspeyres
> ### paasche fisher walsh toernqvist medgeworth theil svartia palgrave
> ### drobisch geolaspeyres geopaasche geowalsh geoyoung lowe young uvalue
> ### davies banerjee lehr
>
> ### ** Examples
>
> # sample complete price data:
> set.seed(123)
> dt1 <- rdata(R=3, B=1, N=5)
Error in `[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, :
attempt access index 9/9 in VECTOR_ELT
Calls: rdata -> [ -> [.data.table
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 1.4.0
Check: tests
Result: ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # 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(pricelevels)
Attaching package: 'pricelevels'
The following object is masked from 'package:graphics':
pairs
>
> test_check("pricelevels")
Saving _problems/test-bilateral.index-12.R
Saving _problems/test-cpd-12.R
Saving _problems/test-geks-12.R
Saving _problems/test-gerardi-12.R
Saving _problems/test-gkhamis-12.R
Saving _problems/test-helper-25.R
Saving _problems/test-neighbors-9.R
Saving _problems/test-pricelevels-18.R
Saving _problems/test-ratios-11.R
Saving _problems/test-rdata-7.R
[ FAIL 10 | WARN 0 | SKIP 0 | PASS 42 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-bilateral.index.R:12:1'): (code run outside of `test_that()`) ──
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-bilateral.index.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-cpd.R:12:1'): (code run outside of `test_that()`) ──────────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-cpd.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-geks.R:12:1'): (code run outside of `test_that()`) ─────────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-geks.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-gerardi.R:12:1'): (code run outside of `test_that()`) ──────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-gerardi.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-gkhamis.R:12:1'): (code run outside of `test_that()`) ──────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-gkhamis.R:12:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-helper.r:25:1'): (code run outside of `test_that()`) ───────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 3, B = 1, N = 4, gaps = 0.1) at test-helper.r:25:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-neighbors.R:9:1'): (code run outside of `test_that()`) ─────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-neighbors.R:9:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-pricelevels.R:18:1'): (code run outside of `test_that()`) ──────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 1, B = 1, N = 4) at test-pricelevels.R:18:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-ratios.R:11:1'): (code run outside of `test_that()`) ───────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 3, B = 1, N = 4) at test-ratios.R:11:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-rdata.R:7:1'): (code run outside of `test_that()`) ─────────────
Error in ``[.data.table`(dt, , `:=`("prod_share", as.numeric(sample(x = 1:3, size = .N, replace = TRUE))), by = c("region", "group"))`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─pricelevels::rdata(R = 6, B = 1, N = 15) at test-rdata.R:7:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
[ FAIL 10 | WARN 0 | SKIP 0 | PASS 42 ]
Error:
! Test failures.
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 1.4.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building ‘pricelevels-intro.Rmd’ using rmarkdown
Warning in Sys.setlocale("LC_TIME", "English") :
OS reports request to set locale to "English" cannot be honoured
Quitting from pricelevels-intro.Rmd:231-249 [unnamed-chunk-13]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 9/9 in VECTOR_ELT
---
Backtrace:
▆
1. └─pricelevels::rdata(...)
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'pricelevels-intro.Rmd' failed with diagnostics:
attempt access index 9/9 in VECTOR_ELT
--- failed re-building ‘pricelevels-intro.Rmd’
SUMMARY: processing the following file failed:
‘pricelevels-intro.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc