Error kniting default paper.Rmd
see24 opened this issue · 3 comments
I started by creating a new compendium with rrtools::use_compendium("../testcomp")
, then ran rrtools::use_analysis()
, opened the paper.Rmd file that is created, clicked knit and got the following error:
Error running filter ../templates/scholarly-metadata.lua:
../templates/scholarly-metadata.lua:95: not a named object: List: 00000000091628f0
stack traceback:
../templates/scholarly-metadata.lua:95: in function 'to_named_object'
[C]: in function 'pandoc.List.map'
../templates/scholarly-metadata.lua:145: in upvalue 'canonicalize'
../templates/scholarly-metadata.lua:176: in function <../templates/scholarly-metadata.lua:175>
Error: pandoc document conversion failed with error 83
I am also getting this error in an existing compendium that was working last time I ran it, maybe a month ago. Any ideas for what is going wrong would be greatly appreciated!
This is the session info:
R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
Matrix products: default
locale:
[1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252
[3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C
[5] LC_TIME=English_Canada.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.9 urlchecker_1.0.1 compiler_4.1.2 later_1.3.0
[5] git2r_0.30.1 remotes_2.4.2 profvis_0.3.7 prettyunits_1.1.1
[9] tools_4.1.2 rrtools_0.1.5 pkgload_1.3.0 digest_0.6.29
[13] pkgbuild_1.3.1 evaluate_0.16 memoise_2.0.1 lifecycle_1.0.1
[17] rlang_1.0.4 shiny_1.7.2 cli_3.3.0 rstudioapi_0.14
[21] curl_4.3.2 yaml_2.3.5 xfun_0.32 fastmap_1.1.0
[25] stringr_1.4.1 knitr_1.39 htmlwidgets_1.5.4 fs_1.5.2
[29] devtools_2.4.4 rprojroot_2.0.3 glue_1.6.2 here_1.0.1
[33] R6_2.5.1 processx_3.7.0 rmarkdown_2.15 bookdown_0.28
[37] sessioninfo_1.2.2 purrr_0.3.4 callr_3.7.2 magrittr_2.0.3
[41] whisker_0.4 clisymbols_1.2.0 promises_1.2.0.1 ps_1.7.1
[45] ellipsis_0.3.2 htmltools_0.5.3 usethis_2.1.6 mime_0.12
[49] xtable_1.8-4 httpuv_1.6.5 stringi_1.7.8 miniUI_0.1.1.1
[53] cachem_1.0.6 crayon_1.5.1
Hi Sarah,
Yes I saw this error myself recently also. The quickest fix is to get the most current versions of the lua filters and move them into your analysis/templates
directory to replace the outdated ones there.
You can get the current versions from https://github.com/pandoc/lua-filters e.g.
I have a bigger update to rrtools coming that will fix this and a few other things, but that's still a week or two away.
That worked. Thanks!
Thanks for letting me know, glad to hear that! I've now pushed a bunch of updates including a fix of this. The big news is that now the main paper document is Quarto format rather than R Markdown, very exciting!