R Under development (unstable) (2025-10-25 r88970 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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