Skip to content

RScript.exe and map directory issue

1 message · Bert Jacobs

#
Thx Michael,
After some testing (with more luck then craftmanship) it appears that
following code works:
Call Shell(rPath & "\Rscript.exe " & """C:\Work\Latest 1\_Test.R""", vbHide)
I'll also try your solution.
SY,
Bert



-----Original Message-----
From: R. Michael Weylandt [mailto:michael.weylandt at gmail.com] 
Sent: 31 May 2012 23:51
To: Bert Jacobs
Cc: r-help at r-project.org
Subject: Re: [R] RScript.exe and map directory issue

Not on Windows so I can't test, but I imagine you need to escape the
space: try this:

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

Michael

On Thu, May 31, 2012 at 4:40 PM, Bert Jacobs
<bert.jacobs at figurestofacts.be> wrote:
http://www.R-project.org/posting-guide.html