Mikkel,
As
RSiteSearch("backslash")
would have shown you, this is a FAQ.
Your second attempt is correct.
To understand why, see the R FAQ
7.37 Why does backslash behave strangely inside strings?
Chuck
On Tue, 7 Aug 2007, Mikkel Grum wrote:
> How do I get output with "\colo
Perhaps:
cat("\\color{blue}\n")
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
On 07/08/07, Mikkel Grum <[EMAIL PROTECTED]> wrote:
>
> How do I get output with "\color{blue}", i.e. with
> only one backslash???
>
> > "\color{blue}"
> [1] "color{blue}"
> Warning messag
How do I get output with "\color{blue}", i.e. with
only one backslash???
> "\color{blue}"
[1] "color{blue}"
Warning messages:
1: '\c' is an unrecognized escape in a character
string
2: unrecognized escape removed from "\color{blue}"
> "\\color{blue}"
[1] "\\color{blue}"
>
Any help greatly app