Skip to content
R for the Rest of Us Logo

This lesson is locked

Get access to all lessons in this 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.

Your Turn

  • Open the unformatted-r-code.R file and fix the formatting

    • Add 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 styler to find anything missed

    • Fix it using the styler package entirely

Learn More

Two great resources on writing readable code are:

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.