Ilwis + R stat

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Ilwis + R stat

Arseniy V. Zhogolev-2
Dear collegues,
I wrote code in R stat:

##begin
cmd <- paste ('"C:/Program files (x86)/n52/ILWIS38/Ilwis.exe"')
system (cmd, intern=TRUE)
##end
And it works.

Then I wrote:
cmd <- paste ('"C:/Program files (x86)/n52/ILWIS38/Ilwis.exe -C open
test.mpr"')
But nothing happens.

Kind regards,
Arseniy Zhogolev.


_______________________________________________
Ilwis mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/ilwis
http://ilwis.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Ilwis + R stat

schouwenburg
Correct. UI commands are not supported through the commandline. Basicaly the syntax is ilwis.exe -C <some ilwis command>. The ui is not supported for two reasons. One , it maybe a situation were UI makes no sense (e.g. server situation). Two, in the commandline mode everything runs in the same execution thread. Meaning no multithreading as a programmer should rely on getting te result back directly after execution. After execution ilwis.exe disappears. That means also any UI would disappear as Ilwis UI has its own dedicating threading mechanism.
In theory we could build around this but it is quite a hassle for something that is needed only occasionally. Ilwis4, which is now under development, is a lot more versatile with respect to scripting and UI. But yeah, that is still some time in the future.

Martin Schouwenburg
[hidden email]


-----Original Message-----
From: Ilwis [mailto:[hidden email]] On Behalf Of Arseniy V. Zhogolev
Sent: woensdag 1 juli 2015 15:30
To: [hidden email]
Subject: [Ilwis] Ilwis + R stat

Dear collegues,
I wrote code in R stat:

##begin
cmd <- paste ('"C:/Program files (x86)/n52/ILWIS38/Ilwis.exe"') system (cmd, intern=TRUE) ##end And it works.

Then I wrote:
cmd <- paste ('"C:/Program files (x86)/n52/ILWIS38/Ilwis.exe -C open
test.mpr"')
But nothing happens.

Kind regards,
Arseniy Zhogolev.


_______________________________________________
Ilwis mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/ilwis
http://ilwis.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
_______________________________________________
Ilwis mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/ilwis
http://ilwis.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Ilwis + R stat

Daniel Nüst - 52N
Am 02/07/2015 um 07:53 schrieb [hidden email]:
> Correct. UI commands are not supported through the commandline. Basicaly the syntax is ilwis.exe -C <some ilwis command>. The ui is not supported for two reasons. One , it maybe a situation were UI makes no sense (e.g. server situation). Two, in the commandline mode everything runs in the same execution thread. Meaning no multithreading as a programmer should rely on getting te result back directly after execution. After execution ilwis.exe disappears. That means also any UI would disappear as Ilwis UI has its own dedicating threading mechanism.
> In theory we could build around this but it is quite a hassle for something that is needed only occasionally. Ilwis4, which is now under development, is a lot more versatile with respect to scripting and UI. But yeah, that is still some time in the future.

Have you considered the Rcpp package?

http://dirk.eddelbuettel.com/code/rcpp.html

/Daniel


>
>
> -----Original Message-----
> From: Ilwis [mailto:[hidden email]] On Behalf Of Arseniy V. Zhogolev
> Sent: woensdag 1 juli 2015 15:30
> To: [hidden email]
> Subject: [Ilwis] Ilwis + R stat
>
> Dear collegues,
> I wrote code in R stat:
>
> ##begin
> cmd <- paste ('"C:/Program files (x86)/n52/ILWIS38/Ilwis.exe"') system (cmd, intern=TRUE) ##end And it works.
>
> Then I wrote:
> cmd <- paste ('"C:/Program files (x86)/n52/ILWIS38/Ilwis.exe -C open
> test.mpr"')
> But nothing happens.
>
> Kind regards,
> Arseniy Zhogolev.
>
>
> _______________________________________________
> Ilwis mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/ilwis
> http://ilwis.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
> _______________________________________________
> Ilwis mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/ilwis
> http://ilwis.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
>


--
Daniel Nüst
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-36
Fax: +49-(0)-251–396371-11

http://52north.org/
Twitter: @FiveTwoN

General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
_______________________________________________
Ilwis mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/ilwis
http://ilwis.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Ilwis + R stat

Arseniy V. Zhogolev-2
Thank you schouwenburg and Daniel Nüst for answers. I found ILWIS 3.5. Commands like ##cmd <- paste ('"C:/Program files (x86)/n52/ILWIS35/ilwisclient.exe -C open test.mpr"')## work here. So now i am using ilwis 3.8.0.3 for scripting, ilwis 3.3 for image classification and ilwis 3.5 for automate statistics))
I am looking forward to ilwis 4 :-)
Arseniy.

_______________________________________________
Ilwis mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/ilwis
http://ilwis.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Ilwis + R stat

schouwenburg

That is not …….. Ideal  J

 

See also http://blog.52north.org/category/communities/ilwis/

 

Martin Schouwenburg

[hidden email]

 

From: Ilwis [mailto:[hidden email]] On Behalf Of Arseniy V. Zhogolev
Sent: maandag 10 augustus 2015 11:40
To: [hidden email]
Subject: Re: [Ilwis] Ilwis + R stat

 

Thank you schouwenburg and Daniel Nüst for answers. I found ILWIS 3.5. Commands like ##cmd <- paste ('"C:/Program files (x86)/n52/ILWIS35/ilwisclient.exe -C open test.mpr"')## work here. So now i am using ilwis 3.8.0.3 for scripting, ilwis 3.3 for image classification and ilwis 3.5 for automate statistics))
I am looking forward to ilwis 4 :-)
Arseniy.


_______________________________________________
Ilwis mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/ilwis
http://ilwis.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines