Dear friends of R, I want to produce a pdf file with the contents of a matrix. I employ the latex command in combination with dvi, both contained in the Hmisc package. It seems to me that the function does not correctly set the directory.
> tbl.loc <- matrix(1:4, nc=2) > latex.obj <- latex(tbl.loc) > dvi(latex.obj) warning: extra args ignored after 'cd' H:\PROJECTS\data warning: extra args ignored after 'yap' When I have a look at the function dvi.latex I find the following line which, I guess, is meant to set the new directory and to run latex. sys(paste("cd", shQuote(tempdir()), sc, optionsCmds("latex"), "-interaction=scrollmode", shQuote(tmp)), output = FALSE) Running just the piece shQuote(tempdir()) returns > shQuote(tempdir()) [1] "\"C:\\DOKUME~1\\ferimawi\\LOKALE~1\\Temp\\Rtmpr4CG3A\"" > tempdir() [1] "C:\\DOKUME~1\\ferimawi\\LOKALE~1\\Temp\\Rtmpr4CG3A" Is the leading "\" causing the problem? How can I fix the problem? The R-help dealt with a related problem some while ago but I do not think that it resolves my problem: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/62975.html I am using Windows XP, R version 2.7.2 (2008-08-25) and Hmisc version 3.4-4. Thanks in advance for your help. Regards Marco Marco Willner Senior Analyst Quantitative Asset Allocation Feri Finance AG Haus am Park Rathausplatz 8-10 D-61348 Bad Homburg v.d.H Tel: +49 (6172) 916 3037 Fax: +49 (6172) 916 1037 E-Mail: marco.will...@feri.de Internet: www.feri.de Handelsregister des Amtsgerichts Bad Homburg v.d.H. (HRB 7473) Vorstände: Michael Stammler (Sprecher), Dr. Matthias Klöpper, Dr. Helmut Knepel, Dr. Heinz-Werner Rapp, Arndt Thorn Vorsitzender des Aufsichtsrates: Dr. Uwe Schroeder-Wildberg Disclaimer: Diese Nachricht enthält vertrauliche und/oder ausschließlich für den Adressaten bestimmte Informationen. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts dieser E-Mail und der E-Mail selber unzulässig ist. Sollten Sie diese E-Mail irrtümlich erhalten haben, so bitten wir Sie, den Absender unverzüglich durch Antwort-E-Mail oder Anruf unter +49 (6172) 916-0 zu informieren und diese Nachricht zu löschen. Soweit nicht anderweitig angegeben, ist diese Nachricht weder ein Angebot noch die Einholung eines Angebots zum Kauf oder Verkauf von Investitionen jedweder Art. Wir senden und empfangen E-Mails nur auf der Grundlage, dass wir nicht für Datenkorruption, Abfangen von Daten, nicht autorisierte Änderungen, Verfälschung und Viren und deren Konsequenzen haften. This message contains confidential and/or privileged inf...{{dropped:16}}
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.