Skip to content

Commit b805263

Browse files
committed
avoid having to document unregistered methods by not exporting them
1 parent 51d388d commit b805263

File tree

5 files changed

+0
-14
lines changed

5 files changed

+0
-14
lines changed

NAMESPACE

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,12 @@ S3method(simplify_gt,gtable_patchwork)
6767
S3method(simplify_gt,inset_table)
6868
S3method(simplify_gt,patchgrob)
6969
S3method(str,patchwork)
70-
export(add_ggplot)
71-
export(add_grob)
72-
export(add_gt_tbl)
73-
export(add_plot_annotation)
74-
export(add_plot_layout)
7570
export(align_patches)
7671
export(align_plots)
7772
export(area)
78-
export(build_fixed_dim_ggplot)
7973
export(free)
8074
export(get_dim)
8175
export(get_max_dim)
82-
export(gtable_fixed_dim_build)
8376
export(guide_area)
8477
export(inset_element)
8578
export(patchGrob)

R/add_plot.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
#' @importFrom ggplot2 ggplot_add
2-
#' @export
32
add_ggplot <- function(object, plot, object_name) {
43
patches <- get_patches(plot)
54
add_patches(object, patches)
65
}
76
#' @importFrom ggplot2 ggplot_add
8-
#' @export
97
add_grob <- function(object, plot, object_name) {
108
table <- as_patch(object)
119
plot + wrap_elements(full = object)
1210
}
1311
#' @importFrom ggplot2 ggplot_add
14-
#' @export
1512
add_gt_tbl <- function(object, plot, object_name) {
1613
plot + wrap_table(object)
1714
}

R/plot_annotation.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ default_annotation <- plot_annotation(
9797
theme = NULL
9898
)
9999
#' @importFrom utils modifyList
100-
#' @export
101100
add_plot_annotation <- function(object, plot, object_name) {
102101
plot <- as_patchwork(plot)
103102
if (is.null(object$theme)) {

R/plot_layout.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ default_layout <- plot_layout(
314314
axes = 'keep', axis_titles = 'keep'
315315
)
316316
#' @importFrom utils modifyList
317-
#' @export
318317
add_plot_layout <- function(object, plot, object_name) {
319318
plot <- as_patchwork(plot)
320319
do_change <- object[!vapply(object, is_waiver, logical(1))]

R/plot_multipage.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,12 @@ set_dim.patchwork <- function(plot, dim) {
105105
cli_abort('Setting dimensions on patchworks are currently unsupported')
106106
}
107107
#' @importFrom ggplot2 ggplot_build
108-
#' @export
109108
build_fixed_dim_ggplot <- function(plot) {
110109
plot <- NextMethod()
111110
class(plot) <- c('fixed_dim_build', class(plot))
112111
plot
113112
}
114113
#' @importFrom ggplot2 ggplot_gtable
115-
#' @export
116114
gtable_fixed_dim_build <- function(data) {
117115
dim <- data$plot$fixed_dimensions
118116
table <- NextMethod()

0 commit comments

Comments
 (0)