I want to run a r-script via cmd.
My first try:
"C:\Program Files\R\R-3.6.0\bin\R.exe" CMD BATCH U:\Projects\005_Reports\Delta\Delta.R
Result: Just an empty line "U:\", the script was not executed
My second try:
U:\>"C:\Program Files\R\R-3.6.0\bin\i386\Rscript.exe" U:\Projects\005_Reports\Delta\Delta.R
Result/Error:
`Attache Paket: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
warning:
Package 'dplyr' was created under R version 3.6.1
Error: RStudio not running
Execution stopped
`
I thought it was because of the missing package, so I tried the following:
U:\>"C:\Program Files\R\R-3.6.0\bin\i386\Rscript.exe" -e 'install.packages("dplyr", repos="https://cran.rstudio.com")'
Result/Error:
U:\>"C:\Program Files\R\R-3.6.0\bin\i386\Rscript.exe" -e 'install.packages("dplyr", repos="https://cran.rstudio.com")'
Error: unexpected end of input
Execution stopped