[R] Need to have more control on cat()
Barry Rowlingson
b.rowlingson at lancaster.ac.uk
Mon Sep 13 13:16:19 CEST 2010
On Mon, Sep 13, 2010 at 12:11 PM, Christofer Bogaso
<bogaso.christofer at gmail.com> wrote:
> Thanks Barry, I agree it will work. But this approach destroys the
> "indent" in the program body therefore entire body of program looks
> messy, for example
>
> cat("Here I
> put indent")
>
> obviously looks better for someone who reads my code, than
>
> cat("Here I
> dont put indent")
>
> Any better approach?
Something like:
cat("Here I\n",
"have some indented source\n",
"which doesn't output indented.",sep="")
Barry
More information about the R-help
mailing list