From 8c89f6c9da37dfea7993659a7c2c142d2bbf1b64 Mon Sep 17 00:00:00 2001 From: Vincent Arel-Bundock Date: Mon, 4 Nov 2024 10:48:21 -0500 Subject: [PATCH] docs --- Makefile | 2 ++ R/style_grid.R | 17 +++-------------- README.md | 4 ++-- README.qmd | 2 +- man/style_grid_internal.Rd | 24 ------------------------ 5 files changed, 8 insertions(+), 41 deletions(-) delete mode 100644 man/style_grid_internal.Rd diff --git a/Makefile b/Makefile index 5f60d8bc..e74c85be 100644 --- a/Makefile +++ b/Makefile @@ -22,4 +22,6 @@ test: install ## test Rscript -e "library(tinytable);tinytest::run_test_dir()" website: install ## render vignettes and website + rm -rf _quarto + rm -rf docs Rscript -e "altdoc::render_docs(verbose = TRUE, freeze = TRUE, autolink = TRUE)" diff --git a/R/style_grid.R b/R/style_grid.R index c5923831..ab213ee2 100644 --- a/R/style_grid.R +++ b/R/style_grid.R @@ -1,22 +1,11 @@ -#' tinytable S4 method -#' -#' @keywords internal -style_eval_grid <- function(x, - i = NULL, - j = NULL, - bold = FALSE, - italic = FALSE, - monospace = FALSE, - underline = FALSE, - strikeout = FALSE, - rowspan = NULL, - colspan = NULL, - ...) { +style_eval_grid <- function(x) { out <- x@table_dataframe sty <- x@style + if (nrow(sty) == 0) return(x) + all_i <- seq_len(nrow(x)) idx_g <- x@group_i_idx + cumsum(rep(1, length(x@group_i_idx))) - 1 idx_d <- setdiff(all_i, idx_g) diff --git a/README.md b/README.md index 55258d6a..32116079 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ want to benefit from the latest features—showcased on the package website—you should install from R-Universe: ``` r -install.packages("tinytable", repos = "https://vincentarelbundock.r-universe.dev") +install.packages("tinytable") ``` Alternatively, you can install it from CRAN: @@ -131,7 +131,7 @@ tt(x, ## Tutorial -The `tinytable` 0.5.0 tutorial will take you much further. It is +The `tinytable` 0.5.0.1 tutorial will take you much further. It is available in two formats: - [Tutorial diff --git a/README.qmd b/README.qmd index f26c0bca..779999ee 100644 --- a/README.qmd +++ b/README.qmd @@ -52,7 +52,7 @@ To achieve these goals, the design philosophy of `tinytable` rests on three pill `tinytable` is a relatively new package with rapid development. If you want to benefit from the latest features---showcased on the package website---you should install from R-Universe: ``` r -install.packages("tinytable", repos = "https://vincentarelbundock.r-universe.dev") +install.packages("tinytable") ``` Alternatively, you can install it from CRAN: diff --git a/man/style_grid_internal.Rd b/man/style_grid_internal.Rd deleted file mode 100644 index c8b9366d..00000000 --- a/man/style_grid_internal.Rd +++ /dev/null @@ -1,24 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/style_grid.R -\name{style_grid_internal} -\alias{style_grid_internal} -\title{tinytable S4 method} -\usage{ -style_grid_internal( - x, - i = NULL, - j = NULL, - bold = FALSE, - italic = FALSE, - monospace = FALSE, - underline = FALSE, - strikeout = FALSE, - rowspan = NULL, - colspan = NULL, - ... -) -} -\description{ -tinytable S4 method -} -\keyword{internal}