Skip to content

Commit

Permalink
Move stringi import to before GenomicFeatures import
Browse files Browse the repository at this point in the history
  • Loading branch information
j-berg committed Mar 30, 2020
1 parent b4e3e18 commit 1fc9a93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xpresspipe/RbuildIndex.r
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ sub_license <- function() {
# Install dependencies
if (!requireNamespace("BiocManager", quietly = TRUE)) {install.packages("BiocManager", repos = "http://cran.us.r-project.org")}

install.packages("stringi", repos = "http://cran.us.r-project.org")
library(stringi)

if ("GenomicFeatures" %in% rownames(installed.packages()) == FALSE) {
print("Installing GenomicFeatures...")
BiocManager::install("GenomicFeatures", dependencies=c("Depends", "Imports", "LinkingTo"))
Expand All @@ -63,9 +66,6 @@ if ("GenomicFeatures" %in% rownames(installed.packages()) == FALSE) {

library(GenomicFeatures)

install.packages("stringi", repos = "http://cran.us.r-project.org")
library(stringi)

if ("data.table" %in% rownames(installed.packages()) == FALSE) {
print("Installing data.table...")
install.packages("data.table", repos = "http://cran.us.r-project.org")
Expand Down

0 comments on commit 1fc9a93

Please sign in to comment.