Skip to content
Prev 373345 / 398500 Next

command line fails

Thans Dan. It seems that it may be an issue with 3.4.3...I'm going to attempt a patch this weekend. The code works fine from the command line in 3.2.5!

Michael Ashton, CFA
Managing Principal

Enduring Investments LLC
W: 973.457.4602
C: 551.655.8006


-----Original Message-----
From: Daniel Nordlund [mailto:djnordlund at gmail.com] 
Sent: Friday, February 02, 2018 4:44 PM
To: Michael Ashton; r-help at r-project.org
Subject: Re: [R] command line fails
On 2/2/2018 4:52 AM, Michael Ashton wrote:
Mike,

on Windows, anytime you send a path that contains a space to the command line it needs to be enclosed in double quotes.  Try a call like

"C:/Program Files/R/R-3.4.3/bin/Rscript.exe" "P:/Investments/Trading Tools/RV Tools/myfile.r"

I don't know how rscript handles the '\' character (i.e. as an escape or
not) so I changed the '\' to '/' just to be safe.  And note, the program pathname and the file being passed need to be quoted separately.


Hope this helps,

Dan

--
Daniel Nordlund
Port Townsend, WA  USA