-
Notifications
You must be signed in to change notification settings - Fork 15
Fix for new shapr package structure #162
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
Conversation
Thanks for the PR, looks good to me! The plan is clear: First {shapr} to CRAN, then {shapviz} to CRAN. I might decide against the extra dependency to {shapr} in {shapviz}, but that is a minor change in the plan :-). Later on in the year, I am actually planning some improvements in the SHAP dependency plots, but that won't affect {shapr}. |
Co-authored-by: Michael Mayer <[email protected]>
Great, thanks for the quick response!
I have not handled broken packages before, but, yes I do think this is the appropriate way to do it.
That is of course up to you to decide, but I believe it is highly uncommon to user a package not mentioned in DESCRIPTION. I am actually surprised the CRAN team allowed it in the first place. As I am sure you know, adding a package to suggests or enhances, will not make them required to use your package. |
@martinju The new {shapr} release looks great, and the update of {shapviz} is on its way to CRAN. Let us decide in a later release whether to add {shapr} to "enhances". I definitively get your points. |
Excellent, thanks! |
Hi
Thanks for creating a plotting wrapper for the shapr. We are currently working on a complete restructuring of the package with lots of new functionality. This also involves breaking changes as we have moved away from the two-function case with user calling
shapr()
+explain()
to doing everything inexplain()
. Also the output formexplain()
got new names.The new version of
shapr
(1.0.0) is available for here: https://github.com/NorskRegnesentral/shapr(and installed through
remotes::install_github("NorskRegnesentral/shapr"
)This PR fixes changes shapviz.shapr to follow the new structure and your vignette example.
Due to changes in the package swapping the order of function calls involving randomess, the results are close to, but not identical to the ones with the cran version of shapr. However, with a slight modification of the calls to shapr, disabling this randomness, I have verified the results are identical. See the last part of https://github.com/martinju/shapviz/blob/fix_new_shapr/testscript_to_be_deleted.R for details.
Also, I suggest adding
shapr (>= 1.0.0)
to either Suggests of Enchanes in your DESCRIPTION file such that we are able to track usage of our package and detect cases like this automatically in the future :-)We are aiming at a CRAN release of
shapr 1.0.0
within the next few weeks. I suggest confirming this PR as soon as possible, and then push a new CRAN release ofshapviz
with this code onceshapr 1.0.0
has made it to CRAN. I will notify you when the CRAN team is happy.