Skip to content

Commit

Permalink
Finalize .onLoad testing (#159)
Browse files Browse the repository at this point in the history
* explicitly call .onLoad

* Remove a line from needing tests
  • Loading branch information
NeuroShepherd committed Nov 12, 2024
1 parent a9a4388 commit 59a77e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
)

toset <- !(names(op.ordinalsimr) %in% names(op))
if (any(toset)) options(op.ordinalsimr[toset])
if (any(toset)) options(op.ordinalsimr[toset]) # nocov

invisible()

Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ test_that("test .onLoad", {


library(ordinalsimr)
ordinalsimr:::.onLoad()

ordinalsimr_opts_postload <- grep("ordinalsimr.", names(options()), value = TRUE) |>
purrr::set_names() |>
Expand Down

0 comments on commit 59a77e0

Please sign in to comment.