229k views
3 votes
Which of the following statements is true about R?

a. We can either save our codes in the console or script files depending on our personal preferences
b. Once I finish typing code into a script file, R will execute the code automatically
c. I don't need to save my workspace image if I save my script files often
d. It is not necessary to save script files too often because R will save them automatically

1 Answer

2 votes

Final answer:

In R, you can save your code in either the console or script files as per your preference. It is essential to save your script files manually, because R does not save them automatically. Saving your workspace image is also a manual task, independent of saving script files.

Step-by-step explanation:

The statement that is true about R is: We can either save our codes in the console or script files depending on our personal preferences. This means that you can work directly in the R console for immediate execution of code, or you can write your code in script files (.R files) for more complex projects, which allows you to save your work and execute the code later.

It's important to manually save your script files, as R will not save them automatically. Furthermore, saving your workspace image is a separate process from saving script files and must be done manually if you wish to preserve the current state of your environment variables.

User Jackbot
by
8.1k points