Skip to content

Commit

Permalink
Implement as.data.frame generic to allow View to work (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZetrextJG authored Sep 19, 2024
1 parent 7e91bf3 commit 180ba93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

S3method(as.data.frame,Plate)
S3method(predict,Model)
S3method(summary,Plate)
export(PlateBuilder)
Expand Down
5 changes: 5 additions & 0 deletions R/classes-plate.R
Original file line number Diff line number Diff line change
Expand Up @@ -440,3 +440,8 @@ Plate <- R6::R6Class(
summary.Plate <- function(object, ...) {
object$summary(...)
}

#' @export
as.data.frame.Plate <- function(x, row.names, optional, ...) {
x$get_data("ALL", "ALL")
}

0 comments on commit 180ba93

Please sign in to comment.