Skip to content
Prev 296210 / 398506 Next

RScript.exe and map directory issue

The backslash character does not escape anything in the shell in Windows.  You need to make sure that filenames/paths with spaces are surrounded by double quotes.  So try something like

Call Shell(rPath & "\Rscript.exe ""C:\Work\Latest 1\_Test.R""", vbHide)


Hope this is helpful,

Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204