Skip to content

Commit

Permalink
Do not try to link to private superclass
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gaborcsardi committed Nov 24, 2021
1 parent 7b706c9 commit 8e30aec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/rd-r6.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ add_default_methods <- function(methods) {

r6_superclass <- function(block, r6data, env) {
super <- r6data$super
cls <- unique(super$classes$classname)
cls <- stats::na.omit(unique(super$classes$classname))
if (length(cls) == 0) return()

lines <- character()
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/testNamespace/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Author: Hadley <hadley@rstudio.com>
Maintainer: Hadley <hadley@rstudio.com>
Encoding: UTF-8
Version: 0.1
RoxygenNote: 7.1.1.9001
RoxygenNote: 7.1.2.9000

0 comments on commit 8e30aec

Please sign in to comment.