[R] Scan document including "\n"

ppatel3026 pratik.patel at us.rothschild.com
Tue Jun 17 19:01:58 CEST 2008


How do you read in a whole file while preserving end of line "\n" characters?
Basically, read in a whole file as one string.

Ex:
<XML>
<TAG>
</TAG>
</XML> 

After this file is read into a variable, it should really look like
"<XML>\n<TAG>\n</TAG>\n</XML>\n"


-- 
View this message in context: http://www.nabble.com/Scan-document-including-%22%5Cn%22-tp17920810p17920810.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list