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

Fix errors for manuscript #133

Merged
merged 28 commits into from
Aug 29, 2024
Merged

Fix errors for manuscript #133

merged 28 commits into from
Aug 29, 2024

Conversation

egouldo
Copy link
Owner

@egouldo egouldo commented Aug 29, 2024

```r
#> Warning: Unquoting language objects with `!!!` is deprecated as of rlang 0.4.0. Please
#> use `!!` instead.
#>
#> # Bad: dplyr::select(data, !!!enquo(x))
#>
#> # Good: dplyr::select(data, !!enquo(x)) # Unquote single quosure
#> dplyr::select(data, !!!enquos(x)) # Splice list of quosures
```
build!: do not `generate_exclusion_subsets()` for `yi` pipeline - no effect.
docs!: added explanation in vignette
…tlier_subsets()` for Zr pipeline

build!: update corresponding argument supply to `filter_vars`
- by wrapping in `rlang:exprs()` instead of `list()` for Zr and yi
- explicitly supply `outcome_variable` and `outcome_SE` args for Zr
- Added conditional behaviour for when character vector supplied
- feat!: added arg checks #116 and cli output for when this condition is triggered

---

But wasn't failing for `yi` because `yi` received `rlang::expressions()` while `Zr` call used single length character variable for `outcome_variable` and `outcome_SE`
… `outcome_variable`

- separated column creation to occur under three conditions: NULL outcome_variable supplied, character string supplied, and expression argument supplied
- separated subset creation to occur separately on results of conditional evaluation
feat!: add threshold for executing function in line with preregistered threshold (5 in each category of `mixed_model`)

style: move cli output after argument checking #97

docs: capitalise Box-Cox #102
---

failed to be triggered as result needed to evaluate to TRUE for required expression to evaluate
---

Whenever mapped functions were called inside `ifelse()` statements in mutate calls without grouping, the same dataset (i.e. the first value) of the list-column was getting passed over and over again. I think that's because `ifelse()` isn't vectorised... switched to rowwise approach described at <https://cran.r-project.org/web/packages/dplyr/vignettes/rowwise.html> to avoid this problem, but also to explicitly enforce rowwise functionality without having to explicitly group to permit generalisability #97
---

forgot to add `c()` around character strings for cli message
data subset columns now NOT explicitly named, only model outputs from `meta_analyse_datasets()` and `prepare_response_variables()`

---

fixes for #130 broke `make_viz()`
was originally only included to generate hard-coded columns, now no longer needed with #121 / #130 updates, and was never planned: <https://egouldo.github.io/ManyAnalysts/#out-of-sample-predictions-y_i-2>
`broom::tidy()` doesn't have method for `lmerMod` class
build!: rebuild targets pipeline, update version
@egouldo egouldo added this to the Respond Reviewer Comments milestone Aug 29, 2024
@egouldo egouldo added the bug an unexpected problem or unintended behavior label Aug 29, 2024
@egouldo egouldo added documentation manuscript feature a feature request or enhancement breaking change ☠️ API change likely to affect existing code upkeep maintenance, infrastructure, and similar labels Aug 29, 2024
@egouldo egouldo linked an issue Aug 29, 2024 that may be closed by this pull request
@egouldo egouldo merged commit eb505d2 into main Aug 29, 2024
1 check passed
@egouldo egouldo deleted the manuscript-bug-fix branch August 29, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change ☠️ API change likely to affect existing code bug an unexpected problem or unintended behavior documentation feature a feature request or enhancement manuscript upkeep maintenance, infrastructure, and similar
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug fixes for Manuscript submission Switch back to lazy loading data
1 participant