Rstudio cannot find TeX.

oyvind.s.aur's Avatar

oyvind.s.aur

17 Jun, 2012 11:38 AM

Hi, I have installed Rstudio on a new computer and for some reason it cannot find the path for tex. When running the suggested command, I get:

Sys.which('pdflatex') pdflatex

  ""

When opening an .Rnw-document I get the warning "No TeX installation detected. Please install TeX before compiling."

What can I do?

Thank you for your help!

  1. Support Staff 2 Posted by Josh Paulson on 17 Jun, 2012 04:53 PM

    Josh Paulson's Avatar

    Oyvind,

    How did you install TeX (MiKTeX, ProTeX, or other) and also what location did you install it to? pdflatex needs to be in your path for RStudio to pick it up.

    Josh

  2. 3 Posted by oyvind.s.aur on 18 Jun, 2012 07:19 AM

    oyvind.s.aur's Avatar

    I have installed MiKTeX to C/program files. How do I change the path so Rstudio will pick it up?

    Thanks,

    Øyvind.

  3. Support Staff 4 Posted by Josh Paulson on 18 Jun, 2012 09:49 PM

    Josh Paulson's Avatar

    Øyvind,

    Take a look at the previous discussion:

    http://support.rstudio.org/help/discussions/problems/1063-sweaving-...

    Josh

  4. Josh Paulson closed this discussion on 20 Jun, 2012 02:25 PM.

Comments are currently closed for this discussion. You can start a new one.