Last updated on 2025-12-21 11:50:32 CET.
| Package | ERROR | NOTE | OK |
|---|---|---|---|
| akc | 13 | ||
| siie | 10 | 3 | |
| tidyfst | 4 | 9 | |
| tidyft | 4 | 9 |
Current CRAN status: OK: 13
Current CRAN status: NOTE: 10, OK: 3
Version: 0.4.0
Check: DESCRIPTION meta-information
Result: NOTE
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘p_sie.R’ ‘prp.R’ ‘siie.R’
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
Current CRAN status: ERROR: 4, OK: 9
Version: 1.8.3
Check: examples
Result: ERROR
Running examples in ‘tidyfst-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: bind_tf_idf_dt
> ### Title: Compute TF–IDF Using data.table with Optional Counting and
> ### Grouping
> ### Aliases: bind_tf_idf_dt
>
> ### ** Examples
>
>
> # With groups
> df <- data.frame(
+ category = rep(c("A","B"), each = 6),
+ doc_id = rep(c("d1","d2","d3"), times = 4),
+ word = c("apple","banana","apple","banana","cherry","apple",
+ "dog","cat","dog","mouse","cat","dog"),
+ stringsAsFactors = FALSE
+ )
> result <- bind_tf_idf_dt(df, "category", "doc_id", "word")
Error in `[.data.table`(dt_counts, , `:=`(tf, n/sum(n)), by = c(grp, doc_col)) :
attempt access index 4/4 in VECTOR_ELT
Calls: bind_tf_idf_dt -> [ -> [.data.table
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Version: 1.8.3
Check: tests
Result: ERROR
Running ‘testthat.R’ [5s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(tidyfst)
Thank you for using tidyfst!
To acknowledge our work, please cite the package:
Huang et al., (2020). tidyfst: Tidy Verbs for Fast Data Manipulation. Journal of Open Source Software, 5(52), 2388, https://doi.org/10.21105/joss.02388
Attaching package: 'tidyfst'
The following object is masked from 'package:base':
%notin%
>
> test_check("tidyfst")
Saving _problems/test-count_dt-34.R
Saving _problems/test-mutate_dt-13.R
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 169 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-count_dt.R:31:3'): add_count ───────────────────────────────────
Error in ``[.data.table`(dt, , `:=`((.name), .N), by = dot_string)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-count_dt.R:31:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─iris %>% add_count_dt(Species)
5. └─tidyfst::add_count_dt(., Species)
6. ├─dt[, `:=`((.name), .N), by = dot_string]
7. └─data.table:::`[.data.table`(dt, , `:=`((.name), .N), by = dot_string)
── Error ('test-mutate_dt.R:10:3'): mutate and transmute ───────────────────────
Error in ``[.data.table`(structure(list(Sepal.Length = c(5.1, 4.9, 4.7, 4.6, 5, 5.4, 4.6, 5, 4.4, 4.9, 5.4, 4.8, 4.8, 4.3, 5.8, 5.7, 5.4, 5.1, 5.7, 5.1, 5.4, 5.1, 4.6, 5.1, 4.8, 5, 5, 5.2, 5.2, 4.7, 4.8, 5.4, 5.2, 5.5, 4.9, 5, 5.5, 4.9, 4.4, 5.1, 5, 4.5, 4.4, 5, 5.1, 4.8, 5.1, 4.6, 5.3, 5, 7, 6.4, 6.9, 5.5, 6.5, 5.7, 6.3, 4.9, 6.6, 5.2, 5, 5.9, 6, 6.1, 5.6, 6.7, 5.6, 5.8, 6.2, 5.6, 5.9, 6.1, 6.3, 6.1, 6.4, 6.6, 6.8, 6.7, 6, 5.7, 5.5, 5.5, 5.8, 6, 5.4, 6, 6.7, 6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, 3L, 3L), levels = c("setosa", "versicolor", "virginica"), class = "factor")), row.names = c(NA, -150L), class = c("data.table", "data.frame"), .internal.selfref = <pointer: 0x559fe1b22fe0>), , `:=`(id = 1:.N, grp = .GRP), Species)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-mutate_dt.R:10:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─iris %>% mutate_dt(id = 1:.N, grp = .GRP, by = Species)
5. └─tidyfst::mutate_dt(., id = 1:.N, grp = .GRP, by = Species)
6. └─base::eval.parent(substitute(dt[, `:=`(...), by][]), 1)
7. └─base::eval(expr, p)
8. └─base::eval(expr, p)
9. ├─`<dt[,5]>`[, `:=`(id = 1:.N, grp = .GRP), Species]
10. └─data.table:::`[.data.table`(...)
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 169 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 1.8.3
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘benchmark.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘benchmark.Rmd’
--- re-building ‘chinese_tutorial.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘chinese_tutorial.Rmd’
--- re-building ‘english_tutorial.Rmd’ using rmarkdown
Quitting from english_tutorial.Rmd:149-198 [unnamed-chunk-6]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 4/4 in VECTOR_ELT
---
Backtrace:
▆
1. └─tidyfst::add_count_dt(DF, V1)
2. ├─dt[, `:=`((.name), .N), by = dot_string]
3. └─data.table:::`[.data.table`(dt, , `:=`((.name), .N), by = dot_string)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'english_tutorial.Rmd' failed with diagnostics:
attempt access index 4/4 in VECTOR_ELT
--- failed re-building ‘english_tutorial.Rmd’
--- re-building ‘example1_intro.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘example1_intro.Rmd’
--- re-building ‘example2_join.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘example2_join.Rmd’
--- re-building ‘example3_reshape.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘example3_reshape.Rmd’
--- re-building ‘example4_nest.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘example4_nest.Rmd’
--- re-building ‘example5_fst.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘example5_fst.Rmd’
--- re-building ‘example6_dt.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘example6_dt.Rmd’
SUMMARY: processing the following file failed:
‘english_tutorial.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.8.3
Check: tests
Result: ERROR
Running ‘testthat.R’ [3s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(tidyfst)
Thank you for using tidyfst!
To acknowledge our work, please cite the package:
Huang et al., (2020). tidyfst: Tidy Verbs for Fast Data Manipulation. Journal of Open Source Software, 5(52), 2388, https://doi.org/10.21105/joss.02388
Attaching package: 'tidyfst'
The following object is masked from 'package:base':
%notin%
>
> test_check("tidyfst")
Saving _problems/test-count_dt-34.R
Saving _problems/test-mutate_dt-13.R
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 169 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-count_dt.R:31:3'): add_count ───────────────────────────────────
Error in ``[.data.table`(dt, , `:=`((.name), .N), by = dot_string)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-count_dt.R:31:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─iris %>% add_count_dt(Species)
5. └─tidyfst::add_count_dt(., Species)
6. ├─dt[, `:=`((.name), .N), by = dot_string]
7. └─data.table:::`[.data.table`(dt, , `:=`((.name), .N), by = dot_string)
── Error ('test-mutate_dt.R:10:3'): mutate and transmute ───────────────────────
Error in ``[.data.table`(structure(list(Sepal.Length = c(5.1, 4.9, 4.7, 4.6, 5, 5.4, 4.6, 5, 4.4, 4.9, 5.4, 4.8, 4.8, 4.3, 5.8, 5.7, 5.4, 5.1, 5.7, 5.1, 5.4, 5.1, 4.6, 5.1, 4.8, 5, 5, 5.2, 5.2, 4.7, 4.8, 5.4, 5.2, 5.5, 4.9, 5, 5.5, 4.9, 4.4, 5.1, 5, 4.5, 4.4, 5, 5.1, 4.8, 5.1, 4.6, 5.3, 5, 7, 6.4, 6.9, 5.5, 6.5, 5.7, 6.3, 4.9, 6.6, 5.2, 5, 5.9, 6, 6.1, 5.6, 6.7, 5.6, 5.8, 6.2, 5.6, 5.9, 6.1, 6.3, 6.1, 6.4, 6.6, 6.8, 6.7, 6, 5.7, 5.5, 5.5, 5.8, 6, 5.4, 6, 6.7, 6.3, 5.6, 5.5, 5.5, 6.1, 5.8, 5, 5.6, 5.7, 5.7, 6.2, 5.1, 5.7, 6.3, 5.8, 7.1, 6.3, 6.5, 7.6, 4.9, 7.3, 6.7, 7.2, 6.5, 6.4, 6.8, 5.7, 5.8, 6.4, 6.5, 7.7, 7.7, 6, 6.9, 5.6, 7.7, 6.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, 1.1, 1.3, 2.5, 1.9, 2.1, 1.8, 2.2, 2.1, 1.7, 1.8, 1.8, 2.5, 2, 1.9, 2.1, 2, 2.4, 2.3, 1.8, 2.2, 2.3, 1.5, 2.3, 2, 2, 1.8, 2.1, 1.8, 1.8, 1.8, 2.1, 1.6, 1.9, 2, 2.2, 1.5, 1.4, 2.3, 2.4, 1.8, 1.8, 2.1, 2.4, 2.3, 1.9, 2.3, 2.5, 2.3, 1.9, 2, 2.3, 1.8), Species = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L), levels = c("setosa", "versicolor", "virginica"), class = "factor")), row.names = c(NA, -150L), class = c("data.table", "data.frame"), .internal.selfref = <pointer: 0x55fe848ec070>), , `:=`(id = 1:.N, grp = .GRP), Species)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-mutate_dt.R:10:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─iris %>% mutate_dt(id = 1:.N, grp = .GRP, by = Species)
5. └─tidyfst::mutate_dt(., id = 1:.N, grp = .GRP, by = Species)
6. └─base::eval.parent(substitute(dt[, `:=`(...), by][]), 1)
7. └─base::eval(expr, p)
8. └─base::eval(expr, p)
9. ├─`<dt[,5]>`[, `:=`(id = 1:.N, grp = .GRP), Species]
10. └─data.table:::`[.data.table`(...)
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 169 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.8.3
Check: examples
Result: ERROR
Running examples in ‘tidyfst-Ex.R’ failed
The error most likely occurred in:
> ### Name: bind_tf_idf_dt
> ### Title: Compute TF–IDF Using data.table with Optional Counting and
> ### Grouping
> ### Aliases: bind_tf_idf_dt
>
> ### ** Examples
>
>
> # With groups
> df <- data.frame(
+ category = rep(c("A","B"), each = 6),
+ doc_id = rep(c("d1","d2","d3"), times = 4),
+ word = c("apple","banana","apple","banana","cherry","apple",
+ "dog","cat","dog","mouse","cat","dog"),
+ stringsAsFactors = FALSE
+ )
> result <- bind_tf_idf_dt(df, "category", "doc_id", "word")
Error in `[.data.table`(dt_counts, , `:=`(tf, n/sum(n)), by = c(grp, doc_col)) :
attempt access index 4/4 in VECTOR_ELT
Calls: bind_tf_idf_dt -> [ -> [.data.table
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 1.8.3
Check: tests
Result: ERROR
Running ‘testthat.R’ [7s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(tidyfst)
Thank you for using tidyfst!
To acknowledge our work, please cite the package:
Huang et al., (2020). tidyfst: Tidy Verbs for Fast Data Manipulation. Journal of Open Source Software, 5(52), 2388, https://doi.org/10.21105/joss.02388
Attaching package: 'tidyfst'
The following object is masked from 'package:base':
%notin%
>
> test_check("tidyfst")
Saving _problems/test-count_dt-34.R
Saving _problems/test-mutate_dt-13.R
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 169 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-count_dt.R:31:3'): add_count ───────────────────────────────────
Error in ``[.data.table`(dt, , `:=`((.name), .N), by = dot_string)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-count_dt.R:31:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─iris %>% add_count_dt(Species)
5. └─tidyfst::add_count_dt(., Species)
6. ├─dt[, `:=`((.name), .N), by = dot_string]
7. └─data.table:::`[.data.table`(dt, , `:=`((.name), .N), by = dot_string)
── Error ('test-mutate_dt.R:10:3'): mutate and transmute ───────────────────────
Error in ``[.data.table`(structure(list(Sepal.Length = c(5.1, 4.9, 4.7, 4.6, 5, 5.4, 4.6, 5, 4.4, 4.9, 5.4, 4.8, 4.8, 4.3, 5.8, 5.7, 5.4, 5.1, 5.7, 5.1, 5.4, 5.1, 4.6, 5.1, 4.8, 5, 5, 5.2, 5.2, 4.7, 4.8, 5.4, 5.2, 5.5, 4.9, 5, 5.5, 4.9, 4.4, 5.1, 5, 4.5, 4.4, 5, 5.1, 4.8, 5.1, 4.6, 5.3, 5, 7, 6.4, 6.9, 5.5, 6.5, 5.7, 6.3, 4.9, 6.6, 5.2, 5, 5.9, 6, 6.1, 5.6, 6.7, 5.6, 5.8, 6.2, 5.6, 5.9, 6.1, 6.3, 6.1, 6.4, 6.6, 6.8, 6.7, 6, 5.7, 5.5, 5.5, 5.8, 6, 5.4, 6, 6.7, 6.3, 5.6, 5.5, 5.5, 6.1, 5.8, 5, 5.6, 5.7, 5.7, 6.2, 5.1, 5.7, 6.3, 5.8, 7.1, 6.3, 6.5, 7.6, 4.9, 7.3, 6.7, 7.2, 6.5, 6.4, 6.8, 5.7, 5.8, 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.3, 1.2, 1.4, 1.2, 1, 1.3, 1.2, 1.3, 1.3, 1.1, 1.3, 2.5, 1.9, 2.1, 1.8, 2.2, 2.1, 1.7, 1.8, 1.8, 2.5, 2, 1.9, 2.1, 2, 2.4, 2.3, 1.8, 2.2, 2.3, 1.5, 2.3, 2, 2, 1.8, 2.1, 1.8, 1.8, 1.8, 2.1, 1.6, 1.9, 2, 2.2, 1.5, 1.4, 2.3, 2.4, 1.8, 1.8, 2.1, 2.4, 2.3, 1.9, 2.3, 2.5, 2.3, 1.9, 2, 2.3, 1.8), Species = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L), levels = c("setosa", "versicolor", "virginica"), class = "factor")), row.names = c(NA, -150L), class = c("data.table", "data.frame"), .internal.selfref = <pointer: 0x5595ad91dde0>), , `:=`(id = 1:.N, grp = .GRP), Species)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-mutate_dt.R:10:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─iris %>% mutate_dt(id = 1:.N, grp = .GRP, by = Species)
5. └─tidyfst::mutate_dt(., id = 1:.N, grp = .GRP, by = Species)
6. └─base::eval.parent(substitute(dt[, `:=`(...), by][]), 1)
7. └─base::eval(expr, p)
8. └─base::eval(expr, p)
9. ├─`<dt[,5]>`[, `:=`(id = 1:.N, grp = .GRP), Species]
10. └─data.table:::`[.data.table`(...)
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 169 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.8.3
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building ‘benchmark.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘benchmark.Rmd’
--- re-building ‘chinese_tutorial.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘chinese_tutorial.Rmd’
--- re-building ‘english_tutorial.Rmd’ using rmarkdown
Quitting from english_tutorial.Rmd:149-198 [unnamed-chunk-6]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 4/4 in VECTOR_ELT
---
Backtrace:
▆
1. └─tidyfst::add_count_dt(DF, V1)
2. ├─dt[, `:=`((.name), .N), by = dot_string]
3. └─data.table:::`[.data.table`(dt, , `:=`((.name), .N), by = dot_string)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'english_tutorial.Rmd' failed with diagnostics:
attempt access index 4/4 in VECTOR_ELT
--- failed re-building ‘english_tutorial.Rmd’
--- re-building ‘example1_intro.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘example1_intro.Rmd’
--- re-building ‘example2_join.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘example2_join.Rmd’
--- re-building ‘example3_reshape.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘example3_reshape.Rmd’
--- re-building ‘example4_nest.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘example4_nest.Rmd’
--- re-building ‘example5_fst.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘example5_fst.Rmd’
--- re-building ‘example6_dt.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘example6_dt.Rmd’
SUMMARY: processing the following file failed:
‘english_tutorial.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 1.8.3
Check: tests
Result: ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(tidyfst)
Thank you for using tidyfst!
To acknowledge our work, please cite the package:
Huang et al., (2020). tidyfst: Tidy Verbs for Fast Data Manipulation. Journal of Open Source Software, 5(52), 2388, https://doi.org/10.21105/joss.02388
Attaching package: 'tidyfst'
The following object is masked from 'package:base':
%notin%
>
> test_check("tidyfst")
Saving _problems/test-count_dt-34.R
Saving _problems/test-mutate_dt-13.R
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 169 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-count_dt.R:31:3'): add_count ───────────────────────────────────
Error in ``[.data.table`(dt, , `:=`((.name), .N), by = dot_string)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-count_dt.R:31:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─iris %>% add_count_dt(Species)
5. └─tidyfst::add_count_dt(., Species)
6. ├─dt[, `:=`((.name), .N), by = dot_string]
7. └─data.table:::`[.data.table`(dt, , `:=`((.name), .N), by = dot_string)
── Error ('test-mutate_dt.R:10:3'): mutate and transmute ───────────────────────
Error in ``[.data.table`(structure(list(Sepal.Length = c(5.1, 4.9, 4.7, 4.6, 5, 5.4, 4.6, 5, 4.4, 4.9, 5.4, 4.8, 4.8, 4.3, 5.8, 5.7, 5.4, 5.1, 5.7, 5.1, 5.4, 5.1, 4.6, 5.1, 4.8, 5, 5, 5.2, 5.2, 4.7, 4.8, 5.4, 5.2, 5.5, 4.9, 5, 5.5, 4.9, 4.4, 5.1, 5, 4.5, 4.4, 5, 5.1, 4.8, 5.1, 4.6, 5.3, 5, 7, 6.4, 6.9, 5.5, 6.5, 5.7, 6.3, 4.9, 6.6, 5.2, 5, 5.9, 6, 6.1, 5.6, 6.7, 5.6, 5.8, 6.2, 5.6, 5.9, 6.1, 6.3, 6.1, 6.4, 6.6, 6.8, 6.7, 6, 5.7, 5.5, 5.5, 5.8, 6, 5.4, 6, 6.7, 6.3, 5.6, 5.5, 5.5, 6.1, 5.8, 5, 5.6, 5.7, 5.7, 6.2, 5.1, 5.7, 6.3, 5.8, 7.1, 6.3, 6.5, 7.6, 4.9, 7.3, 6.7, 7.2, 6.5, 6.4, 6.8, 5.7, 5.8, 6.4, 6.5, 7.7, 7.7, 6, 6.9, 5.6, 7.7, 6.3, 6.7, 7.2, 6.2, 6.1, 6.4, 7.2, 7.4, 7.9, 6.4, 6.3, 6.1, 7.7, 6.3, 6.4, 6, 6.9, 6.7, 6.9, 5.8, 6.8, 6.7, 6.7, 6.3, 6.5, 6.2, 5.9), Sepal.Width = c(3.5, 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.1, 1.6, 1.9, 2, 2.2, 1.5, 1.4, 2.3, 2.4, 1.8, 1.8, 2.1, 2.4, 2.3, 1.9, 2.3, 2.5, 2.3, 1.9, 2, 2.3, 1.8), Species = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L), levels = c("setosa", "versicolor", "virginica"), class = "factor")), row.names = c(NA, -150L), class = c("data.table", "data.frame"), .internal.selfref = <pointer: 0x6997550>), , `:=`(id = 1:.N, grp = .GRP), Species)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-mutate_dt.R:10:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─iris %>% mutate_dt(id = 1:.N, grp = .GRP, by = Species)
5. └─tidyfst::mutate_dt(., id = 1:.N, grp = .GRP, by = Species)
6. └─base::eval.parent(substitute(dt[, `:=`(...), by][]), 1)
7. └─base::eval(expr, p)
8. └─base::eval(expr, p)
9. ├─`<dt[,5]>`[, `:=`(id = 1:.N, grp = .GRP), Species]
10. └─data.table:::`[.data.table`(...)
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 169 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Current CRAN status: ERROR: 4, OK: 9
Version: 0.9.20
Check: examples
Result: ERROR
Running examples in ‘tidyft-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: count
> ### Title: Count observations by group
> ### Aliases: count add_count
>
> ### ** Examples
>
> a = as.data.table(mtcars)
> count(a,cyl)
cyl n
<num> <int>
1: 6 7
2: 4 11
3: 8 14
> count(a,cyl,sort = TRUE)
cyl n
<num> <int>
1: 8 14
2: 4 11
3: 6 7
> a
mpg cyl disp hp drat wt qsec vs am gear carb
<num> <num> <num> <num> <num> <num> <num> <num> <num> <num> <num>
1: 21.0 6 160.0 110 3.90 2.620 16.46 0 1 4 4
2: 21.0 6 160.0 110 3.90 2.875 17.02 0 1 4 4
3: 22.8 4 108.0 93 3.85 2.320 18.61 1 1 4 1
4: 21.4 6 258.0 110 3.08 3.215 19.44 1 0 3 1
5: 18.7 8 360.0 175 3.15 3.440 17.02 0 0 3 2
6: 18.1 6 225.0 105 2.76 3.460 20.22 1 0 3 1
7: 14.3 8 360.0 245 3.21 3.570 15.84 0 0 3 4
8: 24.4 4 146.7 62 3.69 3.190 20.00 1 0 4 2
9: 22.8 4 140.8 95 3.92 3.150 22.90 1 0 4 2
10: 19.2 6 167.6 123 3.92 3.440 18.30 1 0 4 4
11: 17.8 6 167.6 123 3.92 3.440 18.90 1 0 4 4
12: 16.4 8 275.8 180 3.07 4.070 17.40 0 0 3 3
13: 17.3 8 275.8 180 3.07 3.730 17.60 0 0 3 3
14: 15.2 8 275.8 180 3.07 3.780 18.00 0 0 3 3
15: 10.4 8 472.0 205 2.93 5.250 17.98 0 0 3 4
16: 10.4 8 460.0 215 3.00 5.424 17.82 0 0 3 4
17: 14.7 8 440.0 230 3.23 5.345 17.42 0 0 3 4
18: 32.4 4 78.7 66 4.08 2.200 19.47 1 1 4 1
19: 30.4 4 75.7 52 4.93 1.615 18.52 1 1 4 2
20: 33.9 4 71.1 65 4.22 1.835 19.90 1 1 4 1
21: 21.5 4 120.1 97 3.70 2.465 20.01 1 0 3 1
22: 15.5 8 318.0 150 2.76 3.520 16.87 0 0 3 2
23: 15.2 8 304.0 150 3.15 3.435 17.30 0 0 3 2
24: 13.3 8 350.0 245 3.73 3.840 15.41 0 0 3 4
25: 19.2 8 400.0 175 3.08 3.845 17.05 0 0 3 2
26: 27.3 4 79.0 66 4.08 1.935 18.90 1 1 4 1
27: 26.0 4 120.3 91 4.43 2.140 16.70 0 1 5 2
28: 30.4 4 95.1 113 3.77 1.513 16.90 1 1 5 2
29: 15.8 8 351.0 264 4.22 3.170 14.50 0 1 5 4
30: 19.7 6 145.0 175 3.62 2.770 15.50 0 1 5 6
31: 15.0 8 301.0 335 3.54 3.570 14.60 0 1 5 8
32: 21.4 4 121.0 109 4.11 2.780 18.60 1 1 4 2
mpg cyl disp hp drat wt qsec vs am gear carb
>
> b = as.data.table(iris)
> b %>% add_count(Species,name = "N")
Error in `[.data.table`(.data, , `:=`((name), .N), by = sel_name) :
attempt access index 5/5 in VECTOR_ELT
Calls: %>% -> add_count -> [ -> [.data.table
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Version: 0.9.20
Check: examples
Result: ERROR
Running examples in ‘tidyft-Ex.R’ failed
The error most likely occurred in:
> ### Name: count
> ### Title: Count observations by group
> ### Aliases: count add_count
>
> ### ** Examples
>
> a = as.data.table(mtcars)
> count(a,cyl)
cyl n
<num> <int>
1: 6 7
2: 4 11
3: 8 14
> count(a,cyl,sort = TRUE)
cyl n
<num> <int>
1: 8 14
2: 4 11
3: 6 7
> a
mpg cyl disp hp drat wt qsec vs am gear carb
<num> <num> <num> <num> <num> <num> <num> <num> <num> <num> <num>
1: 21.0 6 160.0 110 3.90 2.620 16.46 0 1 4 4
2: 21.0 6 160.0 110 3.90 2.875 17.02 0 1 4 4
3: 22.8 4 108.0 93 3.85 2.320 18.61 1 1 4 1
4: 21.4 6 258.0 110 3.08 3.215 19.44 1 0 3 1
5: 18.7 8 360.0 175 3.15 3.440 17.02 0 0 3 2
6: 18.1 6 225.0 105 2.76 3.460 20.22 1 0 3 1
7: 14.3 8 360.0 245 3.21 3.570 15.84 0 0 3 4
8: 24.4 4 146.7 62 3.69 3.190 20.00 1 0 4 2
9: 22.8 4 140.8 95 3.92 3.150 22.90 1 0 4 2
10: 19.2 6 167.6 123 3.92 3.440 18.30 1 0 4 4
11: 17.8 6 167.6 123 3.92 3.440 18.90 1 0 4 4
12: 16.4 8 275.8 180 3.07 4.070 17.40 0 0 3 3
13: 17.3 8 275.8 180 3.07 3.730 17.60 0 0 3 3
14: 15.2 8 275.8 180 3.07 3.780 18.00 0 0 3 3
15: 10.4 8 472.0 205 2.93 5.250 17.98 0 0 3 4
16: 10.4 8 460.0 215 3.00 5.424 17.82 0 0 3 4
17: 14.7 8 440.0 230 3.23 5.345 17.42 0 0 3 4
18: 32.4 4 78.7 66 4.08 2.200 19.47 1 1 4 1
19: 30.4 4 75.7 52 4.93 1.615 18.52 1 1 4 2
20: 33.9 4 71.1 65 4.22 1.835 19.90 1 1 4 1
21: 21.5 4 120.1 97 3.70 2.465 20.01 1 0 3 1
22: 15.5 8 318.0 150 2.76 3.520 16.87 0 0 3 2
23: 15.2 8 304.0 150 3.15 3.435 17.30 0 0 3 2
24: 13.3 8 350.0 245 3.73 3.840 15.41 0 0 3 4
25: 19.2 8 400.0 175 3.08 3.845 17.05 0 0 3 2
26: 27.3 4 79.0 66 4.08 1.935 18.90 1 1 4 1
27: 26.0 4 120.3 91 4.43 2.140 16.70 0 1 5 2
28: 30.4 4 95.1 113 3.77 1.513 16.90 1 1 5 2
29: 15.8 8 351.0 264 4.22 3.170 14.50 0 1 5 4
30: 19.7 6 145.0 175 3.62 2.770 15.50 0 1 5 6
31: 15.0 8 301.0 335 3.54 3.570 14.60 0 1 5 8
32: 21.4 4 121.0 109 4.11 2.780 18.60 1 1 4 2
mpg cyl disp hp drat wt qsec vs am gear carb
>
> b = as.data.table(iris)
> b %>% add_count(Species,name = "N")
Error in `[.data.table`(.data, , `:=`((name), .N), by = sel_name) :
attempt access index 5/5 in VECTOR_ELT
Calls: %>% -> add_count -> [ -> [.data.table
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc