Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require new version of {effectsize} #103

Closed
6 tasks done
ddsjoberg opened this issue Apr 2, 2024 · 1 comment · Fixed by #153
Closed
6 tasks done

Require new version of {effectsize} #103

ddsjoberg opened this issue Apr 2, 2024 · 1 comment · Fixed by #153
Assignees

Comments

@ddsjoberg
Copy link
Collaborator

ddsjoberg commented Apr 2, 2024

in {effectsize} v0.8.7 there is a bug if hedges_g() is namespaced vs not having the package loaded. see easystats/effectsize#636

We've incorporated a temporary fix where we use {withr} to locally load the namespace to execute calls to hedges_g()

Once {effectsize} releases their new version with the fix, we will need to

  • Bump the min version required to the new version of effectsize in the DESCRIPTION file
  • Remove withr::with_namespace() calls in ard_hedges_g() and ard_paired_hedges_g()
  • Remove calls to withr::local_namespace() in the testing files
  • Remove withr from the requirements to run these ard function in the examplesIf tag, and at the top of ard_hedges_g() and ard_paired_hedges_g()
  • Remove the withr requirement in skip_if_not() in the unit testing file.
  • Remove "hedges_g" from utils::globalVariables()
@ddsjoberg
Copy link
Collaborator Author

@zdz2101 the new effectsize is now on CRAN. Are you free to tackle this issue?

ddsjoberg pushed a commit that referenced this issue Jun 4, 2024
… accordingly (#153)

**What changes are proposed in this pull request?**
`effectsize` package had a bug related to calling the function
`hedges_g` which was fixed with their most recent release, `0.8.8`

Provide more detail here as needed.

Closes #103 


--------------------------------------------------------------------------------

Pre-review Checklist (if item does not apply, mark is as complete)
- [x] **All** GitHub Action workflows pass with a ✅
- [x] PR branch has pulled the most recent updates from master branch:
`usethis::pr_merge_main()`
- [x] If a bug was fixed, a unit test was added.
- [x] If a new `ard_*()` function was added, it passes the ARD
structural checks from `cards::check_ard_structure()`.
- [x] If a new `ard_*()` function was added, `set_cli_abort_call()` has
been set.
- [x] If a new `ard_*()` function was added and it depends on another
package (such as, `broom`), `is_pkg_installed("broom", reference_pkg =
"cardx")` has been set in the function call and the following added to
the roxygen comments: `@examplesIf
do.call(asNamespace("cardx")$is_pkg_installed, list(pkg = "broom"",
reference_pkg = "cardx"))`
- [x] Code coverage is suitable for any new functions/features
(generally, 100% coverage for new code): `devtools::test_coverage()`

Reviewer Checklist (if item does not apply, mark is as complete)

- [ ] If a bug was fixed, a unit test was added.
- [ ] Code coverage is suitable for any new functions/features:
`devtools::test_coverage()`

When the branch is ready to be merged:
- [x] Update `NEWS.md` with the changes from this pull request under the
heading "`# cardx (development version)`". If there is an issue
associated with the pull request, reference it in parentheses at the end
update (see `NEWS.md` for examples).
- [x] **All** GitHub Action workflows pass with a ✅
- [ ] Approve Pull Request
- [ ] Merge the PR. Please use "Squash and merge" or "Rebase and merge".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants