> On Oct 24, 2014, at 10:51 AM, peter dalgaard <[email protected]> wrote: > > > On 24 Oct 2014, at 15:03 , Simon Urbanek <[email protected]> wrote: >>> >> >> I think it's better without so it is inherited implicitly, i.e. >> system(paste0("PATH=",shQuote(Sys.getenv("PATH"))," which pdflatex")) > > OK, if it works, it works. The thing that worried me slightly is that > standard unix logic is that > > FOO=bar baz > > sets FOO in the environment of baz, and it was not obvious to me that setting > PATH= affects the _shell_ while it is looking for baz. (This might be > documented somewhere in POSIX?). >
Aye - my bad. It works for which because that's where PATH is interpreted, but if you replaced it with PATH=... pdflatex if wouldn't find pdflatex. Thanks, S > -pd > > -- > Peter Dalgaard, Professor, > Center for Statistics, Copenhagen Business School > Solbjerg Plads 3, 2000 Frederiksberg, Denmark > Phone: (+45)38153501 > Email: [email protected] Priv: [email protected] > > > > > > > > _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
