title: r modify and rebuild package
body: <p>I'm trying to use the SemiMarkov package and I want to change one small line of code in there. I've done some digging via:</p>
  
  <pre><code>getAnywhere("semiMarkov")
  </code></pre>
  
  <p>&amp; I've identified that I want to change this line:</p>
  
  <pre><code>hessian &lt;- diag(ginv(hessian(V, solution)))
  </code></pre>
  
  <p>to try something like:</p>
  
  <pre><code>hessian &lt;- diag(ginv(pracma::hessian(V, solution)))
  </code></pre>
  
  <p>How do I go about this? Do I need to rebuild the package from scratch, and if so do I need rTools etc for this, or is there a simple-ish workaround (I'm a relevant R novice)? I've done some searching online and can't find anything obvious. Any ideas/pointers gratefully appreciated.</p>