Skip to content
Prev 25126 / 63424 Next

inline C/C++ in R: question and suggestion

On Tuesday 22 May 2007 3:52 pm, Duncan Murdoch wrote:
I second that. My favorite implementation of this is in Tcl, where curly 
braces {} mean that the text they enclose is unmodified. Since language 
constructs using them are normally balanced this is not an impediment.

One extremely useful application of this (aside from long strings) is 
specifying inline data frames - I don't know how to do this otherwise.

I.e. something like:

A<- scan.string({#
Id Value Mark
1	a	3
2	b	4
#	})

                          best

                              Vladimir Dergachev