<?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: Does arc.env() get workspace only from GP menu settings? in R-ArcGIS Questions</title>
    <link>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777254#M43</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly, I am saying that tool settings should ovveride application settings, as per environment-level hierarchy, but currently arc.env() does not seem to do so. My examples shows that even though my tool settings point to a custom folder on my PC, the application settings still do not get overridden, given that arc.env()$workspace still grabs the application, not the tool as it should.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Mar 2017 18:06:40 GMT</pubDate>
    <dc:creator>FrancescoTonini2</dc:creator>
    <dc:date>2017-03-16T18:06:40Z</dc:date>
    <item>
      <title>Does arc.env() get workspace only from GP menu settings?</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777252#M41</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I noticed a strange behavior in the arc.env() function in the arcgisbindings package. According to the user guide, this function is supposedly grabbing the workspace folder from the GP tool environment settings. However, I noticed it ONLY grabs the Environment Settings from the main Geoprocessing menu in ArcMap, NOT the Environment Settings of the geoprocessing script tool. See my example and attached figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- Setting my GP tool environment settings workspace to custom folder on disk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/341477_2.png" style="width: 512px; height: 469px;" /&gt;&lt;/P&gt;&lt;P&gt;2- The tool runs but arc.env() is not affected by custom change and still return default Settings ".../ArcGIS/Default.gdb":&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/341478_3.png" style="width: 620px; height: 283px;" /&gt;&lt;/P&gt;&lt;P&gt;3- I now change the GP menu Settings in ArcMap to match those of my GP tool, and the arc.env() path is now grabbed correctly:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/341479_1.png" style="width: 620px; height: 356px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this intended behavior or a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 14:06:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777252#M41</guid>
      <dc:creator>FrancescoTonini2</dc:creator>
      <dc:date>2017-03-16T14:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Does arc.env() get workspace only from GP menu settings?</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777253#M42</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/environments/what-is-a-geoprocessing-environment.htm"&gt;what is a geoprocessing environment&lt;/A&gt;&amp;nbsp; and this one are good links&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/environments/environment-levels-and-hierarchy.htm"&gt;environment-levels-and-hierarchy&lt;/A&gt;&amp;nbsp; If in doubt, for each tool, at the bottom of each page, is sometimes/generally a list of the environments that a specific tool honors.&amp;nbsp; There can be differences in what is honored and the priority of the environments themselves.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 17:59:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777253#M42</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-16T17:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Does arc.env() get workspace only from GP menu settings?</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777254#M43</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly, I am saying that tool settings should ovveride application settings, as per environment-level hierarchy, but currently arc.env() does not seem to do so. My examples shows that even though my tool settings point to a custom folder on my PC, the application settings still do not get overridden, given that arc.env()$workspace still grabs the application, not the tool as it should.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 18:06:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777254#M43</guid>
      <dc:creator>FrancescoTonini2</dc:creator>
      <dc:date>2017-03-16T18:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Does arc.env() get workspace only from GP menu settings?</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777255#M44</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I couldn't find that tool listed, so I have no idea what it says at the bottom of the tool's help description.&amp;nbsp; I just know that some tools in arctoolbox, the order of precedence may not be what is expected or is ignored when you don't expect it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 18:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777255#M44</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-16T18:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Does arc.env() get workspace only from GP menu settings?</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777256#M45</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can take any custom script tool that uses R-bridge, it does not matter what I used, because for sake of example I am only printing the workspace path in the tool message window. As long as you use arc.env()$workspace to your R script, you can reproduce my example with any custom script. What I am getting at is that I need to tell the R script to save a derived output to the scratch folder. In arcpy, one can use arcpy.env.scratchFolder and then use SetParameterAsText() to return a derived output, but in R this must change...do you know how I can write a derived output to a scratchFolder inside my R script and then sending it back to the GUI?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 18:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777256#M45</guid>
      <dc:creator>FrancescoTonini2</dc:creator>
      <dc:date>2017-03-16T18:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Does arc.env() get workspace only from GP menu settings?</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777257#M46</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh I didn't see that this was posted in the R-bridge&amp;nbsp;place.. Then I would agree, something is amiss.&amp;nbsp; The tool or ArcMap needs to be in charge of environments, you might get a quicker response by &lt;STRONG&gt;&lt;A href="https://github.com/R-ArcGIS/r-bridge"&gt;flagging this on GitHub as well &lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 18:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777257#M46</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-16T18:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Does arc.env() get workspace only from GP menu settings?</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777258#M47</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Francesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue (&lt;A href="https://github.com/R-ArcGIS/r-bridge/issues/9"&gt;#9 on Github&lt;/A&gt;) is now fixed in the latest (1.0.0.125) version of the R-ArcGIS bridge. Let us know if you notice any issues around this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 21:29:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/does-arc-env-get-workspace-only-from-gp-menu/m-p/777258#M47</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2017-06-02T21:29:30Z</dc:date>
    </item>
  </channel>
</rss>

