Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in R Programming by (7.3k points)
Can anyone tell me how to run the R program?

1 Answer

0 votes
by (41.4k 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, 2020 in R Programming by leealex956 (7.3k points)
0 votes
1 answer
asked Jul 13, 2020 in R Programming by leealex956 (7.3k points)

Browse Categories

...