[R-SIG-Mac] sh: convert: command not found

Simon Urbanek simon.urbanek at r-project.org
Fri Oct 24 16:54:26 CEST 2014


> On Oct 24, 2014, at 10:51 AM, peter dalgaard <pdalgd at gmail.com> wrote:
> 
> 
> On 24 Oct 2014, at 15:03 , Simon Urbanek <simon.urbanek at r-project.org> 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: pd.mes at cbs.dk  Priv: PDalgd at gmail.com
> 
> 
> 
> 
> 
> 
> 
> 



More information about the R-SIG-Mac mailing list