R

Asked • 05/31/19

Split code over multiple lines in an R script?

I want to split a line in an R script over multiple lines (because it is too long). How do I do that?Specifically, I have a line such as setwd('~/a/very/long/path/here/that/goes/beyond/80/characters/and/then/some/more')Is it possible to split the long path over multiple lines? I tried setwd('~/a/very/long/path/here/that/goes/beyond/80/characters/and/ then/some/more')with `return` key at the end of the first line; but that does not work.Thanks.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.