Reproducibility for the Rest of Us
Using Space Wisely
This lesson is called Using Space Wisely, part of the Reproducibility for the Rest of Us course. This lesson is called Using Space Wisely, part of the Reproducibility for the Rest of Us course.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Loading transcript...
Your Turn
Open the
unformatted-r-code.Rfile and fix the formattingAdd hard returns to keep lines short
Add spaces after punctuation and around operators
Indent functions or processes that go together
Choose an option:
Fix the formatting by hand
Fix the formatting by hand then then run
stylerto find anything missedFix it using the
stylerpackage entirely
Learn More
Two great resources on writing readable code are:
Have any questions? Put them below and we will help you out!
Course Content
12 Lessons
You need to be signed-in to comment on this post. Login.