[R] Run an external software in R
Rainer M Krug
Rainer at krugs.de
Wed Sep 7 09:07:42 CEST 2016
Bert Gunter <bgunter.4567 at gmail.com> writes:
> ?system
>
> But this begs the question: WHY would you want to do this? More
> specifically, what should R communicate to your other software, and
> what should the other software communicate to R?
I am not the OP, buty I can give you an answer why I did this (OK - I
user rgrass7 - but under the hood the same in my case).
I don't have to say that R is extremely powerful and flexible - and when
you are used to R, it even becomes intuitive. So why not use R for
scripting, even if it is not statistical stuff? and with system() you
can call other languages (bash, grass, whatever you want) when things
are easier there - so in some cases, no data transfer between R and the
external program is even necessary.
But if you are asking about the specific case of the OP, I can't answer this.
Cheers,
Rainer
>
>
> Cheers,
> Bert
>
> Bert Gunter
>
> "The trouble with having an open mind is that people keep coming along
> and sticking things into it."
> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>
>
> On Tue, Sep 6, 2016 at 6:13 PM, Marino David <davidmarino838 at gmail.com> wrote:
>> Hi all R users:
>>
>> Does anybody have the experience of running an external software in R? I
>> try to use R to run ANSYS software, which is a engineering simulation
>> package. I ever have done this task in Matlab platform by executing
>> the following code line:
>>
>> system('"C:\Program Files\Ansys Inc\v100\ANSYS\bin\intel\ansys100" -b -p
>> ane3fl -i D:\Ansys\MyAnsysCode.txt -o D:\Ansys\vm5.out');
>>
>>
>> Any idea regarding implementing this work is very welcome.
>>
>> David
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> 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.
>
> ______________________________________________
> 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.
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 454 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20160907/92494154/attachment.bin>
More information about the R-help
mailing list