- using R version 4.1.1 Patched (2021-09-05 r80862)
- using platform: aarch64-apple-darwin20 (64-bit)
- using session charset: UTF-8
- checking for file ‘text2vec/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘text2vec’ version ‘0.6.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 ‘text2vec’ can be installed ... [19s/20s] OK
- checking installed package size ... NOTE
installed size is 10.4Mb
sub-directories of 1Mb or more:
data 2.7Mb
doc 3.0Mb
libs 4.1Mb
- checking package directory ... OK
- checking ‘build’ 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 dependencies in R code ... WARNING
Missing or unexported object: ‘Matrix::rowScale’
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [3s/3s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/1s] ERROR
Running examples in ‘text2vec-Ex.R’ failed
The error most likely occurred in:
> ### Name: BNS
> ### Title: BNS
> ### Aliases: BNS
> ### Keywords: datasets
>
> ### ** Examples
>
> data("movie_review")
> N = 1000
> it = itoken(head(movie_review$review, N), preprocessor = tolower, tokenizer = word_tokenizer)
> vocab = create_vocabulary(it)
> dtm = create_dtm(it, vocab_vectorizer(vocab))
as(<dgTMatrix>, "dgCMatrix") is deprecated since Matrix 1.5-0; do as(., "CsparseMatrix") instead
> model_bns = BNS$new()
> dtm_bns = model_bns$fit_transform(dtm, head(movie_review$sentiment, N))
Error: 'colScale' is not an exported object from 'namespace:Matrix'
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [21s/22s] ERROR
Running ‘testthat.R’ [21s/21s]
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
7. │ └─text2vec::normalize(x_internal, private$norm)
8. └─base::.handleSimpleError(...)
9. └─base (local) h(simpleError(msg, call))
── Error ('test-s3-interface.R:41'): S3 bns ────────────────────────────────────
Error: 'colScale' is not an exported object from 'namespace:Matrix'
Backtrace:
▆
1. ├─mlapi::fit_transform(dtm, bns, y) at test-s3-interface.R:41:2
2. └─mlapi:::fit_transform.Matrix(dtm, bns, y)
3. └─model$fit_transform(x, y = y, ...)
4. └─self$transform(x, ...)
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 80 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking running R code from vignettes ... [1s/1s] NONE
‘files-multicore.Rmd’ using ‘UTF-8’... [0s/0s] OK
‘glove.Rmd’ using ‘UTF-8’... [0s/0s] OK
‘text-vectorization.Rmd’ using ‘UTF-8’... [0s/0s] OK
- checking re-building of vignette outputs ... [21s/22s] WARNING
Error(s) in re-building vignettes:
...
--- re-building ‘files-multicore.Rmd’ using rmarkdown
[WARNING] This document format requires a nonempty <title> element.
Defaulting to 'files-multicore.knit' as the title.
To specify a title, use 'title' in metadata or --metadata title="...".
--- finished re-building ‘files-multicore.Rmd’
--- re-building ‘glove.Rmd’ using rmarkdown
--- finished re-building ‘glove.Rmd’
--- re-building ‘text-vectorization.Rmd’ using rmarkdown
Quitting from lines 280-281 (text-vectorization.Rmd)
Error: processing vignette 'text-vectorization.Rmd' failed with diagnostics:
'rowScale' is not an exported object from 'namespace:Matrix'
--- failed re-building ‘text-vectorization.Rmd’
SUMMARY: processing the following file failed:
‘text-vectorization.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... OK
- DONE
Status: 2 ERRORs, 2 WARNINGs, 1 NOTE
- using check arguments '--no-clean-on-error '