Skip to content

Commit

Permalink
fix: invisible return for print methods
Browse files Browse the repository at this point in the history
  • Loading branch information
js2264 committed Dec 5, 2023
1 parent 74a5ca9 commit f9557a4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/CoverageExperiment.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#' summarization
#' @param BPPARAM Passed to BiocParallel
#' @param ... Passed to the relevant method
#' @return An `CoverageExperiment` object
#' @return A `CoverageExperiment` object
#'
#' @import GenomicRanges
#' @import GenomeInfoDb
Expand Down
1 change: 1 addition & 0 deletions R/aggregate.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#' @examples
#' data(ce)
#' aggregate(ce, bin = 10)

setMethod("aggregate", signature(x = "CoverageExperiment"),
function(x, bin = 1, ...) {
m0 <- matrix(
Expand Down
4 changes: 4 additions & 0 deletions R/show.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ print.CoverageExperiment <- function (x, ..., n = NULL) {
ncol(x)
) |> setNames("A CoverageExperiment-tibble abstraction")
print(x)
return(invisible(x))
}
else {
x
return(invisible(x))
}
}

Expand Down Expand Up @@ -128,9 +130,11 @@ print.AggregatedCoverage <- function (x, ..., n = NULL) {
ncol(x)
) |> setNames("An AggregatedCoverage-tibble abstraction")
print(x)
return(invisible(x))
}
else {
x
return(invisible(x))
}
}

Expand Down
2 changes: 1 addition & 1 deletion man/CoverageExperiment.Rd

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

0 comments on commit f9557a4

Please sign in to comment.