Skip to content

Commit

Permalink
Update roxygen comment
Browse files Browse the repository at this point in the history
  • Loading branch information
UchidaMizuki committed Nov 19, 2021
1 parent e45fd50 commit c1f4b87
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 2 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
^README\.Rmd$
^cran-comments\.md$
^\.travis\.yml$
^CRAN-RELEASE$
2 changes: 2 additions & 0 deletions CRAN-RELEASE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This package was submitted to CRAN on 2021-11-17.
Once it is accepted, delete this file and tag the release (commit e45fd50).
2 changes: 1 addition & 1 deletion R/XY.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ XY_to_mesh <- function(X, Y, size) {
#' @param mesh A \code{mesh} class vector.
#' @param center Should the center point of the mesh be returned? Otherwise the end points will be returned. \code{TRUE} by default.
#'
#' @return \code{mesh_to_XY} returns a tbl.
#' @return \code{mesh_to_XY} returns a \code{tbl_df}.
mesh_to_XY <- function(mesh, center = TRUE) {
stopifnot(is_mesh(mesh))

Expand Down
2 changes: 2 additions & 0 deletions R/distance.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#' @param type How is the NA mesh treated when \code{mesh} is a list? \code{"skip_na"} skips the \code{NA} mesh and connects the paths.
#' \code{"keep_na"} by default.
#'
#' @return A double vector.
#'
#' @export
mesh_distance <- function(mesh, mesh_to,
close = FALSE,
Expand Down
2 changes: 2 additions & 0 deletions R/line.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#' @inheritParams mesh_to
#' @param skip_na Should skip the \code{NA} mesh and connects the paths? \code{FALSE} by default.
#'
#' @return A list of \code{mesh} class vectors.
#'
#' @export
mesh_line <- function(mesh, mesh_to,
close = FALSE,
Expand Down
4 changes: 4 additions & 0 deletions R/move.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#' @param n_X Number of moving cells in the longitude direction.
#' @param n_Y Number of moving cells in the latitude direction.
#'
#' @return A \code{mesh} class vector.
#'
#' @export
mesh_move <- function(mesh, n_X, n_Y) {
stopifnot(is_mesh(mesh))
Expand All @@ -20,6 +22,8 @@ mesh_move <- function(mesh, n_X, n_Y) {
#' @param moore Moore neighborhood (\code{TRUE}) or Von Neumann neighborhood (\code{FALSE}).
#' @param simplify Should simplify the format of the return?
#'
#' @return A list of \code{mesh} class vectors.
#'
#' @export
mesh_neighbor <- function(mesh,
n = 1L,
Expand Down
5 changes: 5 additions & 0 deletions R/sfc.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#' @param point A \code{sfc_POINT} vector.
#' @inheritParams size
#'
#' @return A \code{mesh} class vector.
#'
#' @export
point_to_mesh <- function(point, size) {
stopifnot(inherits(point, "sfc_POINT"))
Expand All @@ -22,6 +24,9 @@ point_to_mesh <- function(point, size) {
#'
#' @inheritParams mesh
#' @param crs Coordinate reference system.
#'
#' @return \code{mesh_to_polygon} returns a \code{sfc_POLYGON} vector.
#' \code{mesh_to_point} returns a \code{sfc_POINT} vector.
NULL

mesh_to_sfc <- function(mesh,
Expand Down
2 changes: 1 addition & 1 deletion man/XY.Rd

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

3 changes: 3 additions & 0 deletions man/mesh_distance.Rd

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

3 changes: 3 additions & 0 deletions man/mesh_line.Rd

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

3 changes: 3 additions & 0 deletions man/mesh_move.Rd

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

3 changes: 3 additions & 0 deletions man/mesh_neighbor.Rd

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

3 changes: 3 additions & 0 deletions man/point_to_mesh.Rd

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

4 changes: 4 additions & 0 deletions man/sfc.Rd

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

0 comments on commit c1f4b87

Please sign in to comment.