-
Notifications
You must be signed in to change notification settings - Fork 235
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
R6 class inheriting from unexported parent causes check() error #1236
Comments
If you add |
@gaborcsardi is there any other possible workaround for this? I've spent the better part of the day trying to make this warning go away in the exact same scenario. I've tried:
Tried using I've even tried overriding How can you explicitly set what gets set in in the
It doesn't appear that this section is optional for roxygen with types that inherit from another R6, as
which results in:
1 warning for every occurrence of a derived type in the package. I would greatly appreciate any possible clues or hints, |
@bmoretz Can you show your package so we can try this? |
@gaborcsardi absolutely, thank you. shiny.gentelella Just remove the tools/check.env, as I temporarily suppressed it so I could move on. Element is the ABC, Control/Page/Dashboard/NavigationMenu all exhibit the issue. |
Partially addresses #1236, in that there are no more check warnings, but there still some dangling links to the super methods, which we can probably fix.
@bmoretz I believe that the https://github.com/r-lib/roxygen2/tree/fix/r6-private-super branch will solve the immediate issues, i.e. the check warnings should be gone. |
@gaborcsardi Thank you sir! Appreciate you taking the time to look into. |
Running
devtools::check()
on an internal package gives the following result:The reason, as far as I can tell, is because my exported
TWAPStrategy
andLiquiditySeekerStrategy
classes inherit from a parentStrategy
class, which is private. My documentation markup for the exported classes doesn't include any explicit links toStrategy
, but it appears that roxygen2 inserts them anyway.Some sample markup:
And the start of the corresponding .Rd file:
Notice the link to the Strategy class, which
check()
complains about. Should this link be there for an unexported class?The text was updated successfully, but these errors were encountered: