Comments in R
In general, Comments are used in a programming language to describe the program or to hide some part of code from the interpreter.
R supports only single line comments.
In case the user wants to specify a single line comment, then comment must start with #. R will ignore anything that starts with #.
Example
# This is single line comment
print ("Welcome to R")
In R, unlike other programming languages, like Java or python, there is no syntax in R for multiline comment. Instead, you just need to put a # at the beginning of each line to make a multiline comment.