printing r code example Example 1: print in r cat(c("hello", "world", "\n")) Example 2: print in r cat(c("hello", "world", "\n")) #hello world