I am new to R Studio. I am seeing when we hit enter in R console it executes the code. How do we write codes directly in console? For example when I write a sequence of codes and how to go to new line without hitting "enter" which is basically executing the code.
Are we supposed to write the code in R script editor and saved as an R file. Please bear with me that this is a basic question. Thank you.