[R-SIG-Mac] Cocoa gui with embedded R framework
Kjell Konis
konis at stats.ox.ac.uk
Wed Mar 23 21:21:03 CET 2005
Stefano,
It seems to work okay. Right now I have to set R_HOME for each
location I want to test R.app in but that should be an easy fix: I
think I can set R_HOME in Rcontroller. That should set R_HOME before
the application goes belly-up.
There are some hard coded /Library/Frameworks/R.framework's that are
preventing some packages from installing/loading but hopefully they
aren't buried too deep.
Kjell
On Mar 23, 2005, at 6:40 PM, stefano iacus wrote:
> You should set R_HOME in the env vars of the R executable (see the
> INSTALL file in the xcode project of R.app)
>
> Otherwise you can set R_HOME as a global var. It's a global prefs file
> (I don't remember now which one) that is used by the Finder on OS X to
> set env vars.
>
> Simon? Could this be done at run-time (for this specific version of
> R.app of Kjell) by setting it relative to R.app path before
> kickstarting R?
>
> In any case, I would be pleased to know if is works after moving
> around R.app on the system or even after installing a package and move
> again R.app around.
>
> stefano
>
> On 23/mar/05, at 19:28, Kjell Konis wrote:
>
>> Hi,
>>
>> Background:
>>
>> I am trying to build the cocoa gui with R.framework embedded as a
>> private framework. The first thing I did was make a copy of
>> R.framework and use install_name_tool to change the install location
>> of libR.dylib to
>> "@executable_path/../Frameworks/R.framework/Versions/2.0.1/Resources/
>> lib/libR.dylib". Then I changed the settings in the R.xcode project
>> to link against this custom R.framework and copy it into
>> R.app/Contents/Frameworks (for some reason I had to add the full
>> paths to R.framework/Headers and R.framework/PrivateHeaders even with
>> the framework search path set to the directory containing R.framework
>> - weird). Anyway, the project builds successfully but fails to start
>> because the R_HOME environment variable is not set. The only mention
>> of R_HOME I can find in R.xcode is in the Info.plist file but
>> changing the value there doesn't seem to have any effect.
>>
>> Question:
>>
>> How does the R_HOME get set when the R is launched from the cocoa gui?
>>
>> Thanks,
>>
>> Kjell
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>
>
More information about the R-SIG-Mac
mailing list