I am trying to run R script using RGui using Rscript command. It throws me error saying Error: object 'Rscript' not found. I am able to run this script from command prompt successfully. What I need to set in RGui to make it run??
Asked
Active
Viewed 4,438 times
0

bdemarest
- 14,397
- 3
- 53
- 56

RockySingh
- 11
- 1
- 4
-
3`Rscript` needs to be used from the system command prompt, not at the R command prompt. `source()` seems to do what you need. – bdemarest Mar 13 '17 at 23:27
-
thanks for response,this helps :) – RockySingh Mar 13 '17 at 23:33
1 Answers
1
You just have to enter the full path using script and double backslash to escape various characters such as "\U" in "C:\Users" for example.
source("C:\\.R")
Like this.

Manolee
- 21
- 1
- 4