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

Adjust the variable parsing for vrb argument #157

Merged
merged 9 commits into from
Jul 26, 2024

Conversation

kylelang
Copy link
Contributor

This PR tweaks the way the vrb argument is parsed for plot_trace(). In particular, it makes the function work when an external object is supplied as the function argument. In such cases, the object name will need to be unquoted using !!. I've attempted to align the implementation with standard Tidy Evaluation principles. Hence, requiring the !!-based unquoting rather than adjusting plot_trace() to gobble up all sensible inputs.

The documentation and unit tests should reflect the relevant changes.

This PR should fix #145.

Copy link
Member

@hanneoberman hanneoberman left a comment

Choose a reason for hiding this comment

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

Hi Kyle, thank you VERY much for this PR. I'll fix some small styling things locally. But otherwise no notes!

R/plot_trace.R Outdated Show resolved Hide resolved
R/plot_trace.R Outdated Show resolved Hide resolved
R/plot_trace.R Outdated Show resolved Hide resolved
R/plot_trace.R Outdated Show resolved Hide resolved
R/plot_trace.R Outdated Show resolved Hide resolved
R/plot_trace.R Outdated Show resolved Hide resolved
R/plot_trace.R Outdated Show resolved Hide resolved
@hanneoberman
Copy link
Member

Not merging this yet, because the proposed solution should first work in all ggmice::plot_* functions.

@hanneoberman hanneoberman self-requested a review July 26, 2024 13:55
@hanneoberman hanneoberman changed the title Adjust the variable parsing for plot_trace() Adjust the variable parsing for vrb argument Jul 26, 2024
@hanneoberman hanneoberman merged commit 41222e3 into amices:main Jul 26, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vrb in plot_trace with external vector not working
2 participants