[R] how to wrap a long line in R scripts?

Peter Ehlers ehlers at ucalgary.ca
Mon Jan 10 15:44:01 CET 2011

On 2011-01-10 02:36, Tutu2008 wrote:
> The guide of R Code style recommends to write script with a maximal
> length of 80 characters?
> how to break a line longer than 80 characters like
> filename_name<- ("/blaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/"/
> blaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/data.csv")

I would use file.path() on the pieces that go into
your filename.

Peter Ehlers

> I did not find any answer while googling.
> Thank you!

More information about the R-help mailing list