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 6caba07 commit 603a1f0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 20 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/DropSeq.utilities.r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,18 @@ 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 }}
- uses: actions/checkout@v3
- 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
16 changes: 6 additions & 10 deletions src/R/packages/DropSeq.utilities/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,14 @@ 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 603a1f0

Please sign in to comment.