Skip to content

Commit

Permalink
Redocument with roxygen2 7.3.1 + document undocumented arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Feb 5, 2024
1 parent afdd7b6 commit 7c56c37
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 43 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.0
RoxygenNote: 7.3.1
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ S3method(tmapLeafletLegPlot,tm_title)
S3method(tmapReproject,dimensions)
S3method(tmapReproject,sfc)
S3method(tmapReproject,stars)
S3method(tmapShape,Raster)
S3method(tmapShape,SpatRaster)
S3method(tmapShape,sf)
S3method(tmapShape,stars)
Expand Down Expand Up @@ -223,6 +224,7 @@ importFrom(grDevices,dev.size)
importFrom(grDevices,png)
importFrom(grDevices,rgb)
importFrom(htmlwidgets,saveWidget)
importFrom(leaflet,providers)
importFrom(rlang,expr)
importFrom(rlang,missing_arg)
importFrom(utils,browseURL)
4 changes: 4 additions & 0 deletions R/tm_layers_text.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
#' groups can be switched on and off. Options: `"radio"` for radio buttons
#' (meaning only one group can be shown), `"check"` for check boxes (so multiple groups can be shown),
#' and `"none"` for no control (the group cannot be (de)selected).
#' @param bgcol,bgcol.scale,bgcol.legend,bgcol.free Visual variable that determines
#' the background color. See Details.
#' @param bgcol_alpha,bgcol_alpha.scale,bgcol_alpha.legend,bgcol_alpha.free Visual variable that determines
#' the background color transparency. See Details.
#' @param ... to catch deprecated arguments from version < 4.0
#' @example ./examples/tm_text.R
#' @export
Expand Down
3 changes: 2 additions & 1 deletion R/tmapLeafletLegend.R
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,12 @@ tmapLeaflet_legend = function(cmp, lf, o, orientation) {

}


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

#' @exportS3Method NULL
tmapLeafletLegPlot.tm_legend_standard_landscape = function(cmp, lf, o) {
tmapLeaflet_legend(cmp, lf, o, orientation = "horizontal")
}
Expand Down
2 changes: 1 addition & 1 deletion R/tmapShape.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ tmapShape = function(shp, is.main, crs, bbox, unit, filter, shp_name, smeta, o,
}



#' @export
tmapShape.Raster = function(shp, is.main, crs, bbox, unit, filter, shp_name, smeta, o, tmf) {
tmapShape.SpatRaster(terra::rast(shp), is.main, crs, bbox, unit, filter, shp_name, smeta, o, tmf)
}
Expand Down
2 changes: 1 addition & 1 deletion man/Shapes.Rd

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

2 changes: 1 addition & 1 deletion man/qtm.Rd

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

7 changes: 7 additions & 0 deletions man/tm_basemap.Rd

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

5 changes: 4 additions & 1 deletion man/tm_facets.Rd

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

2 changes: 1 addition & 1 deletion man/tm_shape.Rd

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

55 changes: 24 additions & 31 deletions man/tm_text.Rd

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

10 changes: 5 additions & 5 deletions man/tmap-package.Rd

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

1 change: 1 addition & 0 deletions man/tmap_options.Rd

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

0 comments on commit 7c56c37

Please sign in to comment.