[Mono-list] MONO & R

jmalcolm malcolm.justin at gmail.com
Thu Jul 8 11:03:45 EDT 2010


I do not know how many platforms you are hoping to run on, but you can use
System.Environment.OSVersion.Platform to detect the platform and then call
the appropriate native DLL for that platform.  There are ways of at least
differentiating from Windows, Mac, and Linux from within Mono.

2010/7/8 Jacek Rużyczka [via Mono] <
ml-node+2282396-1379602540-100111 at n4.nabble.com<ml-node%2B2282396-1379602540-100111 at n4.nabble.com>
>

> Hello,
>
> Am Donnerstag 08 Juli 2010 16:16:14 schrieb jmalcolm:
> > Are you trying to call R from C# or are you hoping to call into C# from
> R?
> >
> I'm gonna try out such a scenario in a couple of months.
>
> > Mono calls out to C style libraries just as .NET does on Windows:
> > PInvoke/DLLImport.
> >
> > Calling a C style library from C# is very straight forward although of
> > course you lose the cross-platform nature of Mono unless the same library
>
> > is available natively on every platform.
> >
> This, in fact, may be an issue. Although R is regarded as <<cross-platform>>,
> it
> does rely on native DLLs.
>
> In fact, I suppose I will call R as a native process by using
> Process.Start("R") in batch mode. This is rather quick & dirty *sigh*, but
> in
> fact cross-platform.
>
> > Calling out to Mono assemblies from R is not something I am familiar
> with.
> >
> I only know that there is a Java binding for R (which is a nightmare to
> install), but I have never heard of a .NET binding.
>
> Cheers
> Jacek Rużyczka
>
> -------------------------------------------------
> Atrakcyjne mieszkania i dzialki. Sprawdz oferty!
> http://linkint.pl/f277d
>
> _______________________________________________
> Mono-list maillist  -  [hidden email]<http://user/SendEmail.jtp?type=node&node=2282396&i=0>
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
> ------------------------------
>  View message @
> http://mono.1490590.n4.nabble.com/MONO-R-tp2280504p2282396.html
> To unsubscribe from Re: MONO & R, click here< (link removed) >.
>
>
>

-- 
View this message in context: http://mono.1490590.n4.nabble.com/MONO-R-tp2280504p2282437.html
Sent from the Mono - General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20100708/14c9c83b/attachment.html 


More information about the Mono-list mailing list