From 4f7a014be3fd8bd40ec6640e6171b1aaba884c7b Mon Sep 17 00:00:00 2001 From: Michael Sumner Date: Thu, 5 Nov 2026 01:28:28 +0000 Subject: [PATCH] fix small typos (README: install.packages the substantial one) --- R/edges.R | 2 +- R/scl-full.R | 2 +- R/scl-redcap.R | 2 +- README-src.Rmd | 2 +- src/full-init.h | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/R/edges.R b/R/edges.R index 696a287..1c24be7 100644 --- a/R/edges.R +++ b/R/edges.R @@ -61,7 +61,7 @@ scl_edges_tri <- function (xy) { #' @noRd scl_edges_nn <- function (xy, nnbs) { - # Initially contruct with nnbs + 1, because the `d` matrix includes + # Initially construct with nnbs + 1, because the `d` matrix includes # self-distances of zero, which are subsequently removed. nnbs <- nnbs + 1 d <- apply ( diff --git a/R/scl-full.R b/R/scl-full.R index c839807..99c2247 100644 --- a/R/scl-full.R +++ b/R/scl-full.R @@ -122,7 +122,7 @@ full_realign_tree <- function (edges, nodes) { #' order_merges #' #' Order merges so they can be plotted as dendrogram -#' @param merges output from rccp_full_merge +#' @param merges output from rcpp_full_merge #' @noRd order_merges <- function (merges) { diff --git a/R/scl-redcap.R b/R/scl-redcap.R index caaee67..5027b4b 100644 --- a/R/scl-redcap.R +++ b/R/scl-redcap.R @@ -193,7 +193,7 @@ tree_nodes <- function (tree) { return (res) } -#' scl_reccluster +#' scl_recluster #' #' Re-cut a spatial cluster tree (\code{scl}) at a different number of clusters. #' diff --git a/README-src.Rmd b/README-src.Rmd index 74193c6..6a27fef 100644 --- a/README-src.Rmd +++ b/README-src.Rmd @@ -53,7 +53,7 @@ options (repos = c ( The package can then be installed as usual with, ```{r install, eval = FALSE} -install.packges ("spatialcluster") +install.packages ("spatialcluster") ``` Alternatively, the package can also be installed using any of the following diff --git a/src/full-init.h b/src/full-init.h index 94fe597..a0fb5d0 100644 --- a/src/full-init.h +++ b/src/full-init.h @@ -4,8 +4,8 @@ // --------- FULL CLUSTER ---------------- -/* All `index2cl` values are initally set to -1, and there are no `cl2index` - * values. There is also a single binary vector of `index_in_cluster`, initialy +/* All `index2cl` values are initially set to -1, and there are no `cl2index` + * values. There is also a single binary vector of `index_in_cluster`, initially * set to `false`. */