Skip to content

Commit

Permalink
Fix as.data.frame bug
Browse files Browse the repository at this point in the history
  • Loading branch information
iflint1 committed Oct 30, 2023
1 parent 60b336b commit 6f9c73b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ S3method(as.Configuration,ppp)
S3method(as.Window,Window)
S3method(as.Window,im)
S3method(as.Window,owin)
S3method(as.data.frame,Configuration)
S3method(as.owin,Disk_window)
S3method(as.owin,Rectangle_window_union)
S3method(as.ppp,Configuration)
Expand Down
3 changes: 2 additions & 1 deletion R/Configuration.R
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ marks.Configuration <- function(x, ...) {
#'
#' @param x Configuration.
#' @param ... Unused.
#' @exportS3Method as.data.frame Configuration
#' @method as.data.frame Configuration
#' @examples
#' set.seed(1)
#'
Expand All @@ -311,6 +311,7 @@ marks.Configuration <- function(x, ...) {
#' # Convert it to a data.frame
#' print(as.data.frame(configuration))
#'
#' @export
as.data.frame.Configuration <- function(x, ...) {
data.frame(x = x$x,
y = x$y,
Expand Down

0 comments on commit 6f9c73b

Please sign in to comment.