command line arguments are parsed differently on windows, from 3.4.3

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

command line arguments are parsed differently on windows, from 3.4.3

Gábor Csárdi
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
>
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: command line arguments are parsed differently on windows, from 3.4.3

Tomas Kalibera
Thanks, will fix this
Best
Tomas

On 12/05/2017 12:44 PM, Gábor Csárdi 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
>>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: command line arguments are parsed differently on windows, from 3.4.3

Henrik Bengtsson-5
In reply to this post by Gábor Csárdi
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" <[hidden email]> 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
>
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: command line arguments are parsed differently on windows, from 3.4.3

Gábor Csárdi
On Tue, Dec 5, 2017 at 4:40 PM, Henrik Bengtsson
<[hidden email]> wrote:
> One comment:
> For your R devel example you didn't use spaces in the expression, i.e. maybe
> that's broken too with spaces?

I did. There are two R-devel examples, one with spaces (buggy) and one
without spaces (works).
To show that spaces are the problem.

> Three questions:
> Does it work if you avoid spaces?

It seems so.

> Does it work if you use single quotes?

It does not, single quotes are not special characters for windows, so
you'll get a different error. In
R -q -e '1 + 1'
there are three arguments after the -e: '1 and + and 1'

> Does this also occur for Rscript?

It seems so indeed.

Gabor

> Thxs
>
> Henrik
>
>
> On Dec 5, 2017 03:44, "Gábor Csárdi" <[hidden email]> 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
>>
>>
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: command line arguments are parsed differently on windows, from 3.4.3

Henrik Bengtsson-5
Sorry for not reading carefully and thanks for confirming problem with
Rscript too.

On Dec 5, 2017 08:47, "Gábor Csárdi" <[hidden email]> wrote:

> On Tue, Dec 5, 2017 at 4:40 PM, Henrik Bengtsson
> <[hidden email]> wrote:
> > One comment:
> > For your R devel example you didn't use spaces in the expression, i.e.
> maybe
> > that's broken too with spaces?
>
> I did. There are two R-devel examples, one with spaces (buggy) and one
> without spaces (works).
> To show that spaces are the problem.
>
> > Three questions:
> > Does it work if you avoid spaces?
>
> It seems so.
>
> > Does it work if you use single quotes?
>
> It does not, single quotes are not special characters for windows, so
> you'll get a different error. In
> R -q -e '1 + 1'
> there are three arguments after the -e: '1 and + and 1'
>
> > Does this also occur for Rscript?
>
> It seems so indeed.
>
> Gabor
>
> > Thxs
> >
> > Henrik
> >
> >
> > On Dec 5, 2017 03:44, "Gábor Csárdi" <[hidden email]> 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
> >>
> >>
> >
> > ______________________________________________
> > [hidden email] mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
> >
> >
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: command line arguments are parsed differently on windows, from 3.4.3

Tomas Kalibera
A quick workaround if you needed to execute R expressions in Windows is
calling RTerm directly.
But a fix should be available soon.

Tomas

On 12/05/2017 05:51 PM, Henrik Bengtsson wrote:

> Sorry for not reading carefully and thanks for confirming problem with
> Rscript too.
>
> On Dec 5, 2017 08:47, "Gábor Csárdi" <[hidden email]> wrote:
>
>> On Tue, Dec 5, 2017 at 4:40 PM, Henrik Bengtsson
>> <[hidden email]> wrote:
>>> One comment:
>>> For your R devel example you didn't use spaces in the expression, i.e.
>> maybe
>>> that's broken too with spaces?
>> I did. There are two R-devel examples, one with spaces (buggy) and one
>> without spaces (works).
>> To show that spaces are the problem.
>>
>>> Three questions:
>>> Does it work if you avoid spaces?
>> It seems so.
>>
>>> Does it work if you use single quotes?
>> It does not, single quotes are not special characters for windows, so
>> you'll get a different error. In
>> R -q -e '1 + 1'
>> there are three arguments after the -e: '1 and + and 1'
>>
>>> Does this also occur for Rscript?
>> It seems so indeed.
>>
>> Gabor
>>
>>> Thxs
>>>
>>> Henrik
>>>
>>>
>>> On Dec 5, 2017 03:44, "Gábor Csárdi" <[hidden email]> 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
>>>>
>>> ______________________________________________
>>> [hidden email] mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>
>>>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: command line arguments are parsed differently on windows, from 3.4.3

Tomas Kalibera
Fixed in R-devel and R-patched.

Tomas

On 12/05/2017 05:58 PM, Tomas Kalibera wrote:

> A quick workaround if you needed to execute R expressions in Windows
> is calling RTerm directly.
> But a fix should be available soon.
>
> Tomas
>
> On 12/05/2017 05:51 PM, Henrik Bengtsson wrote:
>> Sorry for not reading carefully and thanks for confirming problem with
>> Rscript too.
>>
>> On Dec 5, 2017 08:47, "Gábor Csárdi" <[hidden email]> wrote:
>>
>>> On Tue, Dec 5, 2017 at 4:40 PM, Henrik Bengtsson
>>> <[hidden email]> wrote:
>>>> One comment:
>>>> For your R devel example you didn't use spaces in the expression, i.e.
>>> maybe
>>>> that's broken too with spaces?
>>> I did. There are two R-devel examples, one with spaces (buggy) and one
>>> without spaces (works).
>>> To show that spaces are the problem.
>>>
>>>> Three questions:
>>>> Does it work if you avoid spaces?
>>> It seems so.
>>>
>>>> Does it work if you use single quotes?
>>> It does not, single quotes are not special characters for windows, so
>>> you'll get a different error. In
>>> R -q -e '1 + 1'
>>> there are three arguments after the -e: '1 and + and 1'
>>>
>>>> Does this also occur for Rscript?
>>> It seems so indeed.
>>>
>>> Gabor
>>>
>>>> Thxs
>>>>
>>>> Henrik
>>>>
>>>>
>>>> On Dec 5, 2017 03:44, "Gábor Csárdi" <[hidden email]> 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
>>>>>
>>>> ______________________________________________
>>>> [hidden email] mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>>
>>>>
>>     [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> [hidden email] mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel