Skip to content

Commit

Permalink
Merge pull request #63 from sterrettJD/fix_R_imports
Browse files Browse the repository at this point in the history
Fix r imports
  • Loading branch information
sterrettJD authored May 6, 2024
2 parents 45f19a8 + cf4dbe6 commit cf60a0f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/rule_utils/Gut_metabolic_modules.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ knitr::opts_chunk$set(echo = TRUE)
if (!require("tidyverse")) {
install.packages("tidyverse", repos="http://cran.us.r-project.org")
library("tidyverse")
}
if (!require("data.table")) {
Expand Down
4 changes: 4 additions & 0 deletions src/rule_utils/HUMAnN_microshades.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ knitr::opts_chunk$set(echo = TRUE)
if (!require("tidyverse")) {
install.packages("tidyverse", repos="http://cran.us.r-project.org")
library("tidyverse")
}
if (!require("data.table")) {
Expand All @@ -21,14 +22,17 @@ if (!require("data.table")) {
if (!require("ggplot2")) {
install.packages("ggplot2", repos="http://cran.us.r-project.org")
library("ggplot2")
}
if (!require("patchwork")) {
install.packages("patchwork", repos="http://cran.us.r-project.org")
library("patchwork")
}
if (!require("cowplot")) {
install.packages("cowplot", repos="http://cran.us.r-project.org")
library("cowplot")
}
if (!require("remotes")) {
Expand Down
4 changes: 4 additions & 0 deletions src/rule_utils/Metaphlan_microshades.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ knitr::opts_chunk$set(echo = TRUE)
if (!require("tidyverse")) {
install.packages("tidyverse", repos="http://cran.us.r-project.org")
library("tidyverse")
}
if (!require("data.table")) {
Expand All @@ -21,14 +22,17 @@ if (!require("data.table")) {
if (!require("ggplot2")) {
install.packages("ggplot2", repos="http://cran.us.r-project.org")
library("ggplot2")
}
if (!require("patchwork")) {
install.packages("patchwork", repos="http://cran.us.r-project.org")
library("patchwork")
}
if (!require("cowplot")) {
install.packages("cowplot", repos="http://cran.us.r-project.org")
library("cowplot")
}
if (!require("remotes")) {
Expand Down
9 changes: 6 additions & 3 deletions src/rule_utils/nonpareil_curves.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ params:
knitr::opts_chunk$set(echo = TRUE)
if (!require("Nonpareil")){
install.packages('Nonpareil', repos="http://cran.us.r-project.org");
install.packages('Nonpareil', repos="http://cran.us.r-project.org")
library("Nonpareil")
}
if (!require("data.table")){
install.packages('data.table', repos="http://cran.us.r-project.org");
install.packages('data.table', repos="http://cran.us.r-project.org")
library("data.table")
}
if (!require("ggplot2")){
install.packages('ggplot2', repos="http://cran.us.r-project.org");
install.packages('ggplot2', repos="http://cran.us.r-project.org")
library("ggplot2")
}
```

Expand Down

0 comments on commit cf60a0f

Please sign in to comment.