0

I am using Shiny to run a pretty simple simulation in R. However I run into problems with memory, and get the message:

"Error: cannot allocate vector of size 274.8 Mb" etc.

But when I run the same code in R Studio, it works fine. Any general ideas how to increase the memory allocation to Shiny? Many thanks. Andrew.

Nandu
  • 3,076
  • 8
  • 34
  • 51
amg
  • 194
  • 2
  • 11
  • Would it be possible to share your code as a gist on https://gist.github.com? I would love to help you get to the bottom of this. If you can't share your code publicly but can privately, please e-mail me at joe@rstudio.com. – Joe Cheng Jan 30 '13 at 21:16
  • @JoeCheng - Here is the code https://gist.github.com/4709926 Hopefully I have posted it correctly :) There are the ui.R and server.R files, as well as a file of functions that is called for the simulations (pest.tech.functions.R). – amg Feb 04 '13 at 21:38

1 Answers1

1

Here are my standard links on memory management: R memory management / cannot allocate vector of size n Mb

http://stat.ethz.ch/R-manual/R-patched/library/base/html/Memory-limits.html

Increasing (or decreasing) the memory available to R processes

Community
  • 1
  • 1
alexwhitworth
  • 4,839
  • 5
  • 32
  • 59
  • Thanks Alex. I should have said I had increased the memory.limit in R, but it still did not help. And because it runs fine when just using R on its own suggests that it is an issue I am having with Shiny rather than R per se. – amg Jan 30 '13 at 19:04