Skip to content

Commit

Permalink
Actually, internal S3 methods need @export.
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Feb 5, 2024
1 parent 3cf87ae commit b0c105f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ S3method(tmapLeafletCompWidth,tm_scalebar)
S3method(tmapLeafletCompWidth,tm_title)
S3method(tmapLeafletLegPlot,tm_compass)
S3method(tmapLeafletLegPlot,tm_credits)
S3method(tmapLeafletLegPlot,tm_legend_standard_landscape)
S3method(tmapLeafletLegPlot,tm_legend_standard_portrait)
S3method(tmapLeafletLegPlot,tm_mouse_coordinates)
S3method(tmapLeafletLegPlot,tm_scalebar)
S3method(tmapLeafletLegPlot,tm_title)
Expand Down
4 changes: 2 additions & 2 deletions R/tmapLeafletLegend.R
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ tmapLeaflet_legend = function(cmp, lf, o, orientation) {

}

#' @exportS3Method NULL
#' @export
tmapLeafletLegPlot.tm_legend_standard_portrait = function(cmp, lf, o) {
tmapLeaflet_legend(cmp, lf, o, orientation = "vertical")
}

#' @exportS3Method NULL
#' @export
tmapLeafletLegPlot.tm_legend_standard_landscape = function(cmp, lf, o) {
tmapLeaflet_legend(cmp, lf, o, orientation = "horizontal")
}
Expand Down

0 comments on commit b0c105f

Please sign in to comment.