<a href="https://1.bp.blogspot.com/-2b-f8H6OJUc/WHj1xLRJSlI/AAAAAAAAGOE/H3_IMJcNC9sqpfF2kneySFvDESRayiFSACLcB/s1600/Grinch.jpg"></a><span>Now that the Christmas break is just a distant memory (<a target="_blank" href="http://www.imperial.ac.uk/people/m.blangiardo">Marta</a> would say that I am quite happy with that $-$ she thinks I'm like the <a target="_blank" href="https://en.wikipedia.org/wiki/Grinch">Grinch</a> around the Christmas holiday. And she is right), I've given way to my new year's resolution of finally, properly packaging our two R packages that aren't on <a target="_blank" href="http://cran.r-project.org/">CRAN</a> yet.</span><br><span><br></span><span>The first one is <a target="_blank" href="https://sites.google.com/a/statistica.it/gianluca/swsamp">SWSamp</a> (about which I've already talked <a target="_blank" href="https://gianlubaio.blogspot.co.uk/2015/11/more-on-stepped-wedge.html">here</a> and <a target="_blank" href="https://gianlubaio.blogspot.co.uk/2016/12/nomen-omen.html">here</a>) and the second is <a target="_blank" href="https://github.com/giabaio/survHE">survHE</a> (which I have also already mentioned <a target="_blank" href="https://gianlubaio.blogspot.co.uk/2016/01/i-will-survive.html">here</a> and <a target="_blank" href="https://gianlubaio.blogspot.co.uk/2016/12/nomen-omen.html">here</a>).</span><br><span><br></span><span>I've got better at using GitHub and (for survHE) benefited from the help of <a target="_blank" href="https://github.com/lemna">Peter Konings</a>, who's helped with bits of code and also given me either tips or &quot;forced&quot; me to look into better solutions for the management and potential distribution of the packages, even if they're not directly on the official R repository.</span><br><span><br></span><span>Eventually, this means I've settled for (I think!) a good compromise $-$ I've created a local repository in which I've stored my packages; this in itself doesn't take care of all the dependencies, but it's easy (even for practitioners not too familiar with R) to install the packages and all the others on which they rely to work with very simple commands, for example</span><br><pre>install.packages(<span><span>&quot;</span>survHE<span>&quot;</span></span>,<br><span>repos</span><span>=</span>c(<span><span>&quot;</span>http://www.statistica.it/gianluca/R<span>&quot;</span></span>,<br><span><span>&quot;</span>https://cran.rstudio.org<span>&quot;</span></span>,<br><span><span>&quot;</span>https://www.math.ntnu.no/inla/R/stable<span>&quot;</span></span>),<br><span>dependencies</span><span>=</span><span>TRUE</span><br>)</pre><span>$-$ this way R uses three repositories (one for survHE, one for all the other dependencies stored on CRAN and one for <a target="_blank" href="http://www.r-inla.org/">INLA</a>, which is under its own repository).</span><br><span><br></span><span>We've done some tests and all seems to be working OK, which is great. I've also set in motion a couple of plans for updates to both the packages $-$ I'll post more on this soon! </span><span>(Incidentally, this also gives way for the development of two more interesting projects: Anthony's work on single arm trial and Andrea's work on missing data for cost-effectiveness analysis. Again, will post more as we have some more output to show for!).</span>