-
Notifications
You must be signed in to change notification settings - Fork 186
Adds RStudio addins #264
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
Adds RStudio addins #264
Conversation
Codecov Report
@@ Coverage Diff @@
## master #264 +/- ##
==========================================
- Coverage 86.12% 85.41% -0.71%
==========================================
Files 39 40 +1
Lines 2183 2201 +18
==========================================
Hits 1880 1880
- Misses 303 321 +18
Continue to review full report at Codecov.
|
R/addins.R
Outdated
} | ||
|
||
addin_lint_package <- function () { | ||
lintr::lint_package() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably would be safer to retrieve the project directory (rstudioapi::getActiveProject()
) and pass that to lint_package()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. Indeed I was thinking I completely forgot defensive programming. I'll add this and some more checks and then update the pull request
Thanks this is a good idea! I made a minor comment, could you also add a note to Thanks! |
Great thanks! |
This commit adds two addins to RStudio to bind shortcuts for easier usage. Now you can, for example, bind
Alt+Shift+L and lint the current source code.