Hi I use hmisc on a Windows 9-x64 machine and it causes an error: running command 'cd "C:\Users\Renger\AppData\Local\Temp\Rtmp4IOgfH" & pdflatex -interaction=scrollmode "C:\Users\Renger\AppData\Local\Temp\Rtmp4IOgfH\file1b9482a7388"' had status 127 It also gives an API error 2. The file is in the directory mentioned in the error message and, in a dos window, I can change to that directory and run pdflatex on the file? without a problem. I tried to set the working directory to ?c:\temp and the tempdir also to c:\temp, but this did not help. The problem happens in ESS/Emacs and under RStudio. Any idea what can be the cause? (I searched the internet, but it seems nobody has a solution). Thanks Renger _________________________ Renger van Nieuwkoop Goldiwilstrasse 16 F 3600 Thun +41 33 221'53'05 (p) +41 79 818'53'73 (m) renger at vannieuwkoop.ch