Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/bookdown.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Build Bookdown

on:
push:
branches:
Expand All @@ -14,15 +13,14 @@ permissions:
jobs:
build:
runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: "4.4.0"
r-version: "4.5.0"

- name: Install system dependencies
run: |
Expand All @@ -31,17 +29,19 @@ jobs:

- name: Install CRAN & Bioconductor packages
run: |
# Install remotes if missing
Rscript -e 'if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes")'

# Install CRAN dependencies from DESCRIPTION
Rscript -e 'remotes::install_deps(dependencies = TRUE, upgrade = "never")'

# Install BiocManager if missing
# Install BiocManager and Bioconductor packages FIRST
# so remotes::install_deps() doesn't warn about missing deps
Rscript -e 'if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager")'

Rscript -e 'BiocManager::install(c("EnhancedVolcano","DESeq2","edgeR","RUVSeq","piano","pcaMethods","impute","imputeLCMD","GEOquery"), ask = FALSE)'

# Pin factoextra
Rscript -e 'remotes::install_version("factoextra", version = "1.0.7", repos = "https://cran.rstudio.com")'

# Install Bioconductor packages
Rscript -e 'BiocManager::install(c("EnhancedVolcano","DESeq2","edgeR","RUVSeq","piano","pcaMethods","impute", "imputeLCMD"), ask = FALSE)'
# Now install remaining CRAN deps from DESCRIPTION
Rscript -e 'remotes::install_deps(dependencies = TRUE, upgrade = "never")'

- name: Build bookdown
run: |
Expand All @@ -61,4 +61,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
force_orphan: true
force_orphan: true
18 changes: 10 additions & 8 deletions .github/workflows/test_bookdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: "4.4.0"
r-version: "4.5.0"

- name: Install system dependencies
run: |
Expand All @@ -36,17 +36,19 @@ jobs:

- name: Install CRAN & Bioconductor packages
run: |
# Install remotes if missing
Rscript -e 'if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes")'

# Install CRAN dependencies from DESCRIPTION
Rscript -e 'remotes::install_deps(dependencies = TRUE, upgrade = "never")'

# Install BiocManager if missing
# Install BiocManager and Bioconductor packages FIRST
# so remotes::install_deps() doesn't warn about missing deps
Rscript -e 'if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager")'

# Install Bioconductor packages
Rscript -e 'BiocManager::install(c("EnhancedVolcano","DESeq2","edgeR","RUVSeq","piano","pcaMethods","impute", "imputeLCMD"), ask = FALSE)'
Rscript -e 'BiocManager::install(c("EnhancedVolcano","DESeq2","edgeR","RUVSeq","piano","pcaMethods","impute","imputeLCMD","GEOquery"), ask = FALSE)'

# Pin factoextra
Rscript -e 'remotes::install_version("factoextra", version = "1.0.7", repos = "https://cran.rstudio.com")'

# Now install remaining CRAN deps from DESCRIPTION
Rscript -e 'remotes::install_deps(dependencies = TRUE, upgrade = "never")'

- name: Build bookdown
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.Rhistory
.RData
.Ruserdata
.DS_Store
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
repos:
- repo: local
hooks:
- id: namer
name: Name Rmd chunks with namer
language: system
entry: Rscript -e 'files <- list.files(".", pattern="[.][Rr]md$", recursive=TRUE, full.names=TRUE); files <- files[!grepl("(^|/)book/|(^|/)_book/", files)]; for (f in files) namer::name_chunks(f); cat("Processed", length(files), "Rmd files\n")'
pass_filenames: false
always_run: true
Binary file removed Chapter_1/.DS_Store
Binary file not shown.
88 changes: 44 additions & 44 deletions Chapter_1/01-Chapter1.Rmd

Large diffs are not rendered by default.

Binary file removed Chapter_2/.DS_Store
Binary file not shown.
216 changes: 108 additions & 108 deletions Chapter_2/02-Chapter2.Rmd

Large diffs are not rendered by default.

Binary file removed Chapter_3/.DS_Store
Binary file not shown.
192 changes: 96 additions & 96 deletions Chapter_3/03-Chapter3.Rmd

Large diffs are not rendered by default.

Binary file removed Chapter_4/.DS_Store
Binary file not shown.
280 changes: 140 additions & 140 deletions Chapter_4/04-Chapter4.Rmd

Large diffs are not rendered by default.

Binary file removed Chapter_5/.DS_Store
Binary file not shown.
220 changes: 110 additions & 110 deletions Chapter_5/05-Chapter5.Rmd

Large diffs are not rendered by default.

Binary file removed Chapter_6/.DS_Store
Binary file not shown.
Loading
Loading