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
extend documentation #26
Comments
Thanks for the package! I'd also like to know how you'd use the results to find the blocks to replace with a helper function. At the moment one would need to open files and navigate them by hand, correct? |
Thanks for your feedback, I wasn't sure if this was on anyone's radar. |
Ok, thanks! Do you have any example of a PR or commit where the diff is your using dupree results to reduce duplication? I.e. a diff that'd be "here I removed 100 lines by writing a helper function instead of the same code block repeated 10 times, thanks to dupree". |
I'm afraid I've only done that in some private repos so far. I have applied it to lintr and installr but haven't yet made PRs that are a direct result of applying dupree. (If you're interested I have a network diagram of the duplicates found in ~ June in lintr in this presentation: http://rpubs.com/russH/dupree-intro see p18) [but, lintr has undergone a pretty big overhaul since then] |
Ok, thanks. For context I was thinking about mentioning dupree in a future blog post r-hub/blog#32 (I can't remember whether I saw dupree on Twitter via CRANberries, or via |
Cool. I have a blogpost about it here: https://russ-hyde.rbind.io/post/dupree/ but all the formatting has gone weird and it's a bit out of date. I need to pull together some new examples for a newcastle satrdays abstract, so I'll try and write a Release blog post this week. You did retweet or like one of my tweets quite early on the day it was released: https://twitter.com/haematobot/status/1193605949858177024 ... if there's anything I can do to help, just drop us a message |
Aaah yes so your tweet was how I found out about it! Thanks for the links! |
Btw what got my attention was the package name. Why is it called so? |
Simply because it finds _dup_licates; and the name dupree had an R in it. Thanks, though :) |
ah ok, so no reference I was not understanding :-D Thank you for the explanation! |
The text was updated successfully, but these errors were encountered: