-
Notifications
You must be signed in to change notification settings - Fork 1
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
plot_techmix
and plot_trajectory
gain more specific checks
#552
Conversation
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.
See my comments regarding prep_trajcetory()
. It might also be a good idea to go through the documentation of each function prep_*()
, plot_*()
, qplot_*
for both trajectory
and techmix
and see if we have checks for each requirement listed there.
Note to self: go through the documentation of all functions to ensure sufficient input checks:
|
@MonikaFu All documented expectations should now be well represented in code for all except for: Lines 7 to 8 in 5210ebc
There is a check for single scenarios, but I haven't seen any checks anywhere for the presence of "a portfolio and benchmark" on input. Does that part of the documentation require a "bare minimum" check or is it an exception? Note: The package also had no checks for the input parameters Note: I was waffling back and forth between how to refactor the input checks of the |
Note: Windows checks seem to be failing due to the breaking change to I don't really understand why only the windows checks fail, since in principle the same checks should be applied to R-CMD-check/macos-latest... in any case, I believe it is unrelated to this PR. |
Indeed, it should be checking for presence of "projected" value in
And check if "projected" is in the metric column. The presence of scenario is checked in
Thanks.
Your implementation makes sense to me.
This is strange because |
Awesome. Given that this PR is meant to only update checks (a
Indeed. I don't believe it is related to this PR, but I will look into it later. See #556 |
|
@MonikaFu this is ready for re-review |
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.
LGTM
plot_*
functions gain check for the presence of thelabel
columnqplot
function that was fixedenv
arg removed from aprep_
function that didn't need itCloses #548