Skip to content

Commit

Permalink
Fix man
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Feb 15, 2024
1 parent b9a3910 commit 17c1970
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions R/bbox.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ bbox.MtrxSetSetSet = function(obj, ...) {
#'
#' Return bounding of a simple feature or simple feature set.
#' @param obj object to compute the bounding box from
#' @param ... Arguments passed on to methods.
#' @export
#' @return a numeric vector of length four, with \code{xmin}, \code{ymin}, \code{xmax}
#' and \code{ymax} values; if \code{obj} is of class \code{sf}, \code{sfc}, \code{Spatial} or \code{Raster}, the object
Expand Down
18 changes: 9 additions & 9 deletions R/tidyverse.R
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,11 @@ gather.sf <- function(data, key, value, ..., na.rm = FALSE, convert = FALSE, fac
sf_column_name = attr(data, "sf_column"))
}

#' @rdname tidyverse
#' @name tidyverse
#' @param data see original function docs
#' @param cols see original function docs
#' @param names_to,names_prefix,names_sep,names_pattern,names_ptype,names_transform,names_repair see [tidyr::pivot_longer()]
#' @param values_to,values_drop_na,value_ptypes,values_transform See [tidyr::pivot_longer()]
#' @param names_to,names_pattern,names_ptypes,names_transform see [tidyr::pivot_longer()]
#' @param values_to,values_drop_na,values_ptypes,values_transform See [tidyr::pivot_longer()]
pivot_longer.sf <- function (data, cols, names_to = "name", names_prefix = NULL,
names_sep = NULL, names_pattern = NULL, names_ptypes = NULL,
names_transform = NULL, names_repair = "check_unique",
Expand Down Expand Up @@ -443,13 +443,13 @@ pivot_longer.sf <- function (data, cols, names_to = "name", names_prefix = NULL,
st_as_sf(out, sf_column_name = sf_column_name)
}

utils::globalVariables(c("name", "value"))
globalVariables(c("name", "value"))
# https://github.com/r-spatial/sf/issues/1915
#' @rdname tidyverse
#' @param id_cols,id_expand see [tidyr::pivot_wider()]
#' @param names_from,names_prefix,names_sep,names_glue,names_sort,names_wary,names_repair see [tidyr::pivot_wider()].
#' @param values_from,values_fill,values_fn see [tidyr::pivot_wider()]
#' @param unused_fn see original function docs
#' @name tidyverse
#' @param id_cols,id_expand,names_from,names_sort,names_glue,names_vary,names_expand see [tidyr::pivot_wider()]
# names_prefix,names_sep and names_repair are shared between pivot_longer() and pivot_wider()
#' @param names_prefix,names_sep,names_repair see original function docs.
#' @param values_from,values_fill,values_fn,unused_fn see [tidyr::pivot_wider()]
pivot_wider.sf = function(data,
...,
id_cols = NULL,
Expand Down
2 changes: 2 additions & 0 deletions man/st_bbox.Rd

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

12 changes: 5 additions & 7 deletions man/tidyverse.Rd

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

0 comments on commit 17c1970

Please sign in to comment.