Using R Studio, you can do Control+Shift+C, or Command+Shift+C on macOS.
# comment statement : no multiline comments in R
# for 1 line of code