Skip to content

Commit 2d40979

Browse files
committed
Really bump cache
Also fix the check_n utility function
1 parent 4c67a43 commit 2d40979

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/db.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
uses: actions/cache@v1
5858
with:
5959
path: ${{ env.R_LIBS_USER }}
60-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
60+
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-2-${{ hashFiles('.github/depends.Rds') }}
6161
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-2-
6262

6363
- name: Install R system dependencies

R/utils.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ id_field <- function(id, field, default = NULL) {
6161

6262
check_n <- function(n) {
6363
if (length(n) != 1) stop("`n` must be scalar", call. = FALSE)
64-
if (n < -1) stopc("`n` must be nonnegative or -1")
64+
if (n < -1) stop("`n` must be nonnegative or -1", call. = FALSE)
6565
if (is.infinite(n)) n <- -1
66-
if (trunc(n) != n) stopc("`n` must be a whole number", call. = FALSE)
66+
if (trunc(n) != n) stop("`n` must be a whole number", call. = FALSE)
6767
n
6868
}

0 commit comments

Comments
 (0)