title: recompiling to avoid crashing R session
body: <p>How to avoid recompiling?</p>
  
  <p>My <code>stan()</code> is recompiling to avoid crashing R session.</p>
  
  <p>To validate my model, I want to replicate various models for many data from known distributions. However <code>rstan::stan()</code> always recompile my stan file, so it took a very long time. How to avoid recompiling. </p>
  
  <p><strong>Edit for comment-------------</strong></p>
  
  <p>Memorandum for conversion from <code>rstan::stan()</code> to <code>rstan::sampling()</code>.</p>
  
  <p>In <code>rstan::stan</code>, its variable name is <code>model_name</code></p>
  
  <pre><code> m &lt;- "foo.stan"
   rstan::stan( model_name =m, data =...)
  </code></pre>
  
  <p>On the other hand, in <code>rstan::sampling</code> its variable name is <code>object</code></p>
  
  <pre><code>   m &lt;- "foo.stan"
     m &lt;- stan_model(m)
     rstan::sampling( object = m , data = ...)
  </code></pre>
  
  <p>Please be careful !! The variable name is different !!</p>