Skip to content

Commit

Permalink
Match standard practice for PPR obj print
Browse files Browse the repository at this point in the history
  • Loading branch information
moi-taiga committed Mar 13, 2024
1 parent 26fff52 commit 35b46b5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Suggests:
VignetteBuilder: knitr
Roxygen: list(markdown = TRUE)
Imports:
fastglm,
Seurat,
ggplot2,
ggrepel,
GeneSwitches
GeneSwitches,
fastglm
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Generated by roxygen2: do not edit by hand

S3method(print,PPR_OBJECT)
export(ppr_accuracy_test)
export(ppr_cell_plot)
export(ppr_filter_gene_expression_for_switching_genes)
export(ppr_output_plot)
export(ppr_precision)
export(ppr_predict_position)
export(ppr_timeline_plot)
export(print.PPR_OBJECT)
importFrom(GeneSwitches,filter_switchgenes)
importFrom(ggplot2,aes)
importFrom(ggplot2,aes_string)
Expand Down
8 changes: 8 additions & 0 deletions R/ppr_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ print.PPR_OBJECT <- function(x) {
}
}
}

print <- function(x, ...) {
if (inherits(x, "PPR_OBJECT")) {
print.PPR_OBJECT(x)
} else {
NextMethod()
}
}
2 changes: 1 addition & 1 deletion man/print.PPR_OBJECT.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 35b46b5

Please sign in to comment.