Skip to content

Commit 56e7d85

Browse files
committed
Merge branch 'main' into 25-update-vignettes-to-use-mrbayestrees
2 parents 75a64fc + b3dfd2f commit 56e7d85

File tree

17 files changed

+1428
-517
lines changed

17 files changed

+1428
-517
lines changed

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

Lines changed: 51 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
- "**.json"
1515
- "**.md"
1616
- "**.yml"
17-
- "!**R-cmd-check.yml"
17+
- "!**R-CMD-check.yml"
1818
- "**.R[dD]ata"
1919
- "**.Rpro*"
2020
pull_request:
@@ -29,7 +29,7 @@ on:
2929
- "**.json"
3030
- "**.md"
3131
- "**.yml"
32-
- "!**R-cmd-check.yml"
32+
- "!**R-CMD-check.yml"
3333
- "**.R[dD]ata"
3434
- "**.Rpro*"
3535

@@ -61,96 +61,75 @@ jobs:
6161
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
6262

6363
steps:
64-
- uses: actions/checkout@v3
64+
- uses: actions/checkout@v4
6565
with:
6666
submodules: true
67+
68+
- name: Install system dependencies (Linux)
69+
if: runner.os == 'Linux'
70+
run: |
71+
sudo apt-get update -y
72+
sudo apt-get install -y libpoppler-glib-dev bwidget libavfilter-dev libtesseract-dev gdal-bin proj-bin libgdal-dev libproj-dev tesseract-ocr-eng libleptonica-dev tcl libgtk2.0-dev libgtk-3-dev
73+
sudo pkg-config --libs poppler-glib
74+
sudo pkg-config --cflags poppler-glib
6775
6876
- uses: r-lib/actions/setup-r@v2
6977
with:
7078
r-version: ${{ matrix.config.r }}
71-
79+
7280
- uses: r-lib/actions/setup-pandoc@v2
73-
74-
- name: Query dependencies
75-
if: runner.os != 'macOS'
76-
run: |
77-
install.packages('remotes')
78-
saveRDS(
79-
remotes::dev_package_deps(dependencies = c("soft",
80-
"Config/Needs/github-actions")), ".github/depends.Rds", version = 2)
81-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor),
82-
".github/R-version")
83-
shell: Rscript {0}
84-
85-
- name: Query dependencies (macOS)
86-
if: runner.os == 'macOS'
87-
run: |
88-
install.packages('remotes')
89-
saveRDS(
90-
remotes::dev_package_deps(dependencies = c("soft",
91-
"Config/Needs/coverage", "Config/Needs/github-actions"))
92-
, ".github/depends.Rds", version = 2)
93-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor),
94-
".github/R-version")
95-
shell: Rscript {0}
96-
81+
9782
- name: Cache R packages
98-
if: runner.os != 'Windows'
99-
uses: actions/cache@v3
83+
uses: actions/cache@v4
10084
with:
10185
path: ${{ env.R_LIBS_USER }}
10286
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
10387
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
104-
105-
- name: Install system dependencies (Linux)
106-
if: runner.os == 'Linux'
107-
run: |
108-
sudo apt-get update -y
109-
sudo apt-get install -y libpoppler-glib-dev bwidget libavfilter-dev libtesseract-dev gdal-bin proj-bin libgdal-dev libproj-dev tesseract-ocr-eng libleptonica-dev tcl libgtk2.0-dev libgtk-3-dev
110-
sudo pkg-config --libs poppler-glib
111-
sudo pkg-config --cflags poppler-glib
112-
while read -r cmd
113-
do
114-
eval sudo $cmd
115-
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
116-
88+
11789
- name: Install system dependencies (macOS)
11890
if: runner.os == 'macOS'
11991
run: |
12092
brew install libgit2 xquartz
12193
122-
- name: Install callr (Windows)
94+
- name: Set up R dependencies (Windows)
12395
if: runner.os == 'Windows'
124-
run: |
125-
remotes::install_cran("callr")
126-
shell: Rscript {0}
127-
128-
- name: Install dependencies
129-
run: |
130-
remotes::install_deps(dependencies = c("soft", "Config/Needs/github-actions"))
131-
shell: Rscript {0}
132-
133-
- name: Install coverage dependencies
134-
if: runner.os == 'macOS'
135-
run: |
136-
remotes::install_deps(dependencies = 'Config/Needs/coverage')
137-
shell: Rscript {0}
138-
139-
- name: Check
140-
env:
141-
_R_CHECK_CRAN_INCOMING_REMOTE_: false
142-
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
143-
shell: Rscript {0}
144-
145-
# - name: Upload check results
146-
# if: failure()
147-
# uses: actions/upload-artifact@main
148-
# with:
149-
# name: ${{ runner.os }}-r${{ matrix.config.r }}-results
150-
# path: check
96+
uses: r-lib/actions/setup-r-dependencies@v2
97+
with:
98+
extra-packages: callr
99+
needs: |
100+
check
101+
coverage
102+
github-actions
103+
104+
- name: Set up R dependencies (Non-Windows)
105+
if: runner.os != 'Windows'
106+
uses: r-lib/actions/setup-r-dependencies@v2
107+
with:
108+
needs: |
109+
check
110+
github-actions
111+
extra-packages: |
112+
phangorn=?ignore-before-r=4.1.0
113+
114+
- name: Check package
115+
uses: r-lib/actions/check-r-package@v2
151116

152117
- name: Test coverage
153-
if: runner.os == 'macOS'
118+
if: runner.os == 'Windows'
154119
run: |
155120
covr::codecov()
156121
shell: Rscript {0}
122+
123+
- name: Notify on failure
124+
if: failure() && github.event_name == 'schedule'
125+
uses: actions/github-script@v7
126+
with:
127+
github-token: ${{ secrets.GITHUB_TOKEN }}
128+
script: |
129+
github.rest.issues.createComment({
130+
owner: context.repo.owner,
131+
repo: context.repo.repo,
132+
issue_number: 31,
133+
body: 'Scheduled workflow has failed: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
134+
});
135+

.github/workflows/RcppDeepState.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
3333

3434
steps:
35-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v4
3636
with:
3737
submodules: true
3838

.github/workflows/codemeta.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
RSPM: ${{ matrix.config.rspm }}
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424

2525
- uses: r-lib/actions/setup-r@v2
2626
with:
@@ -37,7 +37,7 @@ jobs:
3737
shell: Rscript {0}
3838

3939
- name: Cache R packages
40-
uses: actions/cache@v2
40+
uses: actions/cache@v4
4141
with:
4242
path: ${{ env.R_LIBS_USER }}
4343
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}

.github/workflows/memcheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4343

4444
steps:
45-
- uses: actions/checkout@v3
45+
- uses: actions/checkout@v4
4646
with:
4747
submodules: true
4848

@@ -66,7 +66,7 @@ jobs:
6666
shell: Rscript {0}
6767

6868
- name: Cache R packages
69-
uses: actions/cache@v2
69+
uses: actions/cache@v4
7070
with:
7171
path: ${{ env.R_LIBS_USER }}
7272
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}

.github/workflows/pkgdown.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
R_COMPILE_AND_INSTALL_PACKAGES: 'never'
2323

2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v4
2626
with:
2727
submodules: true
2828

@@ -38,7 +38,7 @@ jobs:
3838
shell: Rscript {0}
3939

4040
- name: Cache R packages
41-
uses: actions/cache@v2
41+
uses: actions/cache@v4
4242
with:
4343
path: ${{ env.R_LIBS_USER }}
4444
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}

.github/workflows/revdepcheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
6060

6161
steps:
62-
- uses: actions/checkout@v2
62+
- uses: actions/checkout@v4
6363

6464
- uses: r-lib/actions/setup-r@v2
6565
with:
@@ -76,7 +76,7 @@ jobs:
7676
shell: Rscript {0}
7777

7878
- name: Cache R packages
79-
uses: actions/cache@v2
79+
uses: actions/cache@v4
8080
with:
8181
path: ${{ env.R_LIBS_USER }}
8282
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}

.github/workflows/update-csl.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Update CSL file
2+
on:
3+
schedule:
4+
- cron: '0 0 * * 1' # Runs weekly on Monday at 00:00 UTC
5+
workflow_dispatch: # Allows manual triggering
6+
7+
jobs:
8+
update-csl:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Download latest CSL file
14+
run: |
15+
curl -o inst/apa-old-doi-prefix.csl https://raw.githubusercontent.com/citation-style-language/styles/master/apa-old-doi-prefix.csl
16+
17+
- name: Check for changes
18+
id: changes
19+
run: |
20+
if git diff --quiet inst/apa-old-doi-prefix.csl; then
21+
echo "::set-output name=changed::false"
22+
echo "No changes to commit"
23+
else
24+
echo "::set-output name=changed::true"
25+
fi
26+
27+
- name: Commit and push
28+
if: steps.changes.outputs.changed == 'true'
29+
run: |
30+
git config --local user.email "[email protected]"
31+
git config --local user.name "GitHub Actions"
32+
git add inst/apa-old-doi-prefix.csl
33+
git commit -m "Update CSL file from upstream"
34+
git push

CONTRIBUTING.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,19 @@ bug, create an associated issue and illustrate the bug with a minimal
2424
* We use the Oxford ending of 'ize' (not 'ise'), and UK spelling (e.g. 'colour')
2525
where it is not possible to avoid the distinction (e.g. by shortening to 'col')
2626
* We use [roxygen2](https://cran.r-project.org/package=roxygen2) to build
27-
documentation.
27+
documentation.
2828
* We use [testthat](https://cran.r-project.org/package=testthat). Contributions
29-
with test cases included are easier to accept.
29+
with test cases included are easier to accept.
30+
* We use [semantic versioning](https://semver.org/).
3031
* For user-facing changes, add a bullet to the top of `NEWS.md` below the
3132
current development version header describing the changes made followed by your
3233
GitHub username, and links to relevant issue(s)/PR(s).
3334

35+
### Contributor license agreement
36+
37+
Contributors agree to reassign the copyright of their contributions to the
38+
maintainers of the package.
39+
3440
### Code of Conduct
3541

3642
Please note that the project is released with a

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: Rogue
22
Title: Identify Rogue Taxa in Sets of Phylogenetic Trees
3-
Version: 2.1.6.9001
3+
Version: 2.1.6.9000
44
Authors@R: c(person("Martin R.", 'Smith',
55
email = "[email protected]",
66
role = c("aut", "cre", "cph"),
@@ -62,5 +62,5 @@ ByteCompile: true
6262
Encoding: UTF-8
6363
Language: en-GB
6464
VignetteBuilder: knitr
65-
RoxygenNote: 7.2.3
65+
RoxygenNote: 7.3.1
6666
Roxygen: list(markdown = TRUE)

NEWS.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,50 @@
1-
# Rogue v2.1.6.9001 (development)
1+
# Rogue v2.1.6.9000 (2025-04-14)
22

33
- Simplify vignette with new `TreeTools::ReadMrBayesTrees()`.
44

5+
- Improve tip instability calculation in identical tree sets
6+
([#29](https://github.com/ms609/Rogue/issues/29)).
57

6-
# Rogue v2.1.6
8+
9+
# Rogue v2.1.6 (2023-11-29)
710

811
- Legend annotations in documentation.
912
- Disable parallel evaluation by default in `TipInstability()`,
1013
adding `parallel` parameter to allow user to override.
1114
- Use format string in REprintf().
1215

1316

14-
# Rogue v2.1.5
17+
# Rogue v2.1.5 (2023-03-20)
1518

1619
- Call C functions using symbols, not strings.
1720

1821

19-
# Rogue v2.1.4
22+
# Rogue v2.1.4 (2023-01-16)
2023

2124
- C2X compliant function prototypes.
2225

2326
- Remove unused `sprintf()` calls.
2427

2528

26-
# Rogue v2.1.3
29+
# Rogue v2.1.3 (2022-09-26)
2730

2831
- `ColByStability()` gains `pal` argument to allow specification of custom
2932
palettes.
3033

3134

32-
# Rogue v2.1.2
35+
# Rogue v2.1.2 (2022-08-16)
3336

3437
- Faster rogue detection when edge lengths provided, per report by Joe Keating.
3538

3639
- Don't list `neverDrop` in `QuickRogue(fullSeq = TRUE)`.
3740

3841

39-
# Rogue v2.1.1
42+
# Rogue v2.1.1 (2022-07-20)
4043

4144
- Handle `ColByStability(trees = NULL)`.
4245

4346

44-
# Rogue v2.1.0
47+
# Rogue v2.1.0 (2022-01-13)
4548

4649
- Early termination of `QuickRogue()` when no further improvement possible.
4750

@@ -54,11 +57,11 @@
5457
- New vignette detailing rogue detection with Bayesian tree samples.
5558

5659

57-
# Rogue v2.0.0
60+
# Rogue v2.0.0 (2021-09-13)
5861

5962
- Information theoretic rogue detection (per Smith, 2022).
6063

6164

62-
# Rogue v1.0.0
65+
# Rogue v1.0.0 (2021-06-28)
6366

6467
- R interface to RogueNaRok.

0 commit comments

Comments
 (0)