Skip to content

Commit

Permalink
Create CITATION.cff
Browse files Browse the repository at this point in the history
added skips for verbose checks
  • Loading branch information
smasongarrison committed Feb 25, 2024
1 parent c80b964 commit b135e45
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 9 deletions.
54 changes: 54 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
cff-version: "1.2.0"
authors:
- family-names: Garrison
given-names: S. Mason
orcid: "https://orcid.org/0000-0002-4804-6003"
- family-names: Hunter
given-names: Michael D.
orcid: "https://orcid.org/0000-0002-3651-6709"
- family-names: Lyu
given-names: Xuanyu
orcid: "https://orcid.org/0000-0002-2841-5529"
- family-names: Trattner
given-names: Jonathan D.
orcid: "https://orcid.org/0000-0002-1097-7603"
- family-names: Burt
given-names: S. Alexandra
orcid: "https://orcid.org/0000-0001-5538-7431"
contact:
- family-names: Garrison
given-names: S. Mason
orcid: "https://orcid.org/0000-0002-4804-6003"
doi: 10.6084/m9.figshare.25238536
message: If you use this software, please cite our article in the
Journal of Open Source Software.
preferred-citation:
authors:
- family-names: Garrison
given-names: S. Mason
orcid: "https://orcid.org/0000-0002-4804-6003"
- family-names: Hunter
given-names: Michael D.
orcid: "https://orcid.org/0000-0002-3651-6709"
- family-names: Lyu
given-names: Xuanyu
orcid: "https://orcid.org/0000-0002-2841-5529"
- family-names: Trattner
given-names: Jonathan D.
orcid: "https://orcid.org/0000-0002-1097-7603"
- family-names: Burt
given-names: S. Alexandra
orcid: "https://orcid.org/0000-0001-5538-7431"
date-published: 2024-02-24
doi: 10.21105/joss.06203
issn: 2475-9066
issue: 94
journal: Journal of Open Source Software
publisher:
name: Open Journals
start: 6203
title: "BGmisc: An R Package for Extended Behavior Genetics Analysis"
type: article
url: "https://joss.theoj.org/papers/10.21105/joss.06203"
volume: 9
title: "BGmisc: An R Package for Extended Behavior Genetics Analysis"
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Test Environments

1. Local OS: Windows 11, R version 4.3.2
2. **GitHub Actions**:
- [Link](https://github.com/R-Computing-Lab/BGmisc/actions/runs/8008686394)
- [Link](https://github.com/R-Computing-Lab/BGmisc/actions/runs/8023395953)
- macOS (latest version) with the latest R release.
- Windows (latest version) with the latest R release.
- Ubuntu (latest version) with:
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-checkIDs.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ test_that("repair with a duplicate", {
})

test_that("checkIDs verbose prints updates", {
# skip_on_cran(message = "Skipping test that only checks for verbose output")
df <- ped2fam(potter, famID = "newFamID", personID = "personID")
df_bound <- rbind(df, df[df$name == "Vernon Dursley", ])
expect_output(checkIDs(df, verbose = TRUE, repair = TRUE),
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-evenInsert.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ test_that("evenInsert inserts elements of m into n when m < n", {

# Test Case 5: Verbose mode
test_that("Verbose mode work for evenInsert", {
# skip_on_cran(message = "Skipping test that only checks for verbose output")
expect_output(evenInsert(1:3, 4:6, verbose = TRUE),
regexp = "1 2 3 \\n1 2 3 \\n1 2 3 \\n4 5 6 "
)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-famSizeCal.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test_that("famSizeCal throws error when numbers out of bounds", {
Ngen <- 0
marR <- 0.8

expect_error(famSizeCal(kpc = kpc, Ngen = Ngen, marR = marR))
expect_error(famSizeCal(kpc = kpc, Ngen = Ngen, marR = marR),"number of generations")
})
test_that("famSizeCal returns increasingly large numbers for multi-generation data", {
set.seed(123)
Expand Down
11 changes: 4 additions & 7 deletions tests/testthat/test-helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,11 @@ test_that("resample with specific size returns correct length", {
expect_equal(length(result), 7)
})

test_that("SimPed issues a deprecation warning", {
test_that("functions issue a deprecation warning", {
# skip_on_cran(message = "Skipping test that only checks for warning message")
expect_warning(SimPed(), "deprecated")
})

test_that("related_coef issues a deprecation warning", {
expect_warning(related_coef(), "deprecated")
})

test_that("relatedness issues a deprecation warning", {
expect_warning(relatedness(obsR = .5), "deprecated")


})

0 comments on commit b135e45

Please sign in to comment.