knitr::opts_chunk$set(tidy=FALSE, cache=FALSE, #dev="png", message=FALSE, error=FALSE, warning=TRUE) options(width=100)
The Herper package is a simple toolset to install and manage Conda packages and environments from R.
The Herper package was developed by Matt Paul, Doug Barrows and Thomas Carroll at the Rockefeller University Bioinformatics Resources Center with contributions from Kathryn Rozen-Gagnon.
Use the BiocManager
package to download and install the package from our Github repository:
if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("Herper")
Once installed, load it into your R session:
library(Herper)
The install_CondaTools() function allows the user to specify required Conda software and the desired environment to install into.
Miniconda is installed as part of the process (by default into the r-reticulate's default Conda location). If you already have Miniconda installed (or want to control the location of miniconda installation), you can specify the path with the pathToMiniConda parameter.
myMiniconda <- file.path(tempdir(),"Test") install_CondaTools("salmon==1.3.0", "herper", pathToMiniConda = myMiniconda)
The install_CondaSysReqs checks the System Requirements for the specified R package, and uses Conda to install this software.
testPkg <- system.file("extdata/HerperTestPkg",package="Herper") install.packages(testPkg,type = "source",repos = NULL) condaDir <- file.path(tempdir(),"r-miniconda") condaPaths <- install_CondaSysReqs("HerperTestPkg",pathToMiniConda=condaDir,SysReqsAsJSON=FALSE) #' system2(file.path(condaPaths$pathToEnvBin,"samtools"),args = "--help")
Thank you to Ji-Dung Luo and Wei Wang for testing/vignette review/critical feedback and Ziwei Liang for their support.
sessionInfo()
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.