[R] backslash

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Mon May 22 18:54:16 CEST 2000


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....

-- 
   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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list