backslash
On 22 May 2000, Peter Dalgaard BSA wrote:
Helgi Tomasson <helgito at hi.is> writes:
Hi R-people
I am trying to have R write latex-code.
"\begin{tabular}"
and
"\end{tabular}
do not produce similar results. I would like to something like
write("\begin{tabular} ,file=. . .)
.
.
.
write("\end{tabular},file=. . .)
Hmmm. Not too clear what your problem is but if something is eating your backslashes, chances are that you just need to double them, as in
cat("\\help\n")
\help
In some rare cases you need to redouble them, but this is not one of them, I think....
Oh. It is one of these cases , I think: \b means: Backspace! To write something with "\" in it, it is much safer to double the "\" every time. Regards, Uwe Ligges
-- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._