fork download
  1. #Hello World!. Lets learn comments in R.
  2.  
  3. docomment <-function()
  4. {
  5. "
  6. This function prints a pretty message.
  7. These lines within quotes are block comments.
  8. "
  9. cat("You should comment you code.\n")
  10. }
  11. docomment()
  12.  
  13. #In the R prompt type source("Comments_in_R.R")
Success #stdin #stdout 0.45s 79168KB
stdin
Standard input is empty
stdout
You should comment you code.