[ESS] ESS on windows and shell()

Alessandro Piras laynor at gmail.com
Wed Feb 24 19:04:19 CET 2010


Hi Kevin,
unluckily shell.exec is not what i need, as i can't pass command line
switches to the program.
Also, as you can see from the code i pasted, I don't have any spaces
the string. shell() just doesn't handle spaces in my path environment
variable.
I found a solution, that you, or some other ESS developer (are you one
of them by the way?) may find useful. I can run the program correctly
using cmd.exe as shell, with
shell(program_name, 'cmd', '/c')
that in my case becomes
shell('wgnuplot', 'cmd', '/c')

Alessandro


On 24 February 2010 17:51, Kevin Wright <kw.stat at gmail.com> wrote:
> Two ideas:
>
> 1. Try shell.exec instead of shell.
> 2. Try the full path name without spaces.  For example:
> shell.exec("C:/progra~1/wgnuplot.exe")
>
> Kevin
>
> On Wed, Feb 24, 2010 at 10:01 AM, Alessandro Piras <laynor at gmail.com> wrote:
>>
>> Hi, I'm having some problems with ESS.
>> > shell('wgnuplot.exe')
>> Warning messages:
>> 1: In system(cmd, intern = intern, wait = wait | intern,
>> show.output.on.console = wait,  :
>>  C:/Program not found
>> 2: In shell("wgnuplot.exe") : 'wgnuplot.exe' could not be run
>> >
>> However, that same command works correctly using Rgui.
>> Any idea about this?
>>
>> __
>> Alessandro
>>
>> ______________________________________________
>> ESS-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>
>
>
> --
> Kevin Wright
>
>



More information about the ESS-help mailing list