Try cat(), for instance: > cat("\\\n") \ >
The extra \n is needed for a proper line break. HTH, Josh On Tue, Jul 6, 2010 at 7:01 PM, thmsfuller...@gmail.com <thmsfuller...@gmail.com> wrote: > Hello All, > > '\\' is printed as '\\', but it is actually only one character. > Sometimes, I'd rather print it as a single '\'. Is there a function to > do so in R? > >> nchar('\\') > [1] 1 >> print('\\') > [1] "\\" > > -- > Tom > > ______________________________________________ > 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. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ ______________________________________________ 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.