Skip to content

Commit

Permalink
Fixed bug in InheritanceReporter that errored due to external parent …
Browse files Browse the repository at this point in the history
…classes
  • Loading branch information
jayqi committed Dec 4, 2018
1 parent 3716dec commit 46f0043
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions R/PackageInheritanceReporter.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,12 @@ InheritanceReporter <- R6::R6Class(
}
}

# Combine all edges together
edgeDT <- data.table::rbindlist(edgeList)

# Filter out any parents that are external to the package
edgeDT <- edgeDT[TARGET %in% nodeDT[, node]]

private$cache$edges <- edgeDT

}
Expand Down
2 changes: 1 addition & 1 deletion inst/milne/R/The_Friend.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ RightAnswer <- setRefClass(
# @description Incorrect Answer to a Question
WrongAnswer <- setRefClass(
Class = "WrongAnswer",
contains = "PoohAnswer"
contains = c("PoohAnswer", "numeric")
)

0 comments on commit 46f0043

Please sign in to comment.