I'm trying to use R Studio, R version 3.6.3 and MacTex (TeX Live) to create a pdf from a *.Rmd file.
My code:
---
title: "Test"
output: pdf_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)```
Error message:
processing file: Untitled.Rmd
|....................... | 33%
ordinary text without R code
|............................................... | 67%
label: setup (with options)
List of 1
$ include: logi FALSE
|......................................................................| 100%
ordinary text without R code
/usr/local/bin/pandoc +RTS -K512m -RTS Untitled.utf8.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output Untitled.tex --self-contained --highlight-style tango --pdf-engine pdflatex --variable graphics --lua-filter /Users/Jo/Library/R/3.6/library/rmarkdown/rmd/lua/pagebreak.lua --lua-filter /Users/Jo/Library/R/3.6/library/rmarkdown/rmd/lua/latex-div.lua --variable 'geometry:margin=1in'
output file: Untitled.knit.md
TeX Live 2019 is frozen forever and will no
longer be updated. This happens in preparation for a new release.
If you're interested in helping to pretest the new release (when
pretests are available), please read [link omitted].
Otherwise, just wait, and the new release will be ready in due time.
You don't have permission to change the installation in any way,
specifically, the directory /usr/local/texlive/2019/tlpkg/ is not writable.
Please run this program as administrator, or contact your local admin.
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr update --self
tlmgr: package repository [link omitted]
(not verified: valid signature with expired key)
TeX Live 2019 is frozen forever and will no
longer be updated. This happens in preparation for a new release.
If you're interested in helping to pretest the new release (when
pretests are available), please read [link omitted].
Otherwise, just wait, and the new release will be ready in due time.
You don't have permission to change the installation in any way,
specifically, the directory /usr/local/texlive/2019/tlpkg/ is not writable.
Please run this program as administrator, or contact your local admin.
tlmgr: An error has occurred. See above messages. Exiting.
fmtutil [ERROR]: format directory not writable: /usr/local/texlive/2019/texmf-var/web2c
You don't have permission to change the installation in any way,
specifically, the directory /usr/local/texlive/2019/tlpkg/ is not writable.
Please run this program as administrator, or contact your local admin.
tlmgr: An error has occurred. See above messages. Exiting.
! LaTeX Error: File `kvoptions.sty' not found.
! Emergency stop.
<read *>
How should I proceed / do you need any other information to assess the problem?
Thank you so much!
Edit:
Interestingly tho, the errors remain the same when I try to render the *Rmd file as the admin. I checked the permissions for the path mentioned in the error message, hope that helps.
admin@MacBook-Jo Jo % ls -ld "/usr/local/texlive/2019/tlpkg/"
drwxr-xr-x 24 root staff 768 8 Apr 20:01 /usr/local/texlive/2019/tlpkg/
admin@MacBook-Jo Jo % dscl . read /Groups/staff GroupMembership
GroupMembership: root admin
Following technocrat's suggestion I posted the question on a LaTeX forum: https://tex.stackexchange.com/questions/537532/error-undefined-control-sequence-using-r-markdown-to-create-a-pdf-under-mact