<?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: R-bridge on Server deployments: derived output files URLs not working in R-ArcGIS Questions</title>
    <link>https://community.esri.com/t5/r-arcgis-questions/r-bridge-on-server-deployments-derived-output/m-p/798410#M122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;It appears that the way around it for Server deployments is to use arc.env()$scratchWorkspace instead of arc.env()$workspace in your R script when writing the derived output to the scratch folder (equivalent of the arcpy.scratchFolder in Python). This functionality is not well documented so I had to go through ESRI customer support to figure this out. If possible, please make sure the arcgisbindings R package has the env$scratchWorkspace function documented. Closing the issue with this solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2018 12:59:26 GMT</pubDate>
    <dc:creator>FrancescoTonini2</dc:creator>
    <dc:date>2018-07-25T12:59:26Z</dc:date>
    <item>
      <title>R-bridge on Server deployments: derived output files URLs not working</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/r-bridge-on-server-deployments-derived-output/m-p/798408#M120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still encountering a series of severe issues when deploying custom GP services that use R-bridge on Server architectures. I am using ArcServer 10.4.1, R 3.4.0 (64bit) and have installed R-bridge. Seems like the issue of "&lt;A href="https://github.com/R-ArcGIS/r-bridge/issues/17"&gt;bug in arc.env()$workspace READ-ONLY on server deployments&lt;/A&gt;" still has not been solved to allow use of the arc.env() setting for writing derived output of a GP service into the default ESRI scratch folder. However, even when hardcoding the full path on the server to one of my own folders registered in the data store (see image below), the GP service will not create a working output URL for textual files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/400566_2.png" style="width: 620px; height: 52px;" /&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/400567_3.png" style="width: 620px; height: 236px;" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;As you can see the derived output is set up correctly in out_params[[1]] &amp;lt;- out_pdf and when run on ArcGIS Desktop the GP tool work as expected, generating the output file in the hardcoded folder on the server.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/400590_4.png" style="width: 620px; height: 81px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When published as a GP service however, this leads to an error (below) where the URL does not point to the hardcoded file in the D:\\ drive. Error says INVALID URL (Code 400).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-4 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/400591_1.png" style="width: 620px; height: 205px;" /&gt;&lt;/P&gt;&lt;P&gt;Can anyone provide some help with this and let me know if there is any workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 18:36:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/r-bridge-on-server-deployments-derived-output/m-p/798408#M120</guid>
      <dc:creator>FrancescoTonini2</dc:creator>
      <dc:date>2018-04-04T18:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: R-bridge on Server deployments: derived output files URLs not working</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/r-bridge-on-server-deployments-derived-output/m-p/798409#M121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/MPobuda-esristaff"&gt;MPobuda-esristaff&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/people/SWalbridge-esristaff"&gt;SWalbridge-esristaff&lt;/A&gt;&amp;nbsp;could any of you guys in the R team help me figure this out? Server deployments of GP services using R tools seem to be having these sort of issues explained above as well as the one posted on github for writing to scratch workspaces. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 18:57:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/r-bridge-on-server-deployments-derived-output/m-p/798409#M121</guid>
      <dc:creator>FrancescoTonini2</dc:creator>
      <dc:date>2018-04-12T18:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: R-bridge on Server deployments: derived output files URLs not working</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/r-bridge-on-server-deployments-derived-output/m-p/798410#M122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;It appears that the way around it for Server deployments is to use arc.env()$scratchWorkspace instead of arc.env()$workspace in your R script when writing the derived output to the scratch folder (equivalent of the arcpy.scratchFolder in Python). This functionality is not well documented so I had to go through ESRI customer support to figure this out. If possible, please make sure the arcgisbindings R package has the env$scratchWorkspace function documented. Closing the issue with this solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 12:59:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/r-bridge-on-server-deployments-derived-output/m-p/798410#M122</guid>
      <dc:creator>FrancescoTonini2</dc:creator>
      <dc:date>2018-07-25T12:59:26Z</dc:date>
    </item>
  </channel>
</rss>

