Skip to content

Commit

Permalink
export S3 method print
Browse files Browse the repository at this point in the history
  • Loading branch information
LiNk-NY committed Jan 16, 2025
1 parent 9ed6138 commit 9f1ebc6
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 20 deletions.
4 changes: 2 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generated by roxygen2: do not edit by hand

S3method(print,bioc_support_stats)
S3method(print,commit_summary)
S3method(base::print,bioc_support_stats)
S3method(base::print,commit_summary)
export(account_repositories)
export(commits_summary)
export(filter_r_repos)
Expand Down
4 changes: 2 additions & 2 deletions R/commit-stats.R
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ summarize_commit_activity <- function(

#' @rdname commit_stats
#'
#' @export
print.commit_summary <- function(x) {
#' @exportS3Method base::print
print.commit_summary <- function(x, ...) {
cat("\nR Development Activity Analysis\n")
cat("============================\n")
cat(
Expand Down
10 changes: 7 additions & 3 deletions R/support-site-stats.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#'
#' @param to character(1) date in format ("YYYY/MM/DD/")
#'
#' @return list with components userdiff, toplevdiff, questdiff, respdiff
#' @returns `get_support_site_stats`: list with components userdiff, toplevdiff,
#' questdiff, respdiff
#'
#' @examples
#' get_support_site_stats()
Expand All @@ -36,8 +37,11 @@ get_support_site_stats <-
stats
}

#' show a report on support site usage
#' @export
#' @rdname get_support_site_stats
#'
#' @returns `print.bioc_support_stats`: show a report on support site usage
#'
#' @exportS3Method base::print
print.bioc_support_stats = function(x, ...) {
cat("Bioconductor support site usage increments.\n")
cat(sprintf(" From %s to %s : \n", x$from, x$to))
Expand Down
2 changes: 1 addition & 1 deletion man/commit_stats.Rd

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

8 changes: 7 additions & 1 deletion man/get_support_site_stats.Rd

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

11 changes: 0 additions & 11 deletions man/print.bioc_support_stats.Rd

This file was deleted.

0 comments on commit 9f1ebc6

Please sign in to comment.