From bd3e6ef23e6b665d4c8b1568c10e248c2f843e27 Mon Sep 17 00:00:00 2001 From: Eli Pousson Date: Wed, 9 Oct 2024 00:27:40 -0400 Subject: [PATCH] Fix links to non-imported package functions --- R/bind_sf_coverage.R | 3 ++- R/number_features.R | 4 +++- R/sf_bbox_misc.R | 2 +- R/sf_to_df.R | 2 +- man/bind_sf_coverage.Rd | 3 ++- man/number_features.Rd | 4 +++- man/sf_bbox_misc.Rd | 2 +- man/sf_to_df.Rd | 2 +- 8 files changed, 14 insertions(+), 8 deletions(-) diff --git a/R/bind_sf_coverage.R b/R/bind_sf_coverage.R index 821be15..b977efa 100644 --- a/R/bind_sf_coverage.R +++ b/R/bind_sf_coverage.R @@ -6,7 +6,8 @@ #' [st_make_valid_coverage()] and [st_make_valid_union()] take a sf object and #' create a non-intersecting coverage area of a surrounding geography defined by #' a second sf, sfc, or bbox object. This was originally developed for the -#' [getACS::make_area_xwalk()] function. +#' [make_area_xwalk()](https://elipousson.github.io/getACS/reference/make_area_xwalk.html) +#' function in the getACS package. #' #' @param x A input sf object #' @param coverage A sf, sfc, or bbox object that covers x. diff --git a/R/number_features.R b/R/number_features.R index bff9967..5951bcf 100644 --- a/R/number_features.R +++ b/R/number_features.R @@ -1,7 +1,9 @@ #' Sort and number features by coordinates or distance #' #' @description -#' Used with [maplayer::layer_numbers()]. Supports multiple types of sorting including +#' Used by +#' [layer_numbers()](https://elipousson.github.io/maplayer/reference/layer_markers.html) +#' function from maplayer package. Supports multiple types of sorting including #' sorting: #' #' - by centroid coordinates ("lon", "lat") appended with [get_coords()] diff --git a/R/sf_bbox_misc.R b/R/sf_bbox_misc.R index 6d6ef16..6832a27 100644 --- a/R/sf_bbox_misc.R +++ b/R/sf_bbox_misc.R @@ -35,7 +35,7 @@ NULL #' @return sf object #' @seealso #' - [sf::st_as_sf()],[sf::st_as_sfc()] -#' - [sfx::st_extent()] +#' - [st_extent()](https://seasmith.github.io/packages/sfx/reference/st_extent.html) in sfx package #' @rdname sf_bbox_misc #' @export #' @importFrom sf st_sf st_geometry diff --git a/R/sf_to_df.R b/R/sf_to_df.R index fe302c4..2a75fa0 100644 --- a/R/sf_to_df.R +++ b/R/sf_to_df.R @@ -69,7 +69,7 @@ sf_to_df <- function(x, #' @param .name_repair Passed to [tibble::as_tibble()]. #' @inheritParams rlang::args_error_context #' @seealso -#' [ggspatial::df_spatial()] +#' [df_spatial()](https://paleolimbot.github.io/ggspatial/reference/df_spatial.html) in the ggspatial package #' [sf::st_as_sf()] #' @export #' @importFrom sf st_sf st_geometry st_as_sf diff --git a/man/bind_sf_coverage.Rd b/man/bind_sf_coverage.Rd index ec6f352..698ced7 100644 --- a/man/bind_sf_coverage.Rd +++ b/man/bind_sf_coverage.Rd @@ -66,7 +66,8 @@ A sf object or a sfc object \code{\link[=st_make_valid_coverage]{st_make_valid_coverage()}} and \code{\link[=st_make_valid_union]{st_make_valid_union()}} take a sf object and create a non-intersecting coverage area of a surrounding geography defined by a second sf, sfc, or bbox object. This was originally developed for the -\code{\link[getACS:make_area_xwalk]{getACS::make_area_xwalk()}} function. +\href{https://elipousson.github.io/getACS/reference/make_area_xwalk.html}{make_area_xwalk()} +function in the getACS package. } \seealso{ \code{\link[vctrs:vec_bind]{vctrs::vec_bind()}} diff --git a/man/number_features.Rd b/man/number_features.Rd index b00bc95..8a92ed8 100644 --- a/man/number_features.Rd +++ b/man/number_features.Rd @@ -83,7 +83,9 @@ number column.} A \code{sf} object with a number column ordered by sort values. } \description{ -Used with \code{\link[maplayer:layer_markers]{maplayer::layer_numbers()}}. Supports multiple types of sorting including +Used by +\href{https://elipousson.github.io/maplayer/reference/layer_markers.html}{layer_numbers()} +function from maplayer package. Supports multiple types of sorting including sorting: \itemize{ \item by centroid coordinates ("lon", "lat") appended with \code{\link[=get_coords]{get_coords()}} diff --git a/man/sf_bbox_misc.Rd b/man/sf_bbox_misc.Rd index b65bdb8..1aad609 100644 --- a/man/sf_bbox_misc.Rd +++ b/man/sf_bbox_misc.Rd @@ -70,6 +70,6 @@ If sf (>=1.0-17) is installed, \code{\link[=sf_bbox_transform]{sf_bbox_transform \seealso{ \itemize{ \item \code{\link[sf:st_as_sf]{sf::st_as_sf()}},\code{\link[sf:st_as_sfc]{sf::st_as_sfc()}} -\item \code{\link[sfx:st_extent]{sfx::st_extent()}} +\item \href{https://seasmith.github.io/packages/sfx/reference/st_extent.html}{st_extent()} in sfx package } } diff --git a/man/sf_to_df.Rd b/man/sf_to_df.Rd index 3e6a9ec..9b42726 100644 --- a/man/sf_to_df.Rd +++ b/man/sf_to_df.Rd @@ -127,6 +127,6 @@ df_to_sf(nc_df, coords = "xy", into = c("lon", "lat")) \seealso{ \code{\link[sf:st_coordinates]{sf::st_coordinates()}} -\code{\link[ggspatial:df_spatial]{ggspatial::df_spatial()}} +\href{https://paleolimbot.github.io/ggspatial/reference/df_spatial.html}{df_spatial()} in the ggspatial package \code{\link[sf:st_as_sf]{sf::st_as_sf()}} }