Skip to content

Commit

Permalink
skip test on CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 28, 2023
1 parent 8af9e4e commit 5dc4f80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: performance
Title: Assessment of Regression Models Performance
Version: 0.10.7
Version: 0.10.7.1
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-logLik.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_on_cran()

test_that("logLik", {
skip_if_not_installed("plm")
skip_if_not_installed("withr")
Expand Down

2 comments on commit 5dc4f80

@strengejacke
Copy link
Member Author

Choose a reason for hiding this comment

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

@IndrajeetPatil when to use local_options() and when with_options()? I don't know exactly what the difference is here.

@IndrajeetPatil
Copy link
Member

Choose a reason for hiding this comment

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

If you use local_options(), the global state will be modified for the entire scope in which this statement occurs (e.g. function).
If you use with_options(), the global state will be modified only for the code supplied to its code argument.

Please sign in to comment.