You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is aesthetic, not substantive, but a very common aesthetic: lines of code in particular should not extend longer than 80 char. Back in the dark old days, this was because screens were only 80 char wide and if you had a line longer than that, it wouldn't display (the source of pernicious bugs, apparently).
Now, it is because the General Wisdom is that people don't read lines longer than 80 char very easily.
R is typically pretty easy in regards to breaking up lines -- just hit enter, it usually doesn't care about the extra space. However, stirngs can be a pain. I use paste to break it up -- something like this:
paste("This is a really long line of text",
"that I don't want to extend past 80",
"char. So, I use paste to break up the",
"lines", sep="")
The text was updated successfully, but these errors were encountered:
it is a good idea to use a linter in any language. A commonly used linter in R is styler. Just run it on the whole package -- no need to put much effort into it.
This is aesthetic, not substantive, but a very common aesthetic: lines of code in particular should not extend longer than 80 char. Back in the dark old days, this was because screens were only 80 char wide and if you had a line longer than that, it wouldn't display (the source of pernicious bugs, apparently).
Now, it is because the General Wisdom is that people don't read lines longer than 80 char very easily.
R is typically pretty easy in regards to breaking up lines -- just hit enter, it usually doesn't care about the extra space. However, stirngs can be a pain. I use
paste
to break it up -- something like this:The text was updated successfully, but these errors were encountered: