linebreak in rmd

Hi

My goal is to avoid the following situtation, that the code overfloas the area:

I mainly use the styler, but I do not know how to set up that for break a line after 70 characters.

Thank you for your help in advance,
Marcell

Can you post the code instead of an image of the code?

Can't you just break at the commas?

1 Like

I believe {styler} uses the width option to decide where to insert new lines. Setting options(width=70) before running styler::style_text() or styler::style_file() might work for you

You currently can't, it's the most requested feature: https://github.com/r-lib/styler/issues/247. Until it's supported, break your lines manually and follow the issue so you'll get notified once it's resolved.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.