Skip to content

Commit 4bcc829

Browse files
committed
fix typos
1 parent bf0508e commit 4bcc829

File tree

3 files changed

+15
-24
lines changed

3 files changed

+15
-24
lines changed

.github/workflows/call-allcontributors.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
name: Collect contributors
55

66
on:
7-
schedule:
8-
- cron: '0 8 * * 1'
7+
# schedule:
8+
# - cron: '0 8 * * 1'
9+
# TODO: remove push trigger once tests are passing and uncomment schedule
10+
push:
911
workflow_dispatch:
1012

1113
jobs:

.github/workflows/call-pr-checklist.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
name: Add a comment with reviewer checklist when PR opened
44

55
on:
6+
# TODO: remove push trigger once tests are passing
7+
push:
68
pull_request:
79
types: [opened]
810

@@ -36,7 +38,7 @@ jobs:
3638
- [ ] The functionality is good for the users of the code.
3739
- [ ] Code coverage remains high, indicating the new code is tested.
3840
- [ ] The code is commented and the comments are clear, useful, and mostly explain why instead of what.
39-
- [ ] Code is appropriately documented (doxygen and roxygen).
41+
- [ ] Code is appropriately documented.
4042
`
4143
const { issue: { number: issue_number }, repo: { owner, repo } } = context;
4244
github.issues.createComment({ issue_number, owner, repo, body: msg });

tests/testthat/setup.R

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,12 @@ temp <- scan(base_run_path, what = "", sep = "\n", quiet = TRUE)
88

99
# Check if the second element of temp contains "oid" as part of the string.
1010
# If so, run the system command to install git-lfs and pull the data
11-
# Code for Linux system
1211
if (grepl("oid", temp[2])) {
13-
# Check if the system is Linux
14-
if (Sys.info()["sysname"] != "Linux") {
15-
system(
16-
"sudo apt update; sudo apt install git-lfs; git lfs install; git lfs pull",
17-
intern = TRUE
18-
)
19-
}
20-
21-
# Check if the system is macOS
22-
if (Sys.info()["sysname"] == "Darwin") {
23-
system(
24-
"brew install git-lfs; git lfs install; git lfs pull",
25-
intern = TRUE
26-
)
27-
}
28-
29-
if (Sys.info()["sysname"] == "Windows") {
30-
system("winget install -e --id GitHub.GitLFS; git lfs install; git lfs pull")
31-
}
32-
}
12+
sysname <- Sys.info()[["sysname"]]
13+
switch(
14+
sysname,
15+
"Linux" = system("sudo apt update; sudo apt install -y git-lfs; git lfs install; git lfs pull", intern = TRUE),
16+
"Darwin" = system("brew install git-lfs; git lfs install; git lfs pull", intern = TRUE),
17+
"Windows" = system("winget install -e --id GitHub.GitLFS; git lfs install; git lfs pull", intern = TRUE)
18+
)
19+
}

0 commit comments

Comments
 (0)