Skip to content
Justice Tech School

R Comments

Comments start with # and run to the end of the line. R has no multi line comment, so put # on each line.

Example
# This is a comment
x <- 3 # inline comment
print(x)

Exercise

Start a comment.

 note

Quiz Test

Which starts an R comment?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.