0 votes
1 view
in R Programming by (7.8k points)
Can anyone tell me how to run the R program?

1 Answer

0 votes
by (35k points)

To run R programs, you need to use RStudio. In RStudio, you have to perform the following operations:

  • Go to File > New File > R script
  •  Put your code in the newly created R script file 
  • Click on the line that you need to run and press Ctrl+Enter

Also, you can run R programs by using CMD by following the below steps:

  • Open the notepad and paste the path of the R.exe file located on your computer
  • Then, extract the path of the R file that consists of code
  • Combine the path of the R.exe file and the R file by using CMD BATCH
  • Save the notepad file with the '.bat' extension
  • Finally, run the batch file, and your R programs will be executed

If you are looking for an online course to learn R programming, check out this R Programming Course by Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jul 13 in R Programming by leealex956 (7.8k points)
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...