* using log directory ‘/srv/hornik/tmp/CRAN_pretest/contentanalysis.Rcheck’ * using R Under development (unstable) (2025-10-25 r88970) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.7 (7) Debian flang-new version 19.1.7 (7) * running under: Debian GNU/Linux forky/sid * using session charset: UTF-8 * checking for file ‘contentanalysis/DESCRIPTION’ ... OK * this is package ‘contentanalysis’ version ‘0.2.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [4s/6s] NOTE Maintainer: ‘Massimo Aria ’ New submission Possibly misspelled words in DESCRIPTION: bibliometric (17:24) * 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 ... NOTE Found the following hidden files and directories: .github These were most likely included in error. See section ‘Package structure’ in the ‘Writing R Extensions’ manual. CRAN-pack does not know about .github * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘contentanalysis’ can be installed ... [6s/6s] OK * checking package directory ... OK * checking for future file timestamps ... 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s/1s] OK * checking whether the package can be loaded with stated dependencies ... [1s/1s] OK * checking whether the package can be unloaded cleanly ... [1s/1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK * checking whether the namespace can be unloaded cleanly ... [1s/1s] OK * checking loading without being on the library search path ... [1s/1s] 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 ... [10s/10s] OK * checking Rd files ... [0s/0s] 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 installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [3s/3s] OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [11s/11s] ERROR Running ‘testthat.R’ [10s/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(contentanalysis) > > test_check("contentanalysis") Attaching package: 'dplyr' The following object is masked from 'package:testthat': matches The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Parsing references from text... Extracting all citation types Extracting all citation types Attempting to retrieve references from CrossRef... Parsing references from text... Extracting all citation types Parsing references from text... Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Extracting all citation types Parsing references from text... Extracting all citation types Extracting all citation types Original error: HTTP 404: Not Found Original error: Network timeout Original error: Invalid JSON PDF error: May not be a PDF file (continuing anyway) PDF error: Couldn't find trailer dictionary PDF error: Couldn't find trailer dictionary PDF error: Couldn't read xref table pdf_data failed, falling back to pdf_text method: File not found Available PDF fixtures: empty-page.pdf, hyphenated-text.pdf, multi-page.pdf, sample-single-column.pdf, sample-three-columns.pdf, sample-two-columns.pdf, special-chars.pdf [ FAIL 11 | WARN 0 | SKIP 10 | PASS 730 ] ══ Skipped tests (10) ══════════════════════════════════════════════════════════ • Fixture not available: complex-layout.pdf (1): 'test-pdf_import_integration.r:211:5' • Fixture not available: large-doc.pdf (1): 'test-pdf_import_integration.r:259:5' • Fixture not available: malformed.pdf (1): 'test-pdf_import_integration.r:300:5' • Fixture not available: password-protected.pdf (1): 'test-pdf_import_integration.r:316:5' • Fixture not available: regression-test-v0.1.pdf (1): 'test-pdf_import_integration.r:332:5' • Fixture not available: scientific-paper.pdf (1): 'test-pdf_import_integration.r:144:5' • Fixture not available: test-content.pdf (1): 'test-pdf_import_integration.r:282:5' • Fixture not available: unicode-content.pdf (1): 'test-pdf_import_integration.r:187:5' • On CRAN (1): 'test-citation_analysis.r:732:3' • empty test (1): 'test-citation_analysis.r:431:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-citation_network.r:35:3'): create_citation_network creates valid network with default parameters ── Error in `visIgraphLayout(., layout = "layout_nicely", type = "full")`: This function need 'igraph' package to compute layout. Please install it before. Backtrace: ▆ 1. ├─contentanalysis::create_citation_network(mock_data) at test-citation_network.r:35:3 2. │ └─... %>% ... 3. └─visNetwork::visIgraphLayout(., layout = "layout_nicely", type = "full") ── Error ('test-citation_network.r:45:3'): network statistics are correctly computed ── Error in `visIgraphLayout(., layout = "layout_nicely", type = "full")`: This function need 'igraph' package to compute layout. Please install it before. Backtrace: ▆ 1. ├─contentanalysis::create_citation_network(mock_data) at test-citation_network.r:45:3 2. │ └─... %>% ... 3. └─visNetwork::visIgraphLayout(., layout = "layout_nicely", type = "full") ── Error ('test-citation_network.r:66:3'): max_distance parameter filters citation pairs ── Error in `visIgraphLayout(., layout = "layout_nicely", type = "full")`: This function need 'igraph' package to compute layout. Please install it before. Backtrace: ▆ 1. ├─contentanalysis::create_citation_network(mock_data, max_distance = 500) at test-citation_network.r:66:3 2. │ └─... %>% ... 3. └─visNetwork::visIgraphLayout(., layout = "layout_nicely", type = "full") ── Error ('test-citation_network.r:82:3'): min_connections parameter filters nodes correctly ── Error in `visIgraphLayout(., layout = "layout_nicely", type = "full")`: This function need 'igraph' package to compute layout. Please install it before. Backtrace: ▆ 1. ├─contentanalysis::create_citation_network(mock_data, min_connections = 1) at test-citation_network.r:82:3 2. │ └─... %>% ... 3. └─visNetwork::visIgraphLayout(., layout = "layout_nicely", type = "full") ── Error ('test-citation_network.r:96:3'): show_labels parameter controls label display ── Error in `visIgraphLayout(., layout = "layout_nicely", type = "full")`: This function need 'igraph' package to compute layout. Please install it before. Backtrace: ▆ 1. ├─contentanalysis::create_citation_network(mock_data, show_labels = TRUE) at test-citation_network.r:96:3 2. │ └─... %>% ... 3. └─visNetwork::visIgraphLayout(., layout = "layout_nicely", type = "full") ── Error ('test-citation_network.r:151:3'): multi-section citations are correctly identified ── Error in `visIgraphLayout(., layout = "layout_nicely", type = "full")`: This function need 'igraph' package to compute layout. Please install it before. Backtrace: ▆ 1. ├─contentanalysis::create_citation_network(mock_data) at test-citation_network.r:151:3 2. │ └─... %>% ... 3. └─visNetwork::visIgraphLayout(., layout = "layout_nicely", type = "full") ── Error ('test-citation_network.r:166:3'): section colors are properly applied ── Error in `visIgraphLayout(., layout = "layout_nicely", type = "full")`: This function need 'igraph' package to compute layout. Please install it before. Backtrace: ▆ 1. ├─contentanalysis::create_citation_network(mock_data) at test-citation_network.r:166:3 2. │ └─... %>% ... 3. └─visNetwork::visIgraphLayout(., layout = "layout_nicely", type = "full") ── Error ('test-citation_network.r:177:3'): edge properties reflect distance correctly ── Error in `visIgraphLayout(., layout = "layout_nicely", type = "full")`: This function need 'igraph' package to compute layout. Please install it before. Backtrace: ▆ 1. ├─contentanalysis::create_citation_network(mock_data, max_distance = 1000) at test-citation_network.r:177:3 2. │ └─... %>% ... 3. └─visNetwork::visIgraphLayout(., layout = "layout_nicely", type = "full") ── Error ('test-citation_network.r:189:3'): section distribution is calculated in statistics ── Error in `visIgraphLayout(., layout = "layout_nicely", type = "full")`: This function need 'igraph' package to compute layout. Please install it before. Backtrace: ▆ 1. ├─contentanalysis::create_citation_network(mock_data) at test-citation_network.r:189:3 2. │ └─... %>% ... 3. └─visNetwork::visIgraphLayout(., layout = "layout_nicely", type = "full") ── Error ('test-citation_network.r:203:3'): unknown sections are handled correctly ── Error in `visIgraphLayout(., layout = "layout_nicely", type = "full")`: This function need 'igraph' package to compute layout. Please install it before. Backtrace: ▆ 1. ├─contentanalysis::create_citation_network(mock_data_with_na) at test-citation_network.r:203:3 2. │ └─... %>% ... 3. └─visNetwork::visIgraphLayout(., layout = "layout_nicely", type = "full") ── Error ('test-citation_network.r:216:3'): returned network has all expected attributes ── Error in `visIgraphLayout(., layout = "layout_nicely", type = "full")`: This function need 'igraph' package to compute layout. Please install it before. Backtrace: ▆ 1. ├─contentanalysis::create_citation_network(mock_data) at test-citation_network.r:216:3 2. │ └─... %>% ... 3. └─visNetwork::visIgraphLayout(., layout = "layout_nicely", type = "full") [ FAIL 11 | WARN 0 | SKIP 10 | PASS 730 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [4s/7s] ERROR Error(s) in re-building vignettes: ... --- re-building ‘introduction.Rmd’ using rmarkdown trying URL 'https://raw.githubusercontent.com/massimoaria/contentanalysis/master/inst/examples/example_paper.pdf' Content type 'application/octet-stream' length 543702 bytes (530 KB) ================================================== downloaded 530 KB Quitting from introduction.Rmd:332-343 [network-create] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `visIgraphLayout()`: ! This function need 'igraph' package to compute layout. Please install it before. --- Backtrace: ▆ 1. ├─contentanalysis::create_citation_network(...) 2. │ └─... %>% ... 3. └─visNetwork::visIgraphLayout(., layout = "layout_nicely", type = "full") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'introduction.Rmd' failed with diagnostics: This function need 'igraph' package to compute layout. Please install it before. --- failed re-building ‘introduction.Rmd’ SUMMARY: processing the following file failed: ‘introduction.Rmd’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs, 2 NOTEs