8000 add namespacing capability by dpastoor · Pull Request #1988 · Gilead-BioStats/gsm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add namespacing capability #1988

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

Merged
merged 8 commits into from
Dec 11, 2024
Merged

add namespacing capability #1988

merged 8 commits into from
Dec 11, 2024

Conversation

dpastoor
Copy link
Contributor
@dpastoor dpastoor commented Dec 11, 2024

related to discussion in #1987

This will now allow workflows like:

steps:
  - output: lReport
    name: gsm.study.profile::Report_Study_Profile
    params:
      dfResults: Reporting_Results
      dfMetrics: Reporting_Metrics
      dfGroups: Reporting_Groups

to properly find the function calls they need.

Copy link
Contributor
@jonthegeek jonthegeek left a comment

Choose a reason for hiding this comment

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

I'm requesting changes, but not flagging it as "Request changes" because it's fine to merge this as-is. I'd just love it if we could genericize this a bit so we have one place to edit this, rather than a near-duplicate function in gsm.app.

Comment on lines 1 to 3
##' getFunctionIfNamespaced looks to see if a strFunction is namespaced and looks it up
##' allowing the do.call in run step to process correctly
##' this will either return a function, or the original string if not namespaced
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we export this? Once we have it nailed down, I'll use it in gsm.app for plugin functions. I'd genericize the name a little, too, since this function will parse strFunction whether or not it's namespaced.


result <- RunStep(lStep, lData, lMeta)
expect_equal(result, head(Theoph))
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a test for a non-namespaced function to make sure it doesn't ever break anything.

Copy link
Contributor

Choose a reason for hiding this comment

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

test added!

Copy link
Contributor
@lauramaxwell lauramaxwell left a comment

Choose a reason for hiding this comment

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

LGTM! added a few edits to _pkgdown.yml and NEWS.md to prep for the v2.2.0 RC

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.

3 participants
0