I just wrote the first vignette for my package. I wrote it as a QMD file.
The vignette is failing to build in the GitHub Action for R CMD check on windows-latest.
How do I fix this error?
The GHA logs are here.
Here is the relevant error log:
── R CMD build ───────────────���─────────────────────────────────────────────────
* checking for file 'D:\a\filibustr\filibustr/DESCRIPTION' ... OK
* preparing 'filibustr':
* checking DESCRIPTION meta-information ... OK
* installing the package to build vignettes
* creating vignettes ... ERROR
Error: --- re-building 'parallel-downloads.qmd' using html
processing file: parallel-downloads.qmd
1/11
2/11 [library(filibustr)]
Error: Error in library(filibustr) : there is no package called 'filibustr'
Calls: .main ... withCallingHandlers -> withVisible -> eval -> eval -> library
Quitting from parallel-downloads.qmd:13-15 [library(filibustr)]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `library()`:
! there is no package called 'filibustr'
---
Backtrace:
▆
1. └─base::library(filibustr)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Execution halted
WARN: Error encountered when rendering files
Error: Error: processing vignette 'parallel-downloads.qmd' failed with diagnostics:
! Error running quarto CLI from R.
Caused by error in `quarto_render()`:
✖ Error returned by quarto CLI.
-----------------------------
processing file: parallel-downloads.qmd
1/11
2/11 [library(filibustr)]
Error in library(filibustr) : there is no package called 'filibustr'
Calls: .main ... withCallingHandlers -> withVisible -> eval -> eval ->
library
Quitting from parallel-downloads.qmd:13-15 [library(filibustr)]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `library()`:
! there is no package called 'filibustr'
---
Backtrace:
▆
1. └─base::library(filibustr)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Execution halted
WARN: Error encountered when rendering files
Caused by error:
! System command 'quarto.exe' failed
--- failed re-building 'parallel-downloads.qmd'
SUMMARY: processing the following file failed:
'parallel-downloads.qmd'
Error: Error: Vignette re-building failed.
Execution halted
Error: Error in proc$get_built_file() : Build process failed
Calls: <Anonymous> ... build_package -> with_envvar -> force -> <Anonymous>
Execution halted
Error: Process completed with exit code 1.
I also got the following warning:
Warning: No files were found with the provided path: D:/a/filibustr/filibustr/check. No artifacts will be uploaded.
The vignette built perfectly fine on my machine when I tested it using the code below:
devtools::install(build_vignettes = TRUE)
browseVignettes("filibustr")
devtools::check()