Hello,

could someone help me with this problem?:

I would like to create a latex-script inside of a character vector in order
to being able to compilate it within latex in the end.

if i try the following commands:

l1 <- "Hello world"
latexscript <- paste("\c",l1,"\c")

... I get an error message. I think the problem is that r sees \c as a
command.

How can I get

"\c Hello world \c"

as a result without getting the error message?

Thank you in advance for your help.

Marion

        [[alternative HTML version deleted]]

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

Reply via email to