Last updated on 2025-12-20 11:50:39 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.0.17 | 119.51 | 97.92 | 217.43 | ERROR | |
| r-devel-linux-x86_64-debian-gcc | 0.0.17 | 82.89 | 67.93 | 150.82 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 0.0.17 | 244.00 | 159.10 | 403.10 | ERROR | |
| r-devel-linux-x86_64-fedora-gcc | 0.0.17 | 241.00 | 157.46 | 398.46 | ERROR | |
| r-devel-windows-x86_64 | 0.0.17 | 142.00 | 169.00 | 311.00 | OK | |
| r-patched-linux-x86_64 | 0.0.17 | 129.25 | 114.51 | 243.76 | OK | |
| r-release-linux-x86_64 | 0.0.17 | 126.42 | 116.12 | 242.54 | OK | |
| r-release-macos-arm64 | 0.0.17 | OK | ||||
| r-release-macos-x86_64 | 0.0.17 | 93.00 | 198.00 | 291.00 | OK | |
| r-release-windows-x86_64 | 0.0.17 | 139.00 | 161.00 | 300.00 | OK | |
| r-oldrel-macos-arm64 | 0.0.17 | NOTE | ||||
| r-oldrel-macos-x86_64 | 0.0.17 | 95.00 | 219.00 | 314.00 | NOTE | |
| r-oldrel-windows-x86_64 | 0.0.17 | 168.00 | 207.00 | 375.00 | OK |
Version: 0.0.17
Check: examples
Result: ERROR
Running examples in ‘smoothemplik-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: DCV
> ### Title: Density cross-validation
> ### Aliases: DCV
>
> ### ** Examples
>
> set.seed(1)
> x <- rlnorm(100); x <- c(x[1], x) # x with 1 duplicate
> bws <- exp(seq(-3, 0.5, 0.1))
> plot(bws, DCV(x, bws), log = "x", bty = "n", main = "Density CV")
Error in `[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)) :
attempt access index 1/1 in VECTOR_ELT
Calls: plot ... DCV -> prepareKernel -> .deduplicate -> [ -> [.data.table
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Version: 0.0.17
Check: tests
Result: ERROR
Running ‘testthat.R’ [8s/10s]
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(smoothemplik)
Smoothed Empirical Likelihood version 0.0.17 (2025-10-28).
Package under active development; core functions subject to change.
>
> test_check("smoothemplik")
Saving _problems/test-DCV-11.R
Saving _problems/test-bw.CV-12.R
Saving _problems/test-bw.CV-24.R
Timing stopped at: 0.034 0 0.034
Saving _problems/test-bw.CV-42.R
Saving _problems/test-kernelDiscreteDensitySmooth-8.R
Saving _problems/test-kernelMixed-12.R
Saving _problems/test-kernelSmooth-2.R
Saving _problems/test-kernelSmooth-40.R
Saving _problems/test-prepareKernel-19.R
[ FAIL 9 | WARN 0 | SKIP 1 | PASS 231 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• empty test (1):
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-DCV.R:11:3'): DCV works for density cross-validation ───────────
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_true(...) at test-DCV.R:11:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::suppressMessages(DCV(x, bw = bw.grid, weights = w))
5. │ └─base::withCallingHandlers(...)
6. └─smoothemplik::DCV(x, bw = bw.grid, weights = w)
7. └─smoothemplik::prepareKernel(...)
8. └─smoothemplik:::.deduplicate(xy)
9. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
10. └─data.table:::`[.data.table`(...)
── Error ('test-bw.CV.R:12:3'): LSCV works for least-squares cross-validation ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::LSCV(x, y = y, bw = bw.grid, weights = w) at test-bw.CV.R:12:3
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-bw.CV.R:23:3'): LSCV handles multivariate inputs with unique and distinct bws, finding an improvement ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. ├─base::system.time(...) at test-bw.CV.R:23:3
2. ├─testthat::expect_true(...)
3. │ └─testthat::quasi_label(enquo(object), label)
4. │ └─rlang::eval_bare(expr, quo_get_env(quo))
5. ├─base::suppressWarnings(...)
6. │ └─base::withCallingHandlers(...)
7. └─smoothemplik::bw.CV(...)
8. └─smoothemplik::prepareKernel(...)
9. └─smoothemplik:::.deduplicate(xy)
10. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
11. └─data.table:::`[.data.table`(...)
── Error ('test-bw.CV.R:42:3'): bw.CV de-duplicates correctly and minimises the CV criterion ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::LSCV(x, y, bw.grid, weights = w) at test-bw.CV.R:42:3
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-kernelDiscreteDensitySmooth.R:8:3'): kernelDiscreteDensitySmooth works ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::prepareKernel(x = x2, y = y, bw = 1) at test-kernelDiscreteDensitySmooth.R:8:3
2. └─smoothemplik:::.deduplicate(xy)
3. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-kernelMixed.R:11:3'): kernelMixedSmooth and kernelMixedDensity de-duplicate correctly ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::kernelMixedDensity(...) at test-kernelMixed.R:11:3
2. └─smoothemplik:::.kernelMixed(...)
3. └─smoothemplik::prepareKernel(...)
4. └─smoothemplik:::.deduplicate(xy)
5. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
6. └─data.table:::`[.data.table`(...)
── Error ('test-kernelSmooth.R:2:3'): kernelSmooth correctly handles bad inputs ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_error(kernelSmooth(c(1:9, NA), 1:10), "finite numeric values only") at test-kernelSmooth.R:2: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. └─smoothemplik::kernelSmooth(c(1:9, NA), 1:10)
8. └─smoothemplik::prepareKernel(...)
9. └─smoothemplik:::.deduplicate(xy)
10. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
11. └─data.table:::`[.data.table`(...)
── Error ('test-kernelSmooth.R:40:3'): de-duplication works in kernelSmooth ────
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::kernelSmooth(...) at test-kernelSmooth.R:40:3
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-prepareKernel.R:19:3'): de-duplication in kernel preparation works correctly ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::prepareKernel(x, y, xout, w, bw = 0.5) at test-prepareKernel.R:19:3
2. └─smoothemplik:::.deduplicate(xy)
3. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
4. └─data.table:::`[.data.table`(...)
[ FAIL 9 | WARN 0 | SKIP 1 | PASS 231 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.0.17
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘choice-of-SEL-weights.Rmd’ using rmarkdown
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Quitting from choice-of-SEL-weights.Rmd:138-150 [unnamed-chunk-4]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 2/2 in VECTOR_ELT
---
Backtrace:
▆
1. └─smoothemplik::kernelSmooth(...)
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'choice-of-SEL-weights.Rmd' failed with diagnostics:
attempt access index 2/2 in VECTOR_ELT
--- failed re-building ‘choice-of-SEL-weights.Rmd’
--- re-building ‘non-parametric-rcpp.Rmd’ using rmarkdown
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Quitting from non-parametric-rcpp.Rmd:197-206 [unnamed-chunk-7]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 1/1 in VECTOR_ELT
---
Backtrace:
▆
1. ├─global clock(kernelDensity(X, xout = xg, bw = b))
2. └─smoothemplik::kernelDensity(X, xout = xg, bw = b)
3. └─smoothemplik::prepareKernel(...)
4. └─smoothemplik:::.deduplicate(xy)
5. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
6. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'non-parametric-rcpp.Rmd' failed with diagnostics:
attempt access index 1/1 in VECTOR_ELT
--- failed re-building ‘non-parametric-rcpp.Rmd’
SUMMARY: processing the following files failed:
‘choice-of-SEL-weights.Rmd’ ‘non-parametric-rcpp.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.17
Check: tests
Result: ERROR
Running ‘testthat.R’ [5s/6s]
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(smoothemplik)
Smoothed Empirical Likelihood version 0.0.17 (2025-10-28).
Package under active development; core functions subject to change.
>
> test_check("smoothemplik")
Saving _problems/test-DCV-11.R
Saving _problems/test-bw.CV-12.R
Saving _problems/test-bw.CV-24.R
Timing stopped at: 0.022 0 0.021
Saving _problems/test-bw.CV-42.R
Saving _problems/test-kernelDiscreteDensitySmooth-8.R
Saving _problems/test-kernelMixed-12.R
Saving _problems/test-kernelSmooth-2.R
Saving _problems/test-kernelSmooth-40.R
Saving _problems/test-prepareKernel-19.R
[ FAIL 9 | WARN 0 | SKIP 1 | PASS 231 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• empty test (1):
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-DCV.R:11:3'): DCV works for density cross-validation ───────────
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_true(...) at test-DCV.R:11:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::suppressMessages(DCV(x, bw = bw.grid, weights = w))
5. │ └─base::withCallingHandlers(...)
6. └─smoothemplik::DCV(x, bw = bw.grid, weights = w)
7. └─smoothemplik::prepareKernel(...)
8. └─smoothemplik:::.deduplicate(xy)
9. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
10. └─data.table:::`[.data.table`(...)
── Error ('test-bw.CV.R:12:3'): LSCV works for least-squares cross-validation ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::LSCV(x, y = y, bw = bw.grid, weights = w) at test-bw.CV.R:12:3
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-bw.CV.R:23:3'): LSCV handles multivariate inputs with unique and distinct bws, finding an improvement ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. ├─base::system.time(...) at test-bw.CV.R:23:3
2. ├─testthat::expect_true(...)
3. │ └─testthat::quasi_label(enquo(object), label)
4. │ └─rlang::eval_bare(expr, quo_get_env(quo))
5. ├─base::suppressWarnings(...)
6. │ └─base::withCallingHandlers(...)
7. └─smoothemplik::bw.CV(...)
8. └─smoothemplik::prepareKernel(...)
9. └─smoothemplik:::.deduplicate(xy)
10. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
11. └─data.table:::`[.data.table`(...)
── Error ('test-bw.CV.R:42:3'): bw.CV de-duplicates correctly and minimises the CV criterion ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::LSCV(x, y, bw.grid, weights = w) at test-bw.CV.R:42:3
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-kernelDiscreteDensitySmooth.R:8:3'): kernelDiscreteDensitySmooth works ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::prepareKernel(x = x2, y = y, bw = 1) at test-kernelDiscreteDensitySmooth.R:8:3
2. └─smoothemplik:::.deduplicate(xy)
3. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-kernelMixed.R:11:3'): kernelMixedSmooth and kernelMixedDensity de-duplicate correctly ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::kernelMixedDensity(...) at test-kernelMixed.R:11:3
2. └─smoothemplik:::.kernelMixed(...)
3. └─smoothemplik::prepareKernel(...)
4. └─smoothemplik:::.deduplicate(xy)
5. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
6. └─data.table:::`[.data.table`(...)
── Error ('test-kernelSmooth.R:2:3'): kernelSmooth correctly handles bad inputs ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_error(kernelSmooth(c(1:9, NA), 1:10), "finite numeric values only") at test-kernelSmooth.R:2: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. └─smoothemplik::kernelSmooth(c(1:9, NA), 1:10)
8. └─smoothemplik::prepareKernel(...)
9. └─smoothemplik:::.deduplicate(xy)
10. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
11. └─data.table:::`[.data.table`(...)
── Error ('test-kernelSmooth.R:40:3'): de-duplication works in kernelSmooth ────
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::kernelSmooth(...) at test-kernelSmooth.R:40:3
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-prepareKernel.R:19:3'): de-duplication in kernel preparation works correctly ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::prepareKernel(x, y, xout, w, bw = 0.5) at test-prepareKernel.R:19:3
2. └─smoothemplik:::.deduplicate(xy)
3. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
4. └─data.table:::`[.data.table`(...)
[ FAIL 9 | WARN 0 | SKIP 1 | PASS 231 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.0.17
Check: examples
Result: ERROR
Running examples in ‘smoothemplik-Ex.R’ failed
The error most likely occurred in:
> ### Name: DCV
> ### Title: Density cross-validation
> ### Aliases: DCV
>
> ### ** Examples
>
> set.seed(1)
> x <- rlnorm(100); x <- c(x[1], x) # x with 1 duplicate
> bws <- exp(seq(-3, 0.5, 0.1))
> plot(bws, DCV(x, bws), log = "x", bty = "n", main = "Density CV")
Error in `[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)) :
attempt access index 1/1 in VECTOR_ELT
Calls: plot ... DCV -> prepareKernel -> .deduplicate -> [ -> [.data.table
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.0.17
Check: tests
Result: ERROR
Running ‘testthat.R’ [14s/26s]
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(smoothemplik)
Smoothed Empirical Likelihood version 0.0.17 (2025-10-28).
Package under active development; core functions subject to change.
>
> test_check("smoothemplik")
Saving _problems/test-DCV-11.R
Saving _problems/test-bw.CV-12.R
Saving _problems/test-bw.CV-24.R
Timing stopped at: 0.057 0.001 0.119
Saving _problems/test-bw.CV-42.R
Saving _problems/test-kernelDiscreteDensitySmooth-8.R
Saving _problems/test-kernelMixed-12.R
Saving _problems/test-kernelSmooth-2.R
Saving _problems/test-kernelSmooth-40.R
Saving _problems/test-prepareKernel-19.R
[ FAIL 9 | WARN 0 | SKIP 1 | PASS 231 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• empty test (1):
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-DCV.R:11:3'): DCV works for density cross-validation ───────────
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_true(...) at test-DCV.R:11:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::suppressMessages(DCV(x, bw = bw.grid, weights = w))
5. │ └─base::withCallingHandlers(...)
6. └─smoothemplik::DCV(x, bw = bw.grid, weights = w)
7. └─smoothemplik::prepareKernel(...)
8. └─smoothemplik:::.deduplicate(xy)
9. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
10. └─data.table:::`[.data.table`(...)
── Error ('test-bw.CV.R:12:3'): LSCV works for least-squares cross-validation ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::LSCV(x, y = y, bw = bw.grid, weights = w) at test-bw.CV.R:12:3
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-bw.CV.R:23:3'): LSCV handles multivariate inputs with unique and distinct bws, finding an improvement ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. ├─base::system.time(...) at test-bw.CV.R:23:3
2. ├─testthat::expect_true(...)
3. │ └─testthat::quasi_label(enquo(object), label)
4. │ └─rlang::eval_bare(expr, quo_get_env(quo))
5. ├─base::suppressWarnings(...)
6. │ └─base::withCallingHandlers(...)
7. └─smoothemplik::bw.CV(...)
8. └─smoothemplik::prepareKernel(...)
9. └─smoothemplik:::.deduplicate(xy)
10. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
11. └─data.table:::`[.data.table`(...)
── Error ('test-bw.CV.R:42:3'): bw.CV de-duplicates correctly and minimises the CV criterion ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::LSCV(x, y, bw.grid, weights = w) at test-bw.CV.R:42:3
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-kernelDiscreteDensitySmooth.R:8:3'): kernelDiscreteDensitySmooth works ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::prepareKernel(x = x2, y = y, bw = 1) at test-kernelDiscreteDensitySmooth.R:8:3
2. └─smoothemplik:::.deduplicate(xy)
3. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-kernelMixed.R:11:3'): kernelMixedSmooth and kernelMixedDensity de-duplicate correctly ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::kernelMixedDensity(...) at test-kernelMixed.R:11:3
2. └─smoothemplik:::.kernelMixed(...)
3. └─smoothemplik::prepareKernel(...)
4. └─smoothemplik:::.deduplicate(xy)
5. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
6. └─data.table:::`[.data.table`(...)
── Error ('test-kernelSmooth.R:2:3'): kernelSmooth correctly handles bad inputs ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_error(kernelSmooth(c(1:9, NA), 1:10), "finite numeric values only") at test-kernelSmooth.R:2: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. └─smoothemplik::kernelSmooth(c(1:9, NA), 1:10)
8. └─smoothemplik::prepareKernel(...)
9. └─smoothemplik:::.deduplicate(xy)
10. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
11. └─data.table:::`[.data.table`(...)
── Error ('test-kernelSmooth.R:40:3'): de-duplication works in kernelSmooth ────
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::kernelSmooth(...) at test-kernelSmooth.R:40:3
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-prepareKernel.R:19:3'): de-duplication in kernel preparation works correctly ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::prepareKernel(x, y, xout, w, bw = 0.5) at test-prepareKernel.R:19:3
2. └─smoothemplik:::.deduplicate(xy)
3. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
4. └─data.table:::`[.data.table`(...)
[ FAIL 9 | WARN 0 | SKIP 1 | PASS 231 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.0.17
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building ‘choice-of-SEL-weights.Rmd’ using rmarkdown
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Quitting from choice-of-SEL-weights.Rmd:138-150 [unnamed-chunk-4]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 2/2 in VECTOR_ELT
---
Backtrace:
▆
1. └─smoothemplik::kernelSmooth(...)
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'choice-of-SEL-weights.Rmd' failed with diagnostics:
attempt access index 2/2 in VECTOR_ELT
--- failed re-building ‘choice-of-SEL-weights.Rmd’
--- re-building ‘non-parametric-rcpp.Rmd’ using rmarkdown
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Warning in hook_png(..., cmd = "pngquant", post_process = function(x) { :
cannot find pngquant; please install and put it in PATH
Quitting from non-parametric-rcpp.Rmd:197-206 [unnamed-chunk-7]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 1/1 in VECTOR_ELT
---
Backtrace:
▆
1. ├─global clock(kernelDensity(X, xout = xg, bw = b))
2. └─smoothemplik::kernelDensity(X, xout = xg, bw = b)
3. └─smoothemplik::prepareKernel(...)
4. └─smoothemplik:::.deduplicate(xy)
5. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
6. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'non-parametric-rcpp.Rmd' failed with diagnostics:
attempt access index 1/1 in VECTOR_ELT
--- failed re-building ‘non-parametric-rcpp.Rmd’
SUMMARY: processing the following files failed:
‘choice-of-SEL-weights.Rmd’ ‘non-parametric-rcpp.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.0.17
Check: tests
Result: ERROR
Running ‘testthat.R’ [12s/14s]
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(smoothemplik)
Smoothed Empirical Likelihood version 0.0.17 (2025-10-28).
Package under active development; core functions subject to change.
>
> test_check("smoothemplik")
Saving _problems/test-DCV-11.R
Saving _problems/test-bw.CV-12.R
Saving _problems/test-bw.CV-24.R
Timing stopped at: 0.048 0 0.052
Saving _problems/test-bw.CV-42.R
Saving _problems/test-kernelDiscreteDensitySmooth-8.R
Saving _problems/test-kernelMixed-12.R
Saving _problems/test-kernelSmooth-2.R
Saving _problems/test-kernelSmooth-40.R
Saving _problems/test-prepareKernel-19.R
[ FAIL 9 | WARN 0 | SKIP 1 | PASS 231 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• empty test (1):
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-DCV.R:11:3'): DCV works for density cross-validation ───────────
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_true(...) at test-DCV.R:11:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::suppressMessages(DCV(x, bw = bw.grid, weights = w))
5. │ └─base::withCallingHandlers(...)
6. └─smoothemplik::DCV(x, bw = bw.grid, weights = w)
7. └─smoothemplik::prepareKernel(...)
8. └─smoothemplik:::.deduplicate(xy)
9. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
10. └─data.table:::`[.data.table`(...)
── Error ('test-bw.CV.R:12:3'): LSCV works for least-squares cross-validation ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::LSCV(x, y = y, bw = bw.grid, weights = w) at test-bw.CV.R:12:3
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-bw.CV.R:23:3'): LSCV handles multivariate inputs with unique and distinct bws, finding an improvement ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. ├─base::system.time(...) at test-bw.CV.R:23:3
2. ├─testthat::expect_true(...)
3. │ └─testthat::quasi_label(enquo(object), label)
4. │ └─rlang::eval_bare(expr, quo_get_env(quo))
5. ├─base::suppressWarnings(...)
6. │ └─base::withCallingHandlers(...)
7. └─smoothemplik::bw.CV(...)
8. └─smoothemplik::prepareKernel(...)
9. └─smoothemplik:::.deduplicate(xy)
10. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
11. └─data.table:::`[.data.table`(...)
── Error ('test-bw.CV.R:42:3'): bw.CV de-duplicates correctly and minimises the CV criterion ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::LSCV(x, y, bw.grid, weights = w) at test-bw.CV.R:42:3
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-kernelDiscreteDensitySmooth.R:8:3'): kernelDiscreteDensitySmooth works ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::prepareKernel(x = x2, y = y, bw = 1) at test-kernelDiscreteDensitySmooth.R:8:3
2. └─smoothemplik:::.deduplicate(xy)
3. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-kernelMixed.R:11:3'): kernelMixedSmooth and kernelMixedDensity de-duplicate correctly ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::kernelMixedDensity(...) at test-kernelMixed.R:11:3
2. └─smoothemplik:::.kernelMixed(...)
3. └─smoothemplik::prepareKernel(...)
4. └─smoothemplik:::.deduplicate(xy)
5. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
6. └─data.table:::`[.data.table`(...)
── Error ('test-kernelSmooth.R:2:3'): kernelSmooth correctly handles bad inputs ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_error(kernelSmooth(c(1:9, NA), 1:10), "finite numeric values only") at test-kernelSmooth.R:2: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. └─smoothemplik::kernelSmooth(c(1:9, NA), 1:10)
8. └─smoothemplik::prepareKernel(...)
9. └─smoothemplik:::.deduplicate(xy)
10. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
11. └─data.table:::`[.data.table`(...)
── Error ('test-kernelSmooth.R:40:3'): de-duplication works in kernelSmooth ────
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::kernelSmooth(...) at test-kernelSmooth.R:40:3
2. └─smoothemplik::prepareKernel(...)
3. └─smoothemplik:::.deduplicate(xy)
4. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
5. └─data.table:::`[.data.table`(...)
── Error ('test-prepareKernel.R:19:3'): de-duplication in kernel preparation works correctly ──
Error in ``[.data.table`(x, , `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─smoothemplik::prepareKernel(x, y, xout, w, bw = 0.5) at test-prepareKernel.R:19:3
2. └─smoothemplik:::.deduplicate(xy)
3. ├─x[, `:=`(`(id)` = .GRP, `(count)` = .N), by = names(x)]
4. └─data.table:::`[.data.table`(...)
[ FAIL 9 | WARN 0 | SKIP 1 | PASS 231 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.0.17
Check: installed package size
Result: NOTE
installed size is 12.4Mb
sub-directories of 1Mb or more:
libs 11.7Mb
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64