Skip to content

Commit 053eace

Browse files
Merge pull request #141 from R-Computing-Lab/dev_main
Dev main
2 parents 3b6efee + 1081da0 commit 053eace

35 files changed

Lines changed: 2032 additions & 568 deletions

.Rbuildignore

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,38 @@
1+
CITATION.cff$
2+
^.*\.Rproj$
13
^BGmisc\.Rproj$
2-
^\.Rproj\.user$
4+
^BGmisc\.code-workspace$
5+
^BGmisc_main\.code-workspace$
6+
^CITATION\.cff$
7+
^CODE_OF_CONDUCT\.md$
8+
^CONTRIBUTING\.md$
9+
^CRAN-SUBMISSION$
10+
^LICENSE.md$
311
^LICENSE\.md$
12+
^Meta$
413
^R/\.Rhistory$
514
^R/paper$
6-
^checkParents\.X
7-
^test-clean\.X
8-
CITATION.cff$
9-
^doc$
10-
^data-raw$
11-
^Meta$
12-
^vignettes/articles$
1315
^README\.Rmd$
16+
^\.Rproj\.user$
1417
^\.github$
15-
^cran-comments\.md$
16-
^CRAN-SUBMISSION$
17-
^BGmisc\.code-workspace$
18+
^\.httr-oauth$
1819
^\.lintr$
19-
^CODE_OF_CONDUCT\.md$
20-
^CONTRIBUTING\.md$
20+
^\.vscode$
21+
^\.zenodo\.json$
22+
^_pkgdown.yml$
2123
^_pkgdown\.yml$
24+
^checkParents\.X
25+
^checklist.yml$
26+
^codecov\.yml$
27+
^codecov\.xaml$
28+
^cran-comments\.md$
29+
^data-raw$
30+
^doc$
2231
^docs$
32+
^man-roxygen$
33+
^organisation.yml$
2334
^pkgdown$
24-
^\.vscode$
25-
^BGmisc_main\.code-workspace$
2635
^revdep$
36+
^test-clean\.X
37+
^vignettes/articles$
38+
^.claude$
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
push:
3+
branches-ignore:
4+
- main
5+
- master
6+
- ghpages
7+
8+
name: "check package with checklist"
9+
10+
jobs:
11+
check-package:
12+
runs-on: ubuntu-latest
13+
name: "check package"
14+
env:
15+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
permissions:
18+
contents: read
19+
steps:
20+
- uses: inbo/actions/check_pkg@main
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
- master
6+
pull_request:
7+
branches:
8+
- main
9+
- master
10+
11+
name: R-CMD-check-OS
12+
13+
jobs:
14+
R-CMD-check:
15+
runs-on: ${{ matrix.config.os }}
16+
17+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
config:
23+
- {os: macOS-latest, r: 'release'}
24+
- {os: windows-latest, r: 'release'}
25+
- {os: ubuntu-24.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/noble/latest"}
26+
- {os: ubuntu-24.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/noble/latest"}
27+
28+
env:
29+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
30+
_R_CHECK_SYSTEM_CLOCK_: false
31+
RSPM: ${{ matrix.config.rspm }}
32+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
33+
34+
steps:
35+
- uses: actions/checkout@v3
36+
37+
- uses: r-lib/actions/setup-r@v2
38+
with:
39+
r-version: ${{ matrix.config.r }}
40+
extra-repositories: https://inbo.r-universe.dev
41+
42+
- uses: r-lib/actions/setup-pandoc@v2
43+
44+
- uses: r-lib/actions/setup-r-dependencies@v2
45+
with:
46+
extra-packages: any::rcmdcheck
47+
needs: check
48+
49+
- uses: r-lib/actions/check-r-package@v2
50+
with:
51+
error-on: '"error"'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
- master
6+
permissions:
7+
contents: write
8+
9+
name: "check package on main with checklist"
10+
11+
jobs:
12+
check-package:
13+
runs-on: ubuntu-latest
14+
name: "check package"
15+
env:
16+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
steps:
19+
- uses: inbo/actions/check_pkg@main

.github/workflows/release.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Releases
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
workflow_run:
8+
workflows: ["check package on main with checklist"]
9+
types:
10+
- completed
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Get tag
20+
run: |
21+
git fetch --tags --force
22+
TAG=$(git tag --contains $(git rev-parse HEAD))
23+
TAG_BODY=$(git tag --contains $(git rev-parse HEAD) --format='%(contents)')
24+
echo "tag=$TAG" >> $GITHUB_ENV
25+
echo "$TAG_BODY" > body.md
26+
- uses: ncipollo/release-action@v1
27+
with:
28+
name: Release ${{ env.tag }}
29+
tag: ${{ env.tag }}
30+
bodyFile: body.md

.gitignore

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,56 @@
1+
!source/**/_extensions/**
12
*.ASOIAF.ged
23
*.Rproj
4+
*.[rR][dD]ata
5+
*.[rR]ds
6+
*.dbf
7+
*.doc*
8+
*.eps
9+
*.gddoc
10+
*.gdsheet
11+
*.gpkg
12+
*.html
313
*.knit.md
14+
*.mdb
15+
*.pdf
16+
*.shp*
17+
*.shx
18+
*.sty
19+
*.tex
20+
*.xls*
21+
*_cache
22+
*_files
23+
*_freeze
24+
*_libs
425
.DS_Store
26+
.RData
527
.Rdata
28+
.Renviron
629
.Rhistory
730
.Rproj.user
31+
.Ruserdata
832
.httr-oauth
933
.quarto
1034
.vscode/launch.json
35+
.vscode/settings.json
36+
/.claude
1137
/Meta/
1238
BGmisc.code-workspace
1339
R/.Rhistory
1440
benchmark_results.csv
41+
data-raw/Landers-Wilson-Garrison Tree.ged
42+
data-raw/logo_orange.png
1543
dataRelatedPairs.csv
1644
dataRelatedPairs_new2.csv
45+
docs
46+
libs
47+
output
1748
paper/paper.html
49+
renv/library
50+
revdep/
1851
tests/testthat/Rplots.pdf
1952
vignettes/articles/paper.html
20-
.vscode/settings.json
21-
data-raw/logo_orange.png
22-
data-raw/Landers-Wilson-Garrison Tree.ged
23-
vignettes/understanding_relatedness.Rmd
2453
vignettes/rewritten_relatedness_vignette.Rmd
25-
vignettes/understanding_relatedness.Xmd
2654
vignettes/rewritten_relatedness_vignette.Xmd
27-
revdep/
55+
vignettes/understanding_relatedness.Rmd
56+
vignettes/understanding_relatedness.Xmd

DESCRIPTION

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@ Authors@R: c(
1414
person(c("S.", "Alexandra"), "Burt", role = "aut",
1515
comment = c(ORCID = "0000-0001-5538-7431"))
1616
)
17-
Description: Provides functions for behavior genetics analysis,
18-
including variance component model identification [Hunter et al. (2021) <doi:10.1007/s10519-021-10055-x>],
19-
calculation of relatedness coefficients using path-tracing methods
20-
[Wright (1922) <doi:10.1086/279872>; McArdle & McDonald (1984) <doi:10.1111/j.2044-8317.1984.tb00802.x>],
21-
inference of relatedness, pedigree conversion, and simulation of multi-generational family data
22-
[Lyu et al. (2025) <doi:10.1007/s10519-025-10225-1>]. For a full overview,
23-
see [Garrison et al. (2024) <doi:10.21105/joss.06203>]. For a big data application see [Burt et al. (2025) <doi: 10.1016/j.ebiom.2025.105911>.
17+
Description: Provides functions for behavior genetics analysis, including
18+
variance component model identification [Hunter et al. (2021)
19+
<doi:10.1007/s10519-021-10055-x>], calculation of relatedness
20+
coefficients using path-tracing methods [Wright (1922)
21+
<doi:10.1086/279872>; McArdle & McDonald (1984)
22+
<doi:10.1111/j.2044-8317.1984.tb00802.x>], inference of relatedness,
23+
pedigree conversion, and simulation of multi-generational family data
24+
[Lyu et al. (2025) <doi:10.1007/s10519-025-10225-1>]. For a full
25+
overview, see [Garrison et al. (2024) <doi:10.21105/joss.06203>]. For
26+
a big data application see [Burt et al. (2025) <doi:
27+
10.1016/j.ebiom.2025.105911>].
2428
License: GPL-3
2529
URL: https://github.com/R-Computing-Lab/BGmisc/,
2630
https://r-computing-lab.github.io/BGmisc/
@@ -31,9 +35,9 @@ Imports:
3135
data.table,
3236
igraph,
3337
Matrix,
38+
methods,
3439
stats,
35-
stringr,
36-
methods
40+
stringr
3741
Suggests:
3842
corrplot,
3943
discord,
@@ -43,11 +47,11 @@ Suggests:
4347
ggplot2,
4448
kinship2,
4549
knitr,
50+
mvtnorm,
4651
OpenMx,
4752
rmarkdown,
4853
testthat (>= 3.0.0),
4954
tidyverse,
50-
mvtnorm,
5155
withr
5256
VignetteBuilder:
5357
knitr

NEWS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# BGmisc NEWS
22

3+
# Development version:
4+
* Fixed bug in parList
5+
* Moved wrappers of ped2com to own .R file
6+
* Fixed missing checkpoint for ram_checkpoint
7+
* Try a chunk_size argument for ped2com to reduce memory usage during transpose
8+
* Try filter method for whose relatedness to return by individual ID
9+
310
# BGmisc 1.6.0.1
411
## CRAN submission
512
* Add OpenMx pedigree model builders and docs

0 commit comments

Comments
 (0)