Display a text with R
To display ( or print) a text with R, use either the R-command cat() or print(). Note that in each case, the text is considered by R as a script, so it should be in quotes.
Note there is subtle difference between the two commands so type on your prompt help(cat) and help(print) to see the difference.
Note there is subtle difference between the two commands so type on your prompt help(cat) and help(print) to see the difference.
>cat("Hello R")> Hello R
>print("Hello R")
> Hello R