<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Find R_HOME on mac in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Find-R-HOME-on-mac/m-p/52526#M29739</link>
    <description>&lt;P&gt;Julian:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, for the reply, and you made a point, I guess I had somewhat overlooked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run&amp;nbsp;Get Environment Variable("R_HOME");, I get the same as you : "/Library/Frameworks/R.framework/Versions/Current/Resources"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the point, the question, I was trying to get to was, given that we both get have the same R_HOME in JMP, why am I getting different version when I run the same code under&amp;nbsp;differing R scenarios? I know where the differences come from - the R_HOME under RStudio comes from the Macports distributions I use (and update). I'm guessing the other version comes from an old CRAN distribution I got "way back when ...". What I would like, what I thought I was getting, was to set something behind the scenes - hence the Rprofile.site, which is one of the files looked for at R initialization (CRAN, Initialization at start of R Session).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the broader question, I'm asking is how do the Mac versions of JMP inherit their environments. Under Windows, they look into the registry, I guess in addition to whatever variables get set up in config files. The mac analogue, I guess would be looking at plist, and / or something like .profile or .bash-profile, etc. So what are the plists, or profile? And the followup question is, of course, how are these passed to, if they are passed to, say R, or are they?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Richard Wright (i'm sure there's a way to set this, just don't know what it is ...)&lt;/P&gt;</description>
    <pubDate>Fri, 02 Mar 2018 23:09:23 GMT</pubDate>
    <dc:creator>rwright</dc:creator>
    <dc:date>2018-03-02T23:09:23Z</dc:date>
    <item>
      <title>Find R_HOME on mac</title>
      <link>https://community.jmp.com/t5/Discussions/Find-R-HOME-on-mac/m-p/52293#M29602</link>
      <description>&lt;P&gt;I'm running JMP 13 on Mac Pro. I've searched the discussions for this, but everything talks about setting environmental variables in windows - I've seen nothing about Mac. I have a couple of versions of R installed. In my Rprofile.site I've defined libpaths and libraries. When I bring things up in RStudion and check everythings works fine, including R_home &amp;nbsp;(this is for R V 3.4.3). From RStudio:&lt;/P&gt;&lt;P&gt;&amp;gt; .Library.site&lt;BR /&gt;[1] "/opt/local/Library/Frameworks/R.framework/Resources/site-library"&lt;BR /&gt;&amp;gt; .Library&lt;BR /&gt;[1] "/opt/local/Library/Frameworks/R.framework/Resources/library"&lt;BR /&gt;&amp;gt; .libPaths()&lt;BR /&gt;[1] "/Users/rcw/Library/R/3.4/library"&lt;BR /&gt;[2] "/opt/local/Library/Frameworks/R.framework/Versions/3.4/Resources/library"&lt;BR /&gt;&amp;gt; R.HOME(component='home')&lt;BR /&gt;Error in R.HOME(component = "home") : could not find function "R.HOME"&lt;BR /&gt;&amp;gt; R.home(component='home')&lt;BR /&gt;[1] "/opt/local/Library/Frameworks/R.framework/Resources"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I bring up JMP, however, I get different values:&lt;/P&gt;&lt;P&gt;R Submit(&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;R.home(component='home')&lt;/P&gt;&lt;P&gt;.Library.site&lt;/P&gt;&lt;P&gt;.Library&lt;/P&gt;&lt;P&gt;.libPaths()&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1] "/Library/Frameworks/R.framework/Resources" character(0)&lt;/P&gt;&lt;P&gt;[1] "/Library/Frameworks/R.framework/Resources/library"&lt;/P&gt;&lt;P&gt;[1] "/Users/rcw/Library/R/3.1/library"&lt;/P&gt;&lt;P&gt;[2] "/Library/Frameworks/R.framework/Versions/3.1/Resources/library"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a .profile that JMP reads where I can set the appropriate environmental variables (it doesn't look like it reads my .profile)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any insight into this.&lt;/P&gt;&lt;P&gt;RCW&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 12:39:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-R-HOME-on-mac/m-p/52293#M29602</guid>
      <dc:creator>rwright</dc:creator>
      <dc:date>2018-02-28T12:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Find R_HOME on mac</title>
      <link>https://community.jmp.com/t5/Discussions/Find-R-HOME-on-mac/m-p/52493#M29718</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8514"&gt;@rwright&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;What is returned in your jmp&amp;nbsp;log when you get the R_HOME environment variable via jsl? (Note that on the mac environment variables are case sensitive):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Get Environment Variable( "R_HOME" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For me, this returns:&amp;nbsp; "/Library/Frameworks/R.framework/Versions/Current/Resources"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If&amp;nbsp;you aren't getting what you expect, or you want to point jmp&amp;nbsp;to a specific version, you can set the variable in a similar way. For me, I'd run:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Set Environment Variable( "R_HOME", "/Library/Frameworks/R.framework/Versions/Current/Resources" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I hope this helps point you in the right direction!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 13:37:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-R-HOME-on-mac/m-p/52493#M29718</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2018-03-02T13:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find R_HOME on mac</title>
      <link>https://community.jmp.com/t5/Discussions/Find-R-HOME-on-mac/m-p/52526#M29739</link>
      <description>&lt;P&gt;Julian:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, for the reply, and you made a point, I guess I had somewhat overlooked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run&amp;nbsp;Get Environment Variable("R_HOME");, I get the same as you : "/Library/Frameworks/R.framework/Versions/Current/Resources"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the point, the question, I was trying to get to was, given that we both get have the same R_HOME in JMP, why am I getting different version when I run the same code under&amp;nbsp;differing R scenarios? I know where the differences come from - the R_HOME under RStudio comes from the Macports distributions I use (and update). I'm guessing the other version comes from an old CRAN distribution I got "way back when ...". What I would like, what I thought I was getting, was to set something behind the scenes - hence the Rprofile.site, which is one of the files looked for at R initialization (CRAN, Initialization at start of R Session).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the broader question, I'm asking is how do the Mac versions of JMP inherit their environments. Under Windows, they look into the registry, I guess in addition to whatever variables get set up in config files. The mac analogue, I guess would be looking at plist, and / or something like .profile or .bash-profile, etc. So what are the plists, or profile? And the followup question is, of course, how are these passed to, if they are passed to, say R, or are they?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Richard Wright (i'm sure there's a way to set this, just don't know what it is ...)&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 23:09:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-R-HOME-on-mac/m-p/52526#M29739</guid>
      <dc:creator>rwright</dc:creator>
      <dc:date>2018-03-02T23:09:23Z</dc:date>
    </item>
  </channel>
</rss>

