I am attempting to use rmarkdown::render()
with a service account to execute reporting. I am running into the following error, although I am having trouble debugging the issue. The directories specified have write access for the service account. I can see the pandoc*.tex
that are created where I specified the intermediates_dir
files.
options(tinytex.verbose = TRUE)
rmarkdown::render(input = "/Project_Name/rmarkdown.Rmd",
output_file = paste0("/Project_Name/Output/",
Sys.Date(),
"_rmarkdown.pdf"),
intermediates_dir = "/home/Service_Account/store_temp_files/")
/usr/lib/rstudio-server/bin/pandoc/pandoc +RTS -K512m -RTS '/Project_Name/Output/rmarkdown.utf8.md' --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output pandoc1cb562dae79.tex --self-contained --highlight-style tango --pdf-engine pdflatex --variable graphics --lua-filter /opt/R/3.6.3/lib/R/library/rmarkdown/rmd/lua/pagebreak.lua --lua-filter /opt/R/3.6.3/lib/R/library/rmarkdown/rmd/lua/latex-div.lua
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
! I cant write on file '2020-12-08_rmarkdown.log'.
(Press Enter to retry, or Control-D to exit; default file extension is '.log')
Please type another transcript file nameError: LaTeX failed to compile /Project_Name/Output/2020-12-08_rmarkdown.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips.
I have TinyTex installed in a root file that may not have write permission.
> tinytex::tinytex_root()
[1] "/data/TinyTeX/.TinyTeX"
If the .log
file is my issue, where are the .log
files written to? How can I declare that the .log
is written to a path with write permissions?