How can I run a R script from VBA? Say I have a R script stored as C:\\XXX\\testR.R
I tried using Shell, but not quite successful.
Public Sub RunRTest() Shell ("Rscript test.r") End Sub