[R] LaTeX in system()

2008-05-08 Thread Christoph Heibl
Dear list, I want to run latex from an R script: system(latex mysource.tex) or: texi2dvi(mysource.tex, pdf = TRUE, clean = FALSE, quiet = TRUE, texi2dvi = latex) but latex does not seem to be on the search path: /bin/sh: line 1: latex: command not found. Although

Re: [R] LaTeX in system()

2008-05-08 Thread Peter Dalgaard
Christoph Heibl wrote: Dear list, I want to run latex from an R script: system(latex mysource.tex) or: texi2dvi(mysource.tex, pdf = TRUE, clean = FALSE, quiet = TRUE, texi2dvi = latex) but latex does not seem to be on the search path: /bin/sh: line 1: latex

Re: [R] LaTeX in system()

2008-05-08 Thread Erik Iverson
nothing to do with R directly. If that is the problem, there is probably some way to set environment variables so that the Mac GUI shell knows about them. HTH, Erik Iverson Christoph Heibl wrote: Dear list, I want to run latex from an R script: system(latex mysource.tex

Re: [R] LaTeX in system()

2008-05-08 Thread Charilaos Skiadas
to set environment variables so that the Mac GUI shell knows about them. HTH, Erik Iverson Christoph Heibl wrote: Dear list, I want to run latex from an R script: system(latex mysource.tex) or: texi2dvi(mysource.tex, pdf = TRUE, clean = FALSE, quiet = TRUE, texi2dvi = latex