Make your package, examples, and vignettes as small as possibleĬRAN tests all its packages daily. ![]() However, to get into a repository like CRAN, additional steps are needed to make your package pass their quality inspection. liger was on Github for many years before CRAN. So at this stage, people are already able to use your package. So check it out.īy the end of this step, you should be able to put your package on Github and have people install your package via devtools::install_github. Hadley’s guide basically covers everything from documenting functions using Roxygen to preparing your NEWS for release. Luckily, devtools really helps (it’s an R package for making R packages how meta!) Organize your R package following Hadley’s guide Maybe I’m an outlier! But keep in mind that CRAN is run by volunteers, and a large part of your experience will depend on which volunteer(s) you end up working with.īased on my experience, I’ve put together these 10 steps to help make my (and your) next CRAN package submission go a little more smoothly and to remind myself of what to expect. As Karl Broman recommends to those submitting to CRAN: “put on your armor.” Personally, my experience with submitting to CRAN was quite smooth. But I’ve admittedly procrastinated putting anything on CRAN because of its reputation for being unnecessarily hostile. I put all my software, including liger, on Github so that they may be more accessible and potentially useful to the broader scientific community. So liger has been around for awhile in some packaged form. ![]() So to make things more convenient for myself, and to take advantage of the opportunity to learn how to make R packages, I packaged up his code into liger. My PI at the time Peter Kharchenko had written this C++ code to do gene set enrichment testing, which I was using a lot. A little back story: liger was actually the first R package I made back when I first started grad school and was learning R. The package that just got accepted is called liger for Lightweight Iterative Geneset Enrichment in R. The packages on CRAN are the ones available to install via install.packages in R. I recently got my first R package on CRAN! For those who don’t know, the Comprehensive R Archive Network (CRAN) is the main repository for R packages.
0 Comments
Leave a Reply. |