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

Function for extracting a template of any duplicated code #27

Open
russHyde opened this issue Jul 18, 2019 · 0 comments
Open

Function for extracting a template of any duplicated code #27

russHyde opened this issue Jul 18, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@russHyde
Copy link
Owner

Say these two code blocks are identified by dupree

my_code <- some_data %>%
   a_really() %>%
   long_pipeline() %>%
   bespoke_function1()
.
.
.
some_data %>%
    a_really %>%
    long_pipeline() %>%
    bespoke_function2()

Is there some way that dupree could take the details of these two code blocks (file / line) and return a template for abstracting out the common code?

new_function <- function(x) {
  x %>% a_really() %>% long_pipeline()
}
@russHyde russHyde mentioned this issue Nov 11, 2019
11 tasks
@russHyde russHyde mentioned this issue Nov 18, 2019
6 tasks
@russHyde russHyde mentioned this issue Mar 30, 2020
17 tasks
@russHyde russHyde added the enhancement New feature or request label Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant