<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Technically, if we make it part of GenABEL would that mean that GenABEL<br>
depends on DatABEL (now it is only a suggested dependency) since Paul's<br>
function 'require()'s DatABEL? Are there any other R packages that have<br>
functionality that only works if a given package is installed (that is<br>
not in the dependency list but only in the suggested list)?<br>
<br></blockquote><div><br></div><div><br></div><div>I do not see a big problem with above - e.g. there are functions like minimac2databel in the GenA. They start with (<a href="https://r-forge.r-project.org/scm/viewvc.php/pkg/GenABEL/R/minimac2databel.R?view=markup&root=genabel">https://r-forge.r-project.org/scm/viewvc.php/pkg/GenABEL/R/minimac2databel.R?view=markup&root=genabel</a>)</div>
<div><br></div><div><pre style="margin-top:0px;padding:0px;line-height:10.909090995788574px;background-color:rgb(255,255,255)">minimac2databel <- function(imputedgenofile, infofile, outfile, cachesizeMb=64)
{
if (!require(DatABEL))
stop("This function requires DatABEL package to be installed")</pre></div><div><br></div><div>This seems to be accepted practice</div><div><br></div><div>Yurii</div></div>