Skip to content
Prev 296208 / 398506 Next

RScript.exe and map directory issue

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
Message-ID: <001701cd3f79$49de98d0$dd9bca70$@jacobs@figurestofacts.be>
In-Reply-To: <CAAmySGOY_Q5w_B-QojNZir_CpW68Fx2gwRAq1SA0=yJFFxhNkA@mail.gmail.com>