Skip to content

Commit faf5585

Browse files
committed
use cli for print tidySE and fix GHA
1 parent 244e2a1 commit faf5585

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/check-bioc.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ jobs:
5252
fail-fast: false
5353
matrix:
5454
config:
55-
- { os: ubuntu-latest, r: '4.3', bioc: '3.18', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest" }
56-
- { os: macOS-latest, r: '4.3', bioc: '3.18'}
57-
- { os: windows-latest, r: '4.3', bioc: '3.18'}
55+
- { os: ubuntu-latest, r: '4.4', bioc: '3.19', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest" }
56+
- { os: macOS-latest, r: '4.4', bioc: '3.19'}
57+
- { os: windows-latest, r: '4.4', bioc: '3.19'}
5858
## Check https://github.com/r-lib/actions/tree/master/examples
5959
## for examples using the http-user-agent
6060
env:
@@ -105,16 +105,16 @@ jobs:
105105
uses: actions/cache@v3
106106
with:
107107
path: ${{ env.R_LIBS_USER }}
108-
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.3-${{ hashFiles('.github/depends.Rds') }}
109-
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.3-
108+
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.4-${{ hashFiles('.github/depends.Rds') }}
109+
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.4-
110110

111111
- name: Cache R packages on Linux
112112
if: "!contains(github.event.head_commit.message, '/nocache') && runner.os == 'Linux' "
113113
uses: actions/cache@v3
114114
with:
115115
path: /home/runner/work/_temp/Library
116-
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.3-${{ hashFiles('.github/depends.Rds') }}
117-
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.3-
116+
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.4-${{ hashFiles('.github/depends.Rds') }}
117+
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.4-
118118

119119
# - name: Install Linux system dependencies
120120
# if: runner.os == 'Linux'
@@ -285,7 +285,7 @@ jobs:
285285
if: failure()
286286
uses: actions/upload-artifact@master
287287
with:
288-
name: ${{ runner.os }}-biocversion-devel-r-4.3-results
288+
name: ${{ runner.os }}-biocversion-devel-r-4.4-results
289289
path: check
290290

291291

R/print_method.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#' @importFrom pillar get_extent
1414
#' @importFrom pillar style_subtle
1515
#' @importFrom pillar tbl_format_header
16+
#' @importFrom cli col_br_black
1617
#' @export
1718
tbl_format_header.tidySummarizedExperiment <- function(x, setup, ...) {
1819

@@ -32,12 +33,12 @@ tbl_format_header.tidySummarizedExperiment <- function(x, setup, ...) {
3233
named_header
3334
) %>%
3435
# Add further info single-cell
35-
append(sprintf(
36-
"\033[90m Features=%s | Samples=%s | Assays=%s\033[39m",
36+
append( cli::col_br_black( sprintf(
37+
" Features=%s | Samples=%s | Assays=%s",
3738
number_of_features,
3839
number_of_samples,
3940
assay_names %>% paste(collapse=", ")
40-
), after = 1)
41+
)), after = 1)
4142
}
4243
style_subtle(pillar___format_comment(header, width=setup$width))
4344
}

0 commit comments

Comments
 (0)