[R] I cannot run R.EXE or RSCRIPT.EXE
Bos, Roger
roger.bos at rothschild.com
Fri May 5 17:46:55 CEST 2017
Dominik,
Folders with spaces can be very tricky sometimes. In my case single quotes didn't work, but double quotes did (see my example below). Adding the full path to your PATH variable with eliminate the need to specify the full path, making it much easier.
Thanks,
Roger
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\bosr>C:\Program Files\R\R-3.3.3\bin\R.exe
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\bosr>'C:\Program Files\R\R-3.3.3\bin\R.exe'
The filename, directory name, or volume label syntax is incorrect.
C:\Users\bosr>"C:\Program Files\R\R-3.3.3\bin\R.exe"
R version 3.3.3 (2017-03-06) -- "Another Canoe"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Duncan Murdoch
Sent: Friday, May 05, 2017 6:01 AM
To: Dominik Szewczyk; r-help at r-project.org
Subject: Re: [R] I cannot run R.EXE or RSCRIPT.EXE
On 04/05/2017 4:08 PM, Dominik Szewczyk wrote:
> I cannot run R.EXE or RSCRIPT.EXE. It produces this error:
>
>
> 'C:\Program' is not recognized as an internal or external command,
> operable program or batch file.
>
>
> I have attempted to put quotes around the full path including the executable and also running the exectuable from within the path itself with the same result. The only way I can do this is to move the installation from C:\Program Files\R\R-3.4.0 to C:\R\..
>
>
> Is this a limitation of the program itself?
It sounds like a limitation of the way you're trying to run them, which you haven't told us.
Duncan Murdoch
______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
This message and any attachments are for the intended recipient’s use only. This message may contain confidential, proprietary or legally privileged information. No right to confidential or privileged treatment of this message is waived or lost by an error in transmission.
If you have received this message in error, please immediately notify the sender by e-mail, delete the message, any attachments and all copies from your system and destroy any hard copies. You must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message or any attachments if you are not the intended recipient.
More information about the R-help
mailing list