Skip to content

Commit

Permalink
Switch to rocker/r2u to speed up dependency installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
alecw committed Mar 13, 2024
1 parent d656f8c commit 17a94e5
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 38 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/DropSeq.dropulation.r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,20 @@ on:
permissions:
contents: read

# See https://dirk.eddelbuettel.com/blog/code/r4/ for using r2u to speed up dependency loading
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
r-version: ['4.1.1']

runs-on: ubuntu-latest
container:
image: rocker/r2u:latest
steps:
- uses: actions/checkout@v3
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a
with:
r-version: ${{ matrix.r-version }}
- name: SessionInfo
run: R -q -e 'sessionInfo()'
- name: Install dependencies
run: |
setwd("src/R/packages/DropSeq.dropulation")
install.packages(c("remotes", "rcmdcheck"))
install.packages(c("rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
env:
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/DropSeq.utilities.r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,17 @@ permissions:

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
r-version: ['4.1.1']

runs-on: ubuntu-latest
container:
image: rocker/r2u:latest
steps:
- uses: actions/checkout@v3
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a
with:
r-version: ${{ matrix.r-version }}
- name: SessionInfo
run: R -q -e 'sessionInfo()'
- name: Install dependencies
run: |
setwd("src/R/packages/DropSeq.utilities")
install.packages(c("remotes", "rcmdcheck"))
install.packages(c("rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Check
Expand Down
15 changes: 6 additions & 9 deletions src/R/packages/DropSeq.dropulation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@ Dropulation and Dropulation census functions.

## Installation

You can install the development version of DropSeq.dropulation from [GitHub](https://github.com/) with:
The preferred installation method is to go to the latest release in
[Releases](https://github.com/broadinstitute/Drop-seq/releases) and follow the
instructions there.

``` r
# install.packages("devtools")
devtools::install_github("broadinstitute/Drop-seq", subdir="src/R/packages/DropSeq.dropulation")
```

To install a tagged version v1.2.3:
It is not recommended to install the latest version of DropSeq.dropulation from
[GitHub](https://github.com/), because it is not necessarily stable, but if you choose to do so:

``` r
# install.packages("devtools")
devtools::install_github("broadinstitute/Drop-seq", subdir="src/R/packages/DropSeq.dropulation", ref="v1.2.3")
devtools::install_github("broadinstitute/Drop-seq", subdir="src/R/packages/DropSeq.dropulation")
```

15 changes: 6 additions & 9 deletions src/R/packages/DropSeq.utilities/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,15 @@ DropSeq.utilities contains trivial functions to support other DropSeq R packages

## Installation

You can install the development version of DropSeq.utilities from [GitHub](https://github.com/) with:
The preferred installation method is to go to the latest release in
[Releases](https://github.com/broadinstitute/Drop-seq/releases) and follow the
instructions there.

``` r
# install.packages("devtools")
devtools::install_github("broadinstitute/Drop-seq", subdir="src/R/packages/DropSeq.utilities")
```

To install a tagged version v1.2.3:
It is not recommended to install the latest version of DropSeq.utilities from
[GitHub](https://github.com/), because it is not necessarily stable, but if you choose to do so:

``` r
# install.packages("devtools")
devtools::install_github("broadinstitute/Drop-seq", subdir="src/R/packages/DropSeq.utilities", ref="v1.2.3")
devtools::install_github("broadinstitute/Drop-seq", subdir="src/R/packages/DropSeq.utilities")
```


0 comments on commit 17a94e5

Please sign in to comment.