I have below code in new.R file, which is working fine in RStudio interactive mode.
system_command <- paste("WScript", " C:/Users/OneDrive/Desktop/r1.vbs")
system(command = system_command)
But when I run the new.R
file using Rscript
, its not invoking the vbs script. Is there any other way to invoke vbs script in Rscript mode?