Skip to content

Fixes the error that Matrix is not found#18

Merged
chaoliu-cl merged 1 commit intochaoliu-cl:masterfrom
kbenoit:fix-vignette
Aug 4, 2025
Merged

Fixes the error that Matrix is not found#18
chaoliu-cl merged 1 commit intochaoliu-cl:masterfrom
kbenoit:fix-vignette

Conversation

@kbenoit
Copy link
Copy Markdown
Contributor

@kbenoit kbenoit commented Aug 1, 2025

Occurs in R CMD CHECK when trying to load quanteda and not finding it. This ensures that the error won't occur.

The vignette technical_integration.Rmd is trying to load the quanteda package, which depends on the Matrix package, but Matrix is not available in the R CMD CHECK environment.

The error occurs during R CMD CHECK but not when knitting directly because when you knit directly, you're using your regular R environment where all packages are installed. R CMD CHECK creates a clean, isolated environment and only installs the packages declared in the DESCRIPTION file.

The fix only runs the code where quanteda is used if the required packages are available.

occurs in R CMD CHECK when trying to load quanteda and not finding it
@chaoliu-cl chaoliu-cl merged commit 96f46a4 into chaoliu-cl:master Aug 4, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants