Failure when checking package with Rstudio -- claims markdown not found

A development version of my optimx package checks OK with R CMD check, but fails when trying to check in Rstudio on the vignette

Error: processing vignette 'ExplainGradMinR.Rmd' failed with diagnostics:
there is no package called ‘markdown’
--- failed re-building ‘ExplainGradMinR.Rmd’

But sessionInfo() shows

R version 4.1.2 (2021-11-01)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Linux Mint 21

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so

locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8 LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8
[7] LC_PAPER=en_CA.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] markdown_1.1

loaded via a namespace (and not attached):
[1] compiler_4.1.2 fastmap_1.1.0 cli_3.3.0 htmltools_0.5.3 tools_4.1.2 rstudioapi_0.13 yaml_2.3.5 rmarkdown_2.15 knitr_1.39 xfun_0.32
[11] digest_0.6.29 rlang_1.0.4 evaluate_0.16

Thus I'm perplexed. Hints welcome.

JN

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.