Skip to content

Conversation

@ddsjoberg
Copy link

Pull Request closes #173

Fix allows users to use a package prefix for a function on the LHS of the formula in mold(), e.g. mold(survival::Surv(time, status) ~ age, data = survival::lung)

Previously, the code checked for a colon in the terms. I updated it to use lookahead and lookbehind regular expressions to search for a colon that is neither preceded nor followed by another colon.

Thank you

@DavisVaughan
Copy link
Member

@ddsjoberg thanks! We really appreciate your contribution. However, I've decide to solve this a different way over in #175, so I'm going to close this PR. Thanks again!

@ddsjoberg
Copy link
Author

Thanks @DavisVaughan ! I am sure your solution is much much much more robust! I'll keep an eye out for the next release of the pkg 🕺🏼 🕺🏼 🕺🏼

@github-actions
Copy link

github-actions bot commented Dec 9, 2021

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug Report: mold() incorrectly thinks there is an interaction on the LHS of the formula

2 participants