r comment string code example Example 1: r comment # for 1 line of code Example 2: comment in r # comment statement : no multiline comments in R