From simon.urbanek at r-project.org  Tue Mar 17 23:24:04 2009
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Tue, 17 Mar 2009 18:24:04 -0400
Subject: [Rd] Embedding R Engine in Cocoa
In-Reply-To: <a5fee3720903171251n3f5db115l982f886d23062f3c@mail.gmail.com>
References: <a5fee3720903171251n3f5db115l982f886d23062f3c@mail.gmail.com>
Message-ID: <4FC4F408-17D6-4B73-A18D-FAB4E61C1F7E@r-project.org>


On Mar 17, 2009, at 15:51 , David Zwerdling wrote:

> Hello Everyone,
> I'm attempting to use the R-Engine from the Mac R.app GUI project to  
> embed R
> in an Objective-C application I'm writing.
>
> However, after a few days of trying, dependencies to the GUI keep  
> tying me
> down.  I don't need anything fancy, I'm just feeding in vectors and  
> running
> regressions on them, but even that seems to escape me.
>
> I've seen on the outdated R/Cocoa page that there's a standalone  
> engine *
> somewhere.*  But I don't know if that's outdated information too.
>

There is a stand-alone version, indeed, at
https://svn.r-project.org/R-packages/branches/stand-alone-REngine

It needed a few small adjustments to match current R version, but it  
should be ok now. Don't forget to use R CMD when running your program,  
though, so the demo in the above should work with

make
R CMD ./test

The default setup is now OS X but there are instructions in the  
Makefile on how to use it on other unices and I have tested it  
successfully with Linux and libFoundation.

Cheers,
Simon



> So, is there a simple project or tutorial out there that will allow  
> me to
> interact with R programmatically?
>
> Thanks,
> David Zwerdling
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>



[Rd] Embedding R Engine in Cocoa
Simon Urbanek