I have a test.r file in the folder: C: \ Users \ Documents \ R And I already added the R in the windows PATH: C: \ Program Files \ R \ R-3.0.2 \ bin
When in cmd I try the command R CMD teste.R
Windows does not know which program to use to open the file.
If I use the command R teste.R
The following message appears: ARGUMENT'teste.R Ignored
And the R is started in cmd.
After starting R if I type source("teste.R")
windows runs the script, but wanted to avoid this step of starting R in CMD.