Alec
Alec

Reputation: 4472

Execute two commands sequentially on one line in R?

I know in shell one can do:

command1; command2

How about in R? Is there some syntax where I could combine two commands onto one line?

Upvotes: 42

Views: 44091

Answers (1)

Rainer
Rainer

Reputation: 8671

try ";":

cat("12"); cat("13"); cat("\n")

Upvotes: 57

Related Questions