rmarkdown: pandoc: pdflatex not found
This answer on TexExchange might help.
I found I was having issues with pdflatex
"missing" after I upgraded to OS X Mavericks (e.g. when checking package builds in RStudio I was getting an error tools::texi2pdf pdflatex missing
message).
Check that
/usr/texbin
exists.
In terminal:cd /usr/texbin
If "No such file or directory" then you will need to create a symbolic link to your installation's texbin. Mine was in
/Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin
In terminal:ln -s /Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin /usr/texbin
In terminal, check the result of
echo $PATH
. Make sure that/usr/texbin
is present. If it isn't present, then you need to add/usr/texbin
to yourPATH
variable.
If you find yourself having to mess with the PATH
variable, installing the latest version of MacTex might be a better solution.
UPDATE: OS X 10.11 El Capitan no longer allows writes to /usr
so the latest version of MacTeX (2015) now writes a link to /Library/TeX/texbin
instead of /usr/texbin
on this system.
pandoc via launchd -- getting error: pdflatex not found. pdflatex is needed for pdf output
The solution was to add the path for pdflatex to the bash script, as follows:
#!/bin/bash
PATH=$PATH:/usr/texbin
/usr/local/bin/pandoc -o /Users/Jon/dev/intercontinental/ddd.pdf /Users/Jon/dev/intercontinental/ddd.ddd
Related Topics
Dplyr::First() to Choose First Non Na Value
Remove Geom(S) from an Existing Ggplot Chart
Get Execution Time in Milliseconds in R
Installing a Package Offline from Github
R: How Does a Foreach Loop Find a Function That Should Be Invoked
How to Organize Large Shiny Apps
Confidence Intervals for Predictions from Logistic Regression
Remove All Variables Except Functions
What Techniques Exists in R to Visualize a "Distance Matrix"
Screening (Multi)Collinearity in a Regression Model
Quickly Remove Zero Variance Variables from a Data.Frame
How to Create Textarea as Input in a Shiny Webapp in R
Differences in Heatmap/Clustering Defaults in R (Heatplot Versus Heatmap.2)
Understanding the Differences Between Mclapply and Parlapply in R
Comparison Between Dplyr::Do/Purrr::Map, What Advantages