===============================
R CMD BUILD
===============================
* checking for file ‘AnnotationGx/DESCRIPTION’ ... OK
* preparing ‘AnnotationGx’:
* checking DESCRIPTION meta-information ... OK
* installing the package (it is needed to build vignettes)
* creating vignettes ... ERROR
--- re-building ‘Cellosaurus.Rmd’ using rmarkdown
--- finished re-building ‘Cellosaurus.Rmd’
--- re-building ‘ChEMBL.Rmd’ using rmarkdown
Quitting from ChEMBL.Rmd:64-67 [single-query]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `httr2::resp_body_json()`:
! Unexpected content type "text/html".
• Expecting type "application/json" or suffix "json".
---
Backtrace:
▆
1. └─AnnotationGx::getChemblMechanism("CHEMBL1413")
2. └─base::lapply(...)
3. └─AnnotationGx (local) FUN(X[[i]], ...)
4. └─AnnotationGx:::.build_chembl_request(...)
5. ├─checkmate::assert_choice(...)
6. │ └─checkmate::checkChoice(x, choices, null.ok, fmatch)
7. │ └─checkmate::qassert(choices, "a")
8. └─AnnotationGx::getChemblResourceFields(resource)
9. └─AnnotationGx:::.chembl_resource_schema(resource)
10. └─AnnotationGx:::.cache_fetch(...)
11. └─AnnotationGx (local) FUN()
12. └─AnnotationGx:::.parse_resp_json(...)
13. └─httr2::resp_body_json(resp, simplifyVector = simplifyVector)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'ChEMBL.Rmd' failed with diagnostics:
Unexpected content type "text/html".
• Expecting type "application/json" or suffix "json".
--- failed re-building ‘ChEMBL.Rmd’
--- re-building ‘Introduction.Rmd’ using rmarkdown
--- finished re-building ‘Introduction.Rmd’
--- re-building ‘OncoTree.Rmd’ using rmarkdown
--- finished re-building ‘OncoTree.Rmd’
--- re-building ‘PubChemAPI.Rmd’ using rmarkdown
--- finished re-building ‘PubChemAPI.Rmd’
--- re-building ‘Unichem.Rmd’ using rmarkdown
--- finished re-building ‘Unichem.Rmd’
SUMMARY: processing the following file failed:
‘ChEMBL.Rmd’
Error: Vignette re-building failed.
Execution halted