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
Fixes for exporter pagination migration #631
Conversation
Code Coverage Summary
Diff against main
Results for commit: 6af4174 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
…' into 96_exporter_pagination_migration
I tried many combinations of inputs and Information about the input values can be dispatched through the documentation. Here is the old reference page on main: Here is the new one from rstudio on this branch: The main change in practice is that S4 methods are no more responsible for dispatching the call to different functions, depending on the input indices (e.g. if they are logical, character, or missing) but they are directly dispatched inside the function. Let me know @gmbecker what you think about this solution. I personally think that makes also the reference page clearer and more compact. |
I don't like this solution because it actively bypasses method dispatch in order to then reimplement it itself via duplicated code. It is possible there is some reworking of the methods that is possible, but this late in a critical release cycle is also not the time to be touching something as fundamental as subsetting if we don't need to (and we don't need to). Please revert this, and just document most methods as internal, so they don't show up, and a single method as non-internal. |
d4ee4e6
to
2a7cd00
Compare
Merge branch '96_exporter_pagination_migration' of github.com:Roche/rtables into 96_exporter_pagination_migration # Conflicts: # R/tt_pos_and_access.R # man/brackets.Rd
Co-authored-by: Joe Zhu <joe.zhu@roche.com> Signed-off-by: Davide Garolini <dgarolini@gmail.com>
brilliant! Thanks @gmbecker ! this is good to go? |
its not ready to cut the tag quite yet but yeah, its ready to merge into main in the leadup to that @shajoezhu |
Fixes #627
@gmbecker I updated your PR and posted it ;) Thanks for the many fixes! It is also evident that rstudio does not help much with its invisible spaces ahah
One thing: we need to talk about brackets! I found maybe a solution to the
devtools
AND check warnings caused by the base[
and[<-
reexports (apparently roxygen creates automatically reexport aliases when you directly export another namespace function, thus creating two .rd with reexports aliases but in different files, hence warning in checks (see comments on code)). I went on reading howtibble
does the same and it seems that uses S3 generics instead but w/o any reexports of base functions. So I tried to just remove the reexports and every test passes fine as brackets are dependent on the S4 generics as you designed them.I still remember though that we already mentioned this, so we need to discuss this solution (weirdly it works btw, very unexpectedly).