3
I have a test file. A in the folder: C: Users Documents R And I’ve already added R to the windows PATH: C: Program Files R R-3.0.2 bin
When in the 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: TEST ARGUMENT. R ignored
And the R is initiated in the cmd.
After started the R if I type source("teste.R")
windows runs the script, but wanted to avoid this step of starting R on CMD.
in linux the output of
R CMD BATCH teste.R
is the fileteste.Rout
. Already the exit ofRscript teste.R
goes to the terminal. This is the same behavior in windows?– Marcos Banik
Yeah, the same thing!
– Carlos Cinelli