From henrik.bengtsson at gmail.com  Tue Dec  5 17:40:14 2017
From: henrik.bengtsson at gmail.com (Henrik Bengtsson)
Date: Tue, 5 Dec 2017 08:40:14 -0800
Subject: [Rd] command line arguments are parsed differently on windows,
 from 3.4.3
In-Reply-To: <CAFDcVCSO03gj8mgy1cGGjUVHcMmYZQ+RUXbHWFSoyX+mUm1ztQ@mail.gmail.com>
References: <CABtg=Kkq1-63y18oRKGbgkvd3GMajVfZP8-8npTLmxytgcOzZg@mail.gmail.com>
 <CAFDcVCSu3njV1A2gPVyN66mJ4KNf3hukXQ00=McT=is_Yv6cMg@mail.gmail.com>
 <CAFDcVCSO03gj8mgy1cGGjUVHcMmYZQ+RUXbHWFSoyX+mUm1ztQ@mail.gmail.com>
Message-ID: <CAFDcVCSpM4yzDg-87wm3Mqg2E2gp0P-bGDApen6rSE9oEKStLA@mail.gmail.com>

One comment:
For your R devel example you didn't use spaces in the expression, i.e.
maybe that's broken too with spaces?

Three questions:
Does it work if you avoid spaces?

Does it work if you use single quotes?

Does this also occur for Rscript?

Thxs

Henrik


On Dec 5, 2017 03:44, "G?bor Cs?rdi" <csardi.gabor at gmail.com> wrote:

I wonder if this is intended.

Thanks,
Gabor


C:\Users\rhub>"c:\Program Files\R\R-3.4.2\bin\R" -q -e "1 + 1"
> 1 + 1
[1] 2
>
>

C:\Users\rhub>"c:\Program Files\R\R-3.4.3\bin\R" -q -e "1 + 1"
'c:\PROGRA~1\R\R-34~1.3\bin\x64\R.exe" -q -e "1' is not recognized as an
interna
l or external command,
operable program or batch file.

C:\Users\rhub>"c:\Program Files\R\R-devel\bin\R" -q -e "1 + 1"
'c:\PROGRA~1\R\R-devel\bin\x64\R.exe" -q -e "1' is not recognized as an
internal
 or external command,
operable program or batch file.

C:\Users\rhub>"c:\Program Files\R\R-3.4.3patched\bin\R" -q -e "1 + 1"
'c:\PROGRA~1\R\R-34~1.3PA\bin\x64\R.exe" -q -e "1' is not recognized as an
inter
nal or external command,
operable program or batch file.

C:\Users\rhub>"c:\Program Files\R\R-devel\bin\R" -q -e "1+1"
> 1+1
[1] 2
>
>

______________________________________________
R-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

	[[alternative HTML version deleted]]



[Rd] command line arguments are parsed differently on windows, from 3.4.3
Henrik Bengtsson