From 4057a5e18dd36d6284ed8a00a1ce472a1bb94780 Mon Sep 17 00:00:00 2001 From: Antoine Fabri Date: Tue, 31 Dec 2024 16:25:13 +0100 Subject: [PATCH 1/2] list new matrix constructors --- R/s3-matrix.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/s3-matrix.R b/R/s3-matrix.R index 06fbfd6b..2312bc3f 100644 --- a/R/s3-matrix.R +++ b/R/s3-matrix.R @@ -18,7 +18,7 @@ #' #' @return An object of class #' @export -opts_matrix <- function(constructor = c("matrix", "array", "next"), ...) { +opts_matrix <- function(constructor = c("matrix", "array", "cbind", "rbind", "next"), ...) { .cstr_options("matrix", constructor = constructor[[1]], ...) } From aadb54b73e5cd57dd14dfcdc522cc573762ba0a7 Mon Sep 17 00:00:00 2001 From: moodymudskipper Date: Tue, 31 Dec 2024 15:42:05 +0000 Subject: [PATCH 2/2] chore: Auto-update from GitHub Actions Run: https://github.com/cynkra/constructive/actions/runs/12561366131 --- man/construct.Rd | 2 +- man/opts_matrix.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/man/construct.Rd b/man/construct.Rd index b88c37b4..da4f6128 100644 --- a/man/construct.Rd +++ b/man/construct.Rd @@ -183,7 +183,7 @@ We can provide calls to `opts_*()` functions to the `...` argument. Each of thes \item \code{\link[=opts_list]{opts_list}(constructor = c("list", "list2"), ..., trim = NULL, fill = c("vector", "new_list", "+", "...", "none"))} \item \code{\link[=opts_logical]{opts_logical}(constructor = c("default"), ..., trim = NULL, fill = c("default", "rlang", "+", "...", "none"), compress = TRUE)} \item \code{\link[=opts_margin]{opts_margin}(constructor = c("margin", "next", "double"), ...)} - \item \code{\link[=opts_matrix]{opts_matrix}(constructor = c("matrix", "array", "next"), ...)} + \item \code{\link[=opts_matrix]{opts_matrix}(constructor = c("matrix", "array", "cbind", "rbind", "next"), ...)} \item \code{\link[=opts_mts]{opts_mts}(constructor = c("ts", "next", "atomic"), ...)} \item \code{\link[=opts_noquote]{opts_noquote}(constructor = c("noquote", "next"), ...)} \item \code{\link[=opts_NULL]{opts_NULL}(constructor = "NULL", ...)} diff --git a/man/opts_matrix.Rd b/man/opts_matrix.Rd index 2d61a3e1..33c5dfad 100644 --- a/man/opts_matrix.Rd +++ b/man/opts_matrix.Rd @@ -4,7 +4,7 @@ \alias{opts_matrix} \title{Constructive options for matrices} \usage{ -opts_matrix(constructor = c("matrix", "array", "next"), ...) +opts_matrix(constructor = c("matrix", "array", "cbind", "rbind", "next"), ...) } \arguments{ \item{constructor}{String. Name of the function used to construct the object.}