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

Expose find_chain_start() for View() clones #3

Open
gvelasq opened this issue Jan 23, 2021 · 3 comments
Open

Expose find_chain_start() for View() clones #3

gvelasq opened this issue Jan 23, 2021 · 3 comments

Comments

@gvelasq
Copy link

gvelasq commented Jan 23, 2021

This is an amazing and time-saving innovation, thank you.

Would you consider exposing find_chain_start()? I'm specifically thinking of the use case for View() clones like my br() function, which I pepper into EDA chains.

It would be great to lift the beginning of the chain for a programmatically-generated title as opposed to .(e.g., something like mtcars (piped).

@MilesMcBain
Copy link
Owner

Happy to expose anything you think you'll find helpful but be aware this is probably a never-CRAN package.

@MilesMcBain
Copy link
Owner

Actually I decided I might try for CRAN. We'll see what happens.

@gvelasq
Copy link
Author

gvelasq commented Jan 28, 2021

Great! Fingers crossed. If it makes it on CRAN I would be happy to use {breakerofchains} as a dependency. Otherwise if it will remain on GitHub I'm happy to adapt your code directly with attribution/thanks, since we are both releasing under MIT licenses.

Bigger picture, this may be out of the scope of what you were going for, but I think it would be interesting to have something like a {chaintools} where you can print the AST of a chain, find the objects in first/second/n links in the chain, the verbs that bind them, break the chain as you implemented, or even pause a chain to be replayed/reused later (like a superpowered %T>%).

A good first step would be to improve View(), tibble:view(), and friends including the VS Code version to be more informative when they are piped into. A more involved idea than mtcars (piped) would be to identify the chain steps, e.g. mtcars>filter>select>count as the title for a piped View().

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

No branches or pull requests

2 participants