rjournal / rjtools

Tools for AUTHORS to use for checking and submitting articles to the R Journal
https://rjournal.github.io/rjtools/
Other
31 stars 14 forks source link

create_article() template leads to pandoc error #122

Closed pachadotdev closed 2 months ago

pachadotdev commented 6 months ago

after running

remotes::install_github("rjournal/rjtools")
create_article()
rmarkdown::render("test.Rmd")

the output says:

Error running filter /home/pacha/R/x86_64-pc-linux-gnu-library/4.3/rjtools/sec-depth.lua:
.../R/x86_64-pc-linux-gnu-library/4.3/rjtools/sec-depth.lua:7: attempt to call a nil value (method 'walk')
stack traceback:
        .../R/x86_64-pc-linux-gnu-library/4.3/rjtools/sec-depth.lua:7: in function 'Pandoc'
Error: pandoc document conversion failed with error 83
In addition: Warning message:
In (function (category = "LC_ALL", locale = "")  :
  OS reports request to set locale to "en_US.UTF-8" cannot be honored

here is my sesssion info:

> session_info()
─ Session info ─────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.3.3 (2024-02-29)
 os       Pop!_OS 22.04 LTS
 system   x86_64, linux-gnu
 ui       X11
 language (EN)
 collate  en_CA.UTF-8
 ctype    en_CA.UTF-8
 tz       America/Toronto
 date     2024-04-29
 pandoc   2.9.2.1 @ /usr/bin/ (via rmarkdown)

─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────────
 package     * version    date (UTC) lib source
 archive       1.1.7      2023-12-11 [1] CRAN (R 4.3.2)
 BiocManager   1.30.22    2023-08-08 [3] CRAN (R 4.3.1)
 bit           4.0.4      2020-08-04 [3] CRAN (R 4.0.2)
 bit64         4.0.5      2020-08-30 [3] CRAN (R 4.2.0)
 bslib         0.6.1      2023-11-28 [3] CRAN (R 4.3.2)
 bspm          0.5.5      2023-08-22 [2] CRAN (R 4.3.2)
 cachem        1.0.8      2023-05-01 [3] CRAN (R 4.3.0)
 callr         3.7.3      2022-11-02 [3] CRAN (R 4.2.2)
 cli           3.6.2      2023-12-11 [1] CRAN (R 4.3.2)
 crayon        1.5.2      2022-09-29 [3] CRAN (R 4.2.1)
 curl          5.2.1      2024-03-01 [1] CRAN (R 4.3.2)
 devtools    * 2.4.3      2021-11-30 [3] CRAN (R 4.2.0)
 digest        0.6.34     2024-01-11 [1] CRAN (R 4.3.2)
 distill       1.6        2023-10-06 [3] CRAN (R 4.3.1)
 downlit       0.4.3      2023-06-29 [3] CRAN (R 4.3.1)
 ellipsis      0.3.2      2021-04-29 [3] CRAN (R 4.1.1)
 evaluate      0.23       2023-11-01 [3] CRAN (R 4.3.2)
 fansi         1.0.6      2023-12-08 [3] CRAN (R 4.3.2)
 fastmap       1.1.1      2023-02-24 [3] CRAN (R 4.2.2)
 fs            1.6.3      2023-07-20 [3] CRAN (R 4.3.1)
 generics      0.1.3      2022-07-05 [3] CRAN (R 4.2.1)
 glue          1.7.0      2024-01-09 [1] CRAN (R 4.3.2)
 hms           1.1.3      2023-03-21 [3] CRAN (R 4.2.3)
 htmltools     0.5.7      2023-11-03 [3] CRAN (R 4.3.2)
 hunspell      3.0.3      2023-10-06 [3] CRAN (R 4.3.1)
 jquerylib     0.1.4      2021-04-26 [3] CRAN (R 4.1.2)
 jsonlite      1.8.8      2023-12-04 [1] CRAN (R 4.3.2)
 knitr         1.45       2023-10-30 [3] CRAN (R 4.3.2)
 lifecycle     1.0.4      2023-11-07 [1] CRAN (R 4.3.2)
 lubridate     1.9.3      2023-09-27 [3] CRAN (R 4.3.1)
 magrittr      2.0.3      2022-03-30 [3] CRAN (R 4.2.0)
 memoise       2.0.1      2021-11-26 [3] CRAN (R 4.2.0)
 pillar        1.9.0      2023-03-22 [3] CRAN (R 4.2.3)
 pkgbuild      1.4.3      2023-12-10 [3] CRAN (R 4.3.2)
 pkgconfig     2.0.3      2019-09-22 [3] CRAN (R 4.0.1)
 pkgload       1.3.4      2024-01-16 [3] CRAN (R 4.3.2)
 png           0.1-8      2022-11-29 [1] CRAN (R 4.3.3)
 processx      3.8.3      2023-12-10 [3] CRAN (R 4.3.2)
 ps            1.7.6      2024-01-18 [3] CRAN (R 4.3.2)
 purrr         1.0.2      2023-08-10 [3] CRAN (R 4.3.1)
 R6            2.5.1      2021-08-19 [3] CRAN (R 4.2.0)
 Rcpp          1.0.12     2024-01-09 [3] CRAN (R 4.3.2)
 readr         2.1.5      2024-01-10 [3] CRAN (R 4.3.2)
 remotes       2.4.2.1    2023-07-18 [3] CRAN (R 4.3.1)
 rJava         1.0-11     2024-01-26 [3] CRAN (R 4.3.2)
 rjtools       1.0.14     2024-04-29 [1] Github (rjournal/rjtools@567c5be)
 rlang         1.1.3      2024-01-10 [1] CRAN (R 4.3.2)
 rmarkdown     2.25       2023-09-18 [3] CRAN (R 4.3.1)
 rprojroot     2.0.4      2023-11-05 [3] CRAN (R 4.3.2)
 sass          0.4.8      2023-12-06 [3] CRAN (R 4.3.2)
 sessioninfo   1.2.2      2021-12-06 [3] CRAN (R 4.2.0)
 stringi       1.8.3      2023-12-11 [3] CRAN (R 4.3.2)
 stringr       1.5.1      2023-11-14 [3] CRAN (R 4.3.2)
 tabulapdf   * 1.0.5-2    2024-04-29 [1] local
 tibble        3.2.1      2023-03-20 [3] CRAN (R 4.3.1)
 tidyselect    1.2.0      2022-10-10 [3] CRAN (R 4.2.1)
 timechange    0.3.0      2024-01-18 [3] CRAN (R 4.3.2)
 tzdb          0.4.0      2023-05-12 [3] CRAN (R 4.3.0)
 usethis     * 2.2.2.9000 2024-02-14 [1] local
 utf8          1.2.4      2023-10-22 [3] CRAN (R 4.3.2)
 vctrs         0.6.5      2023-12-01 [3] CRAN (R 4.3.2)
 vroom         1.6.5      2023-12-05 [3] CRAN (R 4.3.2)
 whisker       0.4        2019-08-28 [3] CRAN (R 4.0.1)
 withr         3.0.0      2024-01-16 [3] CRAN (R 4.3.2)
 xfun          0.41       2023-11-01 [3] CRAN (R 4.3.2)
 xml2          1.3.6      2023-12-04 [3] CRAN (R 4.3.2)
 xtable      * 1.8-4      2019-04-21 [3] CRAN (R 4.0.1)
 yaml          2.3.8      2023-12-11 [1] CRAN (R 4.3.2)
 yesno         0.1.2      2020-07-10 [3] CRAN (R 4.2.0)

 [1] /home/pacha/R/x86_64-pc-linux-gnu-library/4.3
 [2] /usr/local/lib/R/site-library
 [3] /usr/lib/R/site-library
 [4] /usr/lib/R/library