-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add initial tests: take 2 #25
Conversation
Current overview from code coverage incase it's interesting. Means if this is merged as is, we'll get a red badge with 43.75% on. |
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.
Tests all seem to work fine. Comments are mainly just tidying up some mistakes that I'd made.
R/support_panel.R
Outdated
@@ -0,0 +1,207 @@ | |||
library(shiny) |
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.
Don't think we need these library calls here... need them listed under imports in the function header.
Interesting - happy to help mop this up but not sure if blank importing whole packages for each function in our package is the best way - https://roxygen2.r-lib.org/articles/namespace.html.
Reading that I'd be tempted to either do the @import , or just bite the bullet of explicit pkg::function() calls. All the packages mentioned are already in the description file as far as I can see. Interested to know your thoughts @rmbielby? |
Ah interesting, missed that. How about |
I think in that case I'd recommend erring on the side of package::function() for all non-base R that's used in our code, as that's what I've already done in this PR. Can then leave it up to future developers of specific functions to by exception using a specific import (like @importFrom shiny tags) where it saves a lot of code. Assuming we're happy with that, I'll add a note to the contributing section in the readme and then no further changes needed on this branch? |
Yeah, think that makes sense. @chfoster's branch can illustrate the |
So just the |
Ah yes, forgot that - will push that now! |
Take 2 of PR #5.
Overview
This adds a number of bits of testing infrastructure into the package, and does some initial clean up too.
Details
support_panel()
, more could be donesupport_panel()
, these are not exhaustiveAdditional information
Have raised issues #20, #21, #22 , #23, #24, #26, #27 off the back of this. To be addressed in separate PRs.