Skip to Content

R - run R script from VBA

How can I run R script from VBA? Say I have a R script stored as C:\XXX\testR.r

I tried using Shell, but not quite successful.

Thank you for the advice!