RE: [Rd] Parsing multi-line strings. Bug? Feature?

From: Gabor Grothendieck <>
Date: Thu 29 Jul 2004 - 08:48:17 EST

One workaround is the idea in

which, applied to this problem would be used by entering the snippets as inline data files and reading them into R variables which can then be cat'ed. You do have to preface each line of the inline data with a marker but that is trivial in sufficiently powerful text editors.


Date:   	Wed, 28 Jul 2004 15:09:04 -0700 (PDT)
From:   	Kevin Wright <>
To:   	<>
Subject:   	[Rd] Parsing multi-line strings. Bug? Feature?

I have an S-Plus library that I would like to port to R. The library
sends a mix of static and dynamic output to an html file. For example

Big block of HTML formatting code

cat(dat()) cat(" More static text
With S-Plus I can just cut and paste HTML code from other files into my S-Plus script file. This makes maintenance of the script fairly easy. The R parser chokes on this and requires strings to have a backslash for line continuation: f = function(){ sometext = " abc \ def" } Mark Bravington discussed the same issue (with comments about the documentation) here: I would like to echo Mark's request that compatability with S-Plus be considered. Thanks Kevin Wright ______________________________________________ mailing list
Received on Thu Jul 29 08:53:04 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:04 EST