How to run a VBS script from R, while passing arguments from R to VBS

Viewed 3961

Let's say I want to run a VBS script from R, and I want to pass a value from R to that script.

For example, in a simple file called 'Msg_Script.vbs', I have the code:

Dim Msg_Text

Msg_Text = "[Insert Text Here]"

MsgBox("Hello " & Msg_Text)

How do I run this script using R, while editing the parameters and/or variables in R? In the above script for instance, how would I edit the value of the Msg_Text variable?

2 Answers
Related