I am a bit confused... I wrote a little shell script called tex2pdf which just calls: texi2pdf body.tex and when I execute it in a terminal it runs smoothly. If I type into R: system("/Path/to/tex2pdf") I get the same error message:
You don't have a working TeX binary (tex) installed anywhere in your PATH, and texi2dvi cannot proceed without one. If you want to use this script, you'll need to install TeX (if you don't have it) or change your PATH or TEX environment variable (if you do). See the --help output for more details. For information about obtaining TeX, please see http://www.tug.org. If you happen to be using Debian, you can get it with this command: apt-get install tetex-bin How can this happen? I originally thought it's a problem with the texi2dvi function in R but it seems to be something else... -- View this message in context: http://r.789695.n4.nabble.com/How-to-run-Bibtex-with-pdfLatex-in-StatEt-MikTex-on-Windows-tp2271396p3868123.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.