Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3fb0ee7
Fix missing `FUN.VALUE` in `vapply` call when resuming `ped2com` chec…
Copilot Mar 24, 2026
ffe4b0e
split to move wrappers to own file
smasongarrison Mar 24, 2026
6926bff
Update buildComponent.R
smasongarrison Mar 24, 2026
ec23c11
chunked?
smasongarrison Mar 24, 2026
fc934ec
check that ids match
smasongarrison Mar 24, 2026
dc093c7
smarter wrapper
smasongarrison Mar 24, 2026
ef13bde
docs
smasongarrison Mar 24, 2026
956ef18
Update buildComponent.R
smasongarrison Mar 24, 2026
e0d881f
Update test-buildComponent.R
smasongarrison Mar 24, 2026
f9b0096
tests
smasongarrison Mar 24, 2026
8f4276b
resume chunks
smasongarrison Mar 24, 2026
91c3952
Add force_symmetric option and docs
smasongarrison Mar 24, 2026
ae7c681
moving chunk tests
smasongarrison Mar 25, 2026
4b2b8ce
yamls
smasongarrison Mar 25, 2026
aaf973f
clean up
smasongarrison Mar 25, 2026
0f6d318
Update _pkgdown.yml
smasongarrison Mar 25, 2026
8fab0c8
Update test-buildComponent.R
smasongarrison Mar 25, 2026
bca15c5
fixed chunks
smasongarrison Mar 25, 2026
4da01af
smarter
smasongarrison Mar 25, 2026
b0b5457
Update buildComponent.R
smasongarrison Mar 25, 2026
94cabd3
docs
smasongarrison Mar 25, 2026
a272140
Update DESCRIPTION
smasongarrison Mar 25, 2026
d596f0f
Fix non-ASCII character in buildComponent.R: replace em dash with \u2…
Copilot Mar 25, 2026
3a2b8e2
tests
smasongarrison Mar 25, 2026
a397295
Merge branch 'dev_main' of https://github.com/R-Computing-Lab/BGmisc …
smasongarrison Mar 25, 2026
607f609
Apply suggestions from code review
smasongarrison Mar 26, 2026
9ad9f7e
whitespace
smasongarrison Mar 26, 2026
a462396
clean up yamls
smasongarrison Mar 26, 2026
2562330
all keep_ids to be used on all matrices
smasongarrison Mar 26, 2026
17ddb4d
Add ignores
smasongarrison Mar 26, 2026
effa5cf
Update test-buildComponent.R
smasongarrison Mar 26, 2026
e29f0a2
TRUE, not T
smasongarrison Mar 27, 2026
c2b938a
TRUE, not T
smasongarrison Mar 27, 2026
1081da0
Merge branch 'dev_main' of https://github.com/R-Computing-Lab/BGmisc …
smasongarrison Mar 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 27 additions & 15 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,38 @@
CITATION.cff$
^.*\.Rproj$
^BGmisc\.Rproj$
^\.Rproj\.user$
^BGmisc\.code-workspace$
^BGmisc_main\.code-workspace$
^CITATION\.cff$
^CODE_OF_CONDUCT\.md$
^CONTRIBUTING\.md$
^CRAN-SUBMISSION$
^LICENSE.md$
^LICENSE\.md$
^Meta$
^R/\.Rhistory$
^R/paper$
^checkParents\.X
^test-clean\.X
CITATION.cff$
^doc$
^data-raw$
^Meta$
^vignettes/articles$
^README\.Rmd$
^\.Rproj\.user$
^\.github$
^cran-comments\.md$
^CRAN-SUBMISSION$
^BGmisc\.code-workspace$
^\.httr-oauth$
^\.lintr$
^CODE_OF_CONDUCT\.md$
^CONTRIBUTING\.md$
^\.vscode$
^\.zenodo\.json$
^_pkgdown.yml$
^_pkgdown\.yml$
^checkParents\.X
^checklist.yml$
^codecov\.yml$
^codecov\.xaml$
^cran-comments\.md$
^data-raw$
^doc$
^docs$
^man-roxygen$
^organisation.yml$
^pkgdown$
^\.vscode$
^BGmisc_main\.code-workspace$
^revdep$
^test-clean\.X
^vignettes/articles$
^.claude$
20 changes: 20 additions & 0 deletions .github/workflows/check_on_branch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches-ignore:
- main
- master
- ghpages

name: "check package with checklist"

jobs:
check-package:
runs-on: ubuntu-latest
name: "check package"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
steps:
- uses: inbo/actions/check_pkg@main
Copy link

Copilot AI Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow also references inbo/actions/check_pkg@main (a moving branch). Pinning the action to a tag or commit SHA would make CI behavior reproducible and reduce supply-chain risk.

Suggested change
- uses: inbo/actions/check_pkg@main
- uses: inbo/actions/check_pkg@v1

Copilot uses AI. Check for mistakes.
51 changes: 51 additions & 0 deletions .github/workflows/check_on_different_r_os.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

name: R-CMD-check-OS

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-24.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/noble/latest"}
- {os: ubuntu-24.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/noble/latest"}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
_R_CHECK_SYSTEM_CLOCK_: false
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
extra-repositories: https://inbo.r-universe.dev

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
error-on: '"error"'
19 changes: 19 additions & 0 deletions .github/workflows/check_on_main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches:
- main
- master
permissions:
contents: write

name: "check package on main with checklist"

jobs:
check-package:
runs-on: ubuntu-latest
name: "check package"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: inbo/actions/check_pkg@main
30 changes: 30 additions & 0 deletions .github/workflows/release.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Releases

on:
push:
tags:
- v*
workflow_run:
workflows: ["check package on main with checklist"]
types:
- completed
Comment on lines +3 to +10
Copy link

Copilot AI Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow triggers on workflow_run as well as tag pushes, but the job assumes the current commit is tagged (git tag --contains HEAD). On a workflow_run event (or if multiple tags point to the commit), TAG can be empty or contain multiple lines, which can create failed/incorrect releases. Consider removing the workflow_run trigger or gating the job/steps (e.g., only run when the event is a tag push and use github.ref_name for the tag).

Copilot uses AI. Check for mistakes.

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Get tag
run: |
git fetch --tags --force
TAG=$(git tag --contains $(git rev-parse HEAD))
TAG_BODY=$(git tag --contains $(git rev-parse HEAD) --format='%(contents)')
echo "tag=$TAG" >> $GITHUB_ENV
echo "$TAG_BODY" > body.md
- uses: ncipollo/release-action@v1
with:
name: Release ${{ env.tag }}
tag: ${{ env.tag }}
bodyFile: body.md
41 changes: 35 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,56 @@
!source/**/_extensions/**
*.ASOIAF.ged
*.Rproj
*.[rR][dD]ata
*.[rR]ds
*.dbf
*.doc*
*.eps
*.gddoc
*.gdsheet
*.gpkg
*.html
*.knit.md
*.mdb
*.pdf
*.shp*
*.shx
*.sty
*.tex
*.xls*
*_cache
*_files
*_freeze
*_libs
.DS_Store
.RData
.Rdata
.Renviron
.Rhistory
.Rproj.user
.Ruserdata
.httr-oauth
.quarto
.vscode/launch.json
.vscode/settings.json
/.claude
/Meta/
BGmisc.code-workspace
R/.Rhistory
benchmark_results.csv
data-raw/Landers-Wilson-Garrison Tree.ged
data-raw/logo_orange.png
dataRelatedPairs.csv
dataRelatedPairs_new2.csv
docs
libs
output
paper/paper.html
renv/library
revdep/
tests/testthat/Rplots.pdf
vignettes/articles/paper.html
.vscode/settings.json
data-raw/logo_orange.png
data-raw/Landers-Wilson-Garrison Tree.ged
vignettes/understanding_relatedness.Rmd
vignettes/rewritten_relatedness_vignette.Rmd
vignettes/understanding_relatedness.Xmd
vignettes/rewritten_relatedness_vignette.Xmd
revdep/
vignettes/understanding_relatedness.Rmd
vignettes/understanding_relatedness.Xmd
26 changes: 15 additions & 11 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: BGmisc
Title: An R Package for Extended Behavior Genetics Analysis
Version: 1.6.0.1
Version: 1.6.0.9
Authors@R: c(
person("S. Mason", "Garrison", , "garrissm@wfu.edu", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-4804-6003")),
Expand All @@ -14,13 +14,17 @@ Authors@R: c(
person(c("S.", "Alexandra"), "Burt", role = "aut",
comment = c(ORCID = "0000-0001-5538-7431"))
)
Description: Provides functions for behavior genetics analysis,
including variance component model identification [Hunter et al. (2021) <doi:10.1007/s10519-021-10055-x>],
calculation of relatedness coefficients using path-tracing methods
[Wright (1922) <doi:10.1086/279872>; McArdle & McDonald (1984) <doi:10.1111/j.2044-8317.1984.tb00802.x>],
inference of relatedness, pedigree conversion, and simulation of multi-generational family data
[Lyu et al. (2025) <doi:10.1007/s10519-025-10225-1>]. For a full overview,
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>.
Description: Provides functions for behavior genetics analysis, including
variance component model identification [Hunter et al. (2021)
<doi:10.1007/s10519-021-10055-x>], calculation of relatedness
coefficients using path-tracing methods [Wright (1922)
<doi:10.1086/279872>; McArdle & McDonald (1984)
<doi:10.1111/j.2044-8317.1984.tb00802.x>], inference of relatedness,
pedigree conversion, and simulation of multi-generational family data
[Lyu et al. (2025) <doi:10.1007/s10519-025-10225-1>]. For a full
overview, 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>].
License: GPL-3
URL: https://github.com/R-Computing-Lab/BGmisc/,
https://r-computing-lab.github.io/BGmisc/
Expand All @@ -31,9 +35,9 @@ Imports:
data.table,
igraph,
Matrix,
methods,
stats,
stringr,
methods
stringr
Suggests:
corrplot,
discord,
Expand All @@ -43,11 +47,11 @@ Suggests:
ggplot2,
kinship2,
knitr,
mvtnorm,
OpenMx,
rmarkdown,
testthat (>= 3.0.0),
tidyverse,
mvtnorm,
withr
VignetteBuilder:
knitr
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# BGmisc NEWS

# Development version:
* Fixed bug in parList
* Moved wrappers of ped2com to own .R file
* Fixed missing checkpoint for ram_checkpoint
* Try a chunk_size argument for ped2com to reduce memory usage during transpose
* Try filter method for whose relatedness to return by individual ID

# BGmisc 1.6.0.1
## CRAN submission
* Add OpenMx pedigree model builders and docs
Expand Down
Loading
Loading