Error running /Users/stevenkoller/Library/TinyTeX/bin/universal-darwin/pdflatex (exit code 1)
Steve-Koller opened this issue · comments
Hello, I've been trying to compile a pdf from RStudio in an R Sweave file using TinyTeX for weeks now without success. I prefer using RStudio to Overleaf, and previously had success compiling pdfs with TinyTeX, along with biber and biblatex. Here is a link to my previous post on StackExchange, which has not garnered responses that have helped solve the issue.
I'm currently running version 0.35 of tinytex. When I run:
Sys.which("pdflatex")
I get:
pdflatex
"/Users/stevenkoller/Library/TinyTeX/bin/universal-darwin/pdflatex"
In Terminal, when I run:
echo $PATH
I get:
/Users/stevenkoller/Library/TinyTeX/bin/universal-darwin:/Users/stevenkoller/Library/TinyTeX/bin/universal-darwin
I'm able to successfully create a pdf using "latex" and "pdflatex" commands in Terminal, as the "Compile PDF" button in RStudio is able to create a compileable .tex file from the .Rnw file. However, whenever I try to "Compile PDF" within RStudio, I receive the error message in the issue title above. At a bit of a loss here, nearing the point of switching to Overleaf or a different distro. Any insight you can provide would be most appreciated!
By filing an issue to this repo, I promise that
- I have fully read the issue guide at https://yihui.org/issue/.
- I have provided the necessary information about my issue.
- If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
- If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included
xfun::session_info('tinytex')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/tinytex')
. - If I have posted the same issue elsewhere, I have also mentioned it in this issue.
- I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
Let's continue the conversation on Stack Overflow.
I'm surprised that your PATH
variable contains /Users/stevenkoller/Library/TinyTeX/bin/universal-darwin
. It seems you have modified the PATH variable manually somewhere (e.g., in .zshrc
or .bashrc
). You don't need to do that.