Thanks for the great templates.
I have been using your templates quite a lot in my work, however, recently the template don't work when I use rmarkdown::render. It works when I click on the knit button in Rstudio though!!
Just to clarify that, when I use rmarkdown::render, the pdf document is created but it is in the default format not the customised one. It must have something to do with rmarkdown.
My session is
R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.7
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
locale:
[1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] readxl_1.3.1 forcats_0.5.0 stringr_1.4.0 dplyr_1.0.2 purrr_0.3.4 readr_1.3.1 tidyr_1.1.1
[8] tibble_3.0.3 ggplot2_3.3.2 tidyverse_1.3.0
R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.7
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
locale:
[1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rmarkdown_2.6 readxl_1.3.1 forcats_0.5.0 stringr_1.4.0 dplyr_1.0.2 purrr_0.3.4 readr_1.3.1
[8] tidyr_1.1.1 tibble_3.0.3 ggplot2_3.3.2 tidyverse_1.3.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.5 cellranger_1.1.0 pillar_1.4.6 compiler_3.6.3 dbplyr_1.4.3 tools_3.6.3
[7] digest_0.6.27 evaluate_0.14 jsonlite_1.7.2 lubridate_1.7.8 lifecycle_0.2.0 nlme_3.1-144
[13] gtable_0.3.0 lattice_0.20-38 pkgconfig_2.0.3 rlang_0.4.10 reprex_0.3.0 cli_2.0.2
[19] DBI_1.1.0 rstudioapi_0.11 xfun_0.20 haven_2.2.0 knitr_1.31 withr_2.2.0
[25] xml2_1.3.1 httr_1.4.1 fs_1.4.1 generics_0.0.2 vctrs_0.3.2 hms_0.5.3
[31] grid_3.6.3 tidyselect_1.1.0 glue_1.4.2 R6_2.4.1 fansi_0.4.1 modelr_0.1.6
[37] magrittr_2.0.1 htmltools_0.5.1.1 backports_1.1.9 scales_1.1.1 ellipsis_0.3.1 rvest_0.3.5
[43] assertthat_0.2.1 colorspace_1.4-1 stringi_1.5.3 munsell_0.5.0 broom_0.5.6 crayon_1.3.4