<?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 R Shiny app from ArcGIS in R-ArcGIS Questions</title>
    <link>https://community.esri.com/t5/r-arcgis-questions/r-shiny-app-from-arcgis/m-p/725723#M4</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a toolbox containing an R script that creates a shiny app. When I run the script the app begins to render in a browser but then goes grey and I get an error saying 'c stack close to limit'&lt;/P&gt;&lt;P&gt;&amp;nbsp;The script works fine in rstudio and is based on this&amp;nbsp;&lt;A class="link-titled" href="https://github.com/BenGraeler/bridging-R-ArcGIS/blob/master/interactive_Kriging/interactiveKriging.R" title="https://github.com/BenGraeler/bridging-R-ArcGIS/blob/master/interactive_Kriging/interactiveKriging.R"&gt;bridging-R-ArcGIS/interactiveKriging.R at master · BenGraeler/bridging-R-ArcGIS · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Sep 2019 11:20:09 GMT</pubDate>
    <dc:creator>DavidMatthews3</dc:creator>
    <dc:date>2019-09-12T11:20:09Z</dc:date>
    <item>
      <title>R Shiny app from ArcGIS</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/r-shiny-app-from-arcgis/m-p/725723#M4</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a toolbox containing an R script that creates a shiny app. When I run the script the app begins to render in a browser but then goes grey and I get an error saying 'c stack close to limit'&lt;/P&gt;&lt;P&gt;&amp;nbsp;The script works fine in rstudio and is based on this&amp;nbsp;&lt;A class="link-titled" href="https://github.com/BenGraeler/bridging-R-ArcGIS/blob/master/interactive_Kriging/interactiveKriging.R" title="https://github.com/BenGraeler/bridging-R-ArcGIS/blob/master/interactive_Kriging/interactiveKriging.R"&gt;bridging-R-ArcGIS/interactiveKriging.R at master · BenGraeler/bridging-R-ArcGIS · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2019 11:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/r-shiny-app-from-arcgis/m-p/725723#M4</guid>
      <dc:creator>DavidMatthews3</dc:creator>
      <dc:date>2019-09-12T11:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: R Shiny app from ArcGIS</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/r-shiny-app-from-arcgis/m-p/725724#M5</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems enough system memory is not allocated when app is called from the browser. RStudio has its own defaults for the memory limit which can be higher than the one allocated when the app is run in an another system. You can see how much memory R-Studio allocated with&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #555555; background: rgba(0, 0, 0, 0.02); border: 1px solid rgba(0, 0, 0, 0.07); font-size: 13px; margin-bottom: 10px; padding: 10px 15px;"&gt;&lt;CODE style="font-size: 1em;"&gt;memory.limit()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can update the amount of memory your operating system allocated by setting the parameter&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;setrlimit(2)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://pubs.opengroup.org/onlinepubs/007904975/functions/setrlimit.html"&gt;Here&lt;/A&gt; is more information about setting this limit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2019 13:45:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/r-shiny-app-from-arcgis/m-p/725724#M5</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-09-12T13:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: R Shiny app from ArcGIS</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/r-shiny-app-from-arcgis/m-p/725725#M6</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,Orhun&lt;/P&gt;&lt;P&gt;I'm on windows computer so setrlimit is not an option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2019 22:57:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/r-shiny-app-from-arcgis/m-p/725725#M6</guid>
      <dc:creator>DavidMatthews3</dc:creator>
      <dc:date>2019-09-12T22:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: R Shiny app from ArcGIS</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/r-shiny-app-from-arcgis/m-p/725726#M7</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How much memory is installed on the machine you're using for this analysis? Does it work with smaller inputs? Setting the stack size on Windows requires editing the executable file (its a compile-time option), which requires Visual Studio. Do you know where it gets in the execution prior to the stack size limit being hit?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2019 23:27:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/r-shiny-app-from-arcgis/m-p/725726#M7</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2019-09-12T23:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: R Shiny app from ArcGIS</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/r-shiny-app-from-arcgis/m-p/725727#M8</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help guys.&lt;/P&gt;&lt;P&gt;I've been doing some testing and seems to rendering the graph that is the problem. If I comment out line 40 ie. no graph displayed it works fine. But the script. including graph works in r studio (without tool_exec &amp;lt;- function...)&lt;/P&gt;&lt;P&gt;Here is the code I've been testing. Which the ArcGIS Toolbox script points to&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;################################################################################
### Interactive R and Arcgis Example
################################################################################
tool_exec &amp;lt;- function(in_params, out_params){
 
 arc.progress_label("Loading packages ...")
 arc.progress_pos(10)
 
 
 library(shiny)
 library(dplyr)

 
 ################################################################################
 ### Load Data 
 ################################################################################
 arc.progress_label("Loading data ...")
 arc.progress_pos(20)
 
 Year&amp;lt;-c(2000,2001,2002,2003,2000,2003,2000,2000,2005)
 Dwells&amp;lt;-c(50,20,25,26,27,300,100,80,100)
 
 df_test &amp;lt;- data.frame(Year,Dwells)

 ################################################################################
 ### Load App
 ################################################################################
 
 arc.progress_label("Starting App ...")
 arc.progress_pos(50)
 
 
 ui &amp;lt;- fluidPage(
 sidebarLayout(
 sidebarPanel(sliderInput("Explore_Years", 'Select years to explore',
 min=2000, max= 2005,value = c(2000,2005),sep='')),

 mainPanel(textOutput("text_out")
 , tableOutput("table_out")
 , plotOutput("graph_out") #####&amp;lt;&amp;lt;&amp;lt;&amp;lt; Works if comment this line out#######
 
 )
 )
 )

 server &amp;lt;- function(input, output) {
 
 Summary_test&amp;lt;-reactive({
 df_test%&amp;gt;%
 filter((Year &amp;gt;= input$Explore_Years[1]),
 (Year &amp;lt;= input$Explore_Years[2]) ) %&amp;gt;%
 group_by(Year)%&amp;gt;%
 summarize(Dwellings = sum(Dwells))
 })

 output$text_out &amp;lt;- renderText({paste ("You have selected minimum year ",input$Explore_Years[1])
 })
 
 output$table_out &amp;lt;- renderTable({Summary_test()
 })
 
 output$graph_out &amp;lt;- renderPlot({
 plot(Summary_test()$Year,Summary_test()$Dwellings)
 })
 
 }

 
 runApp(list(ui = ui, server = server))

}
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&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&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:01:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/r-shiny-app-from-arcgis/m-p/725727#M8</guid>
      <dc:creator>DavidMatthews3</dc:creator>
      <dc:date>2021-12-12T07:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: R Shiny app from ArcGIS</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/r-shiny-app-from-arcgis/m-p/1036683#M360</link>
      <description>&lt;P&gt;same errors with plotOutput and renderPlot... some solutions so far?&lt;BR /&gt;same app with textOutput and renderText work correctly&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 16:18:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/r-shiny-app-from-arcgis/m-p/1036683#M360</guid>
      <dc:creator>MarcoGalfetti</dc:creator>
      <dc:date>2021-03-15T16:18:24Z</dc:date>
    </item>
  </channel>
</rss>

