Skip to content

Commit c538ded

Browse files
Merge branch 'develop' of github.com:HenrikBengtsson/progressr into develop
2 parents a97cd69 + 7aa3fe2 commit c538ded

File tree

4 files changed

+35
-19
lines changed

4 files changed

+35
-19
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ Rplots.pdf$
6161
^last.dump*
6262
^imgs
6363
^.*.bob$
64+
^\.github$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-check.yaml

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
config:
15-
- { os: windows-latest, r: '3.5'}
16-
- { os: windows-latest, r: '3.6'}
17-
- { os: windows-latest, r: '4.0'}
18-
- { os: windows-latest, r: 'devel'}
19-
- { os: macOS-latest, r: '3.5'}
20-
- { os: macOS-latest, r: '3.6'}
21-
- { os: macOS-latest, r: '4.0'}
22-
- { os: macOS-latest, r: 'devel'}
23-
- { os: ubuntu-16.04, r: '3.4', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
24-
- { os: ubuntu-16.04, r: '3.5', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
25-
- { os: ubuntu-16.04, r: '3.6', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
26-
- { os: ubuntu-16.04, r: '4.0', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
15+
- { os: windows-latest, r: '3.5'}
16+
- { os: windows-latest, r: '3.6'}
17+
- { os: windows-latest, r: '4.0'}
18+
- { os: windows-latest, r: 'devel'}
19+
- { os: macOS-latest, r: '3.5'}
20+
- { os: macOS-latest, r: '3.6'}
21+
- { os: macOS-latest, r: '4.0'}
22+
- { os: macOS-latest, r: 'devel'}
23+
- { os: ubuntu-16.04, r: '3.4', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
24+
- { os: ubuntu-16.04, r: '3.5', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
25+
- { os: ubuntu-16.04, r: '3.6', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
26+
- { os: ubuntu-16.04, r: '4.0', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
2727

2828
env:
2929
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
3030
CRAN: ${{ matrix.config.cran }}
3131

3232

3333
steps:
34-
- uses: actions/checkout@v1
34+
- uses: actions/checkout@v2
3535

3636
- uses: r-lib/actions/setup-r@master
3737
with:
@@ -40,14 +40,18 @@ jobs:
4040
- uses: r-lib/actions/setup-pandoc@master
4141

4242
- name: Query dependencies
43-
run: Rscript -e "install.packages('remotes')" -e "saveRDS(remotes::dev_package_deps(dependencies = TRUE), 'depends.Rds', version = 2)"
43+
run: |
44+
install.packages('remotes')
45+
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
46+
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
47+
shell: Rscript {0}
4448

4549
- name: Cache R packages
4650
if: runner.os != 'Windows'
4751
uses: actions/cache@v1
4852
with:
4953
path: ${{ env.R_LIBS_USER }}
50-
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('depends.Rds') }}
54+
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('.github/depends.Rds') }}
5155
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-
5256

5357
- name: Install system dependencies
@@ -61,11 +65,21 @@ jobs:
6165
6266
- name: Install dependencies
6367
run: |
64-
Rscript -e "library(remotes)" -e "update(readRDS('depends.Rds'))" -e "remotes::install_cran('rcmdcheck')"
65-
Rscript -e "install.packages('progressr')" ## 'self' vignette engine
68+
remotes::install_deps(dependencies = TRUE)
69+
remotes::install_cran("rcmdcheck")
70+
install.packages("progressr") ## 'self' vignette engine
71+
shell: Rscript {0}
6672

73+
- name: Session info
74+
run: |
75+
options(width = 100)
76+
pkgs <- installed.packages()[, "Package"]
77+
sessioninfo::session_info(pkgs, include_base = TRUE)
78+
shell: Rscript {0}
79+
6780
- name: Check
68-
run: Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'warning', check_dir = 'check')"
81+
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
82+
shell: Rscript {0}
6983

7084
- name: Upload check results
7185
if: failure()

R/handler_progress.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ handler_progress <- function(format = "[:bar] :percent :message", show_after = 0
6666
)
6767
)
6868
erase_progress_bar <- function(pb) NULL
69-
redraw_progress_bar <- function(pb, ...) NULL
69+
redraw_progress_bar <- function(pb, tokens = list()) NULL
7070
}
7171

7272
reporter <- local({

0 commit comments

Comments
 (0)