- using R Under development (unstable) (2023-09-29 r85235)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 17.0.1
flang-new version 17.0.1
- running under: Fedora Linux 36 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘textfeatures/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘textfeatures’ version ‘0.3.3’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘textfeatures’ can be installed ... [14s/14s] OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking LazyData ... NOTE
'LazyData' is specified without a 'data' directory
- checking R/sysdata.rda ... OK
- checking examples ... ERROR
Running examples in ‘textfeatures-Ex.R’ failed
The error most likely occurred in:
> ### Name: textfeatures
> ### Title: textfeatures
> ### Aliases: textfeatures
>
> ### ** Examples
>
>
> ## the text of five of Trump's most retweeted tweets
> trump_tweets <- c(
+ "#FraudNewsCNN #FNN https://t.co/WYUnHjjUjg",
+ "TODAY WE MAKE AMERICA GREAT AGAIN!",
+ paste("Why would Kim Jong-un insult me by calling me \"old,\" when I would",
+ "NEVER call him \"short and fat?\" Oh well, I try so hard to be his",
+ "friend - and maybe someday that will happen!"),
+ paste("Such a beautiful and important evening! The forgotten man and woman",
+ "will never be forgotten again. We will all come together as never before"),
+ paste("North Korean Leader Kim Jong Un just stated that the \"Nuclear",
+ "Button is on his desk at all times.\" Will someone from his depleted and",
+ "food starved regime please inform him that I too have a Nuclear Button,",
+ "but it is a much bigger & more powerful one than his, and my Button",
+ "works!")
+ )
>
> ## get the text features of a character vector
> textfeatures(trump_tweets)
Error in textfeatures.character(trump_tweets) :
is.atomic(word_dims) is not TRUE
Calls: textfeatures -> textfeatures.character -> stopifnot
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(textfeatures)
>
> test_check("textfeatures")
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-main.R:18:3'): main textfeatures function ──────────────────────
Error in `textfeatures.character(txt)`: is.atomic(word_dims) is not TRUE
Backtrace:
▆
1. ├─textfeatures::textfeatures(txt) at test-main.R:18:2
2. └─textfeatures:::textfeatures.character(txt)
3. └─base::stopifnot(...)
── Error ('test-verbose.R:16:3'): printing output ──────────────────────────────
Error in `textfeatures.character(txt)`: is.atomic(word_dims) is not TRUE
Backtrace:
▆
1. ├─testthat::expect_output(textfeatures(txt)) at test-verbose.R:16:2
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─testthat::capture_output_lines(code, print, width = width)
5. │ │ └─testthat:::eval_with_output(code, print = print, width = width)
6. │ │ ├─withr::with_output_sink(path, withVisible(code))
7. │ │ │ └─base::force(code)
8. │ │ └─base::withVisible(code)
9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
10. ├─textfeatures::textfeatures(txt)
11. └─textfeatures:::textfeatures.character(txt)
12. └─base::stopifnot(...)
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs, 1 NOTE