From patchwork Thu Nov 16 14:07:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Gibb X-Patchwork-Id: 56518 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A58B627BBE9; Thu, 16 Nov 2023 14:09:27 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 118A227BBE2 for ; Thu, 16 Nov 2023 14:09:24 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3d3Q-0002XQ-Vo; Thu, 16 Nov 2023 09:09:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3d3O-0002Vd-MS for guix-patches@gnu.org; Thu, 16 Nov 2023 09:09:10 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3d3M-0003pp-Qv; Thu, 16 Nov 2023 09:09:10 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r3d3G-0004ak-Mn; Thu, 16 Nov 2023 09:09:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67229] [PATCH] gnu: Add r-gtsummary and dependencies Resent-From: Sebastian Gibb Original-Sender: "Debbugs-submit" Resent-CC: paren@disroot.org, guix@cbaines.net, ludo@gnu.org, othacehe@gnu.org, rg@raghavgururajan.name, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Thu, 16 Nov 2023 14:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67229 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67229@debbugs.gnu.org Cc: Sebastian Gibb , paren@disroot.org, guix@cbaines.net, ludo@gnu.org, othacehe@gnu.org, rg@raghavgururajan.name, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, jgart@dismail.de X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: paren@disroot.org, guix@cbaines.net, ludo@gnu.org, othacehe@gnu.org, rg@raghavgururajan.name, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, jgart@dismail.de Received: via spool by submit@debbugs.gnu.org id=B.170014370417598 (code B ref -1); Thu, 16 Nov 2023 14:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Nov 2023 14:08:24 +0000 Received: from localhost ([127.0.0.1]:54802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3d2d-0004Zl-R1 for submit@debbugs.gnu.org; Thu, 16 Nov 2023 09:08:24 -0500 Received: from lists.gnu.org ([2001:470:142::17]:43248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3d2Z-0004ZX-JG for submit@debbugs.gnu.org; Thu, 16 Nov 2023 09:08:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3d2U-0002HI-Ak for guix-patches@gnu.org; Thu, 16 Nov 2023 09:08:14 -0500 Received: from www96.your-server.de ([213.133.104.96]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3d2R-0003Uq-1d for guix-patches@gnu.org; Thu, 16 Nov 2023 09:08:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sebastiangibb.de; s=default_1812; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=3OMckK5OcDC0oKDocalTEqVeJDH9X2tOu201rFebQ34=; b=DeuH2FML8ik9ZEdyxn0j0QzeKg 0Ei42s4w+LUat/We25CzHFRiv9iIuOn66QGGc7hse+yZSpdbTw/X1Qxrm7HhatlXwhZHg85CtDEEg Ce6VkFMDeBIadrvDZ+WPhH2ey1NULoNh/tgzZ9Xv4IdOUN+YTKoYxj6FO/hjzAm+PQhI8G8hXBU5q Nlm1gHepaKJpeBNV0m1nZefCQaB2PhhoaEyaFOav8ijM1AmoUNBxbHBr4nfstOnTTqtklvyxRl3eu W57MQ/VdyDYi68lXJ3dOjDnk3HpeiS2gKNBCkB9fYAWtvjDxsOqZd8JKa1iniHDVMbrx9xaAiAsfp RDr4/f8w==; Received: from sslproxy04.your-server.de ([78.46.152.42]) by www96.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r3d2J-0009bY-Mm; Thu, 16 Nov 2023 15:08:03 +0100 Received: from [2003:cb:8f1f:4500:f4eb:f850:c761:b3a0] (helo=localhost) by sslproxy04.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r3d2J-00045t-G9; Thu, 16 Nov 2023 15:08:03 +0100 Date: Thu, 16 Nov 2023 15:07:41 +0100 Message-Id: <9610e6bc1c5bd70ed3e66b491603462f98b87cdf.1700143657.git.mail@sebastiangibb.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Authenticated-Sender: mail@sebastiangibb.de X-Virus-Scanned: Clear (ClamAV 0.103.10/27095/Thu Nov 16 09:40:23 2023) Received-SPF: pass client-ip=213.133.104.96; envelope-from=mail@sebastiangibb.de; helo=www96.your-server.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Sebastian Gibb X-ACL-Warn: , Sebastian Gibb via Guix-patches X-Patchwork-Original-From: Sebastian Gibb via Guix-patches via From: Sebastian Gibb Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Change-Id: I8925668063ca53b91bec49788fbed3df5eb2c2fc --- gnu/packages/cran.scm | 211 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 211 insertions(+) base-commit: 23627b1706af25a0a30b96b9169a3495279aff1b diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 221a81612c..711308d36c 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -1061,6 +1061,159 @@ (define-public r-googlevis the output locally.") (license license:gpl2+))) +(define-public r-reactr + (package + (name "r-reactr") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (cran-uri "reactR" version)) + (sha256 + (base32 "14pi2wc25qa9q0hp8jby07798l53phyj1zifj46fg2pjq8vkz7p7")))) + (properties `((upstream-name . "reactR"))) + (build-system r-build-system) + (propagated-inputs (list r-htmltools)) + (native-inputs (list esbuild r-knitr)) + (home-page "https://github.com/react-R/reactR") + (synopsis "React Helpers") + (description + "Make it easy to use React in R with htmlwidget scaffolds, helper dependency +functions, an embedded Babel transpiler', and examples.") + (license license:expat))) + +(define-public r-reactable + (package + (name "r-reactable") + (version "0.4.4") + (source + (origin + (method url-fetch) + (uri (cran-uri "reactable" version)) + (sha256 + (base32 "1wkamzyyl3k3772n5g4rjklkkhdb07jiax064r9alnnq5nzfdaml")))) + (properties `((upstream-name . "reactable"))) + (build-system r-build-system) + (propagated-inputs (list r-digest r-htmltools r-htmlwidgets r-jsonlite + r-reactr)) + (home-page "https://glin.github.io/reactable/") + (synopsis "Interactive Data Tables for R") + (description + "Interactive data tables for R, based on the React Table @code{JavaScript} +library. Provides an HTML widget that can be used in R Markdown or Quarto +documents, Shiny applications, or viewed from an R console.") + (license license:expat))) + +(define-public r-juicyjuice + (package + (name "r-juicyjuice") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (cran-uri "juicyjuice" version)) + (sha256 + (base32 "0ap1nsyihlagc1yqvwr2x9s16kzb3c8azfi50mzv95275a5l3xb4")))) + (properties `((upstream-name . "juicyjuice"))) + (build-system r-build-system) + (propagated-inputs (list r-v8)) + (home-page "https://github.com/rich-iannone/juicyjuice") + (synopsis "Inline CSS Properties into HTML Tags Using 'juice'") + (description + "There are occasions where you need a piece of HTML with integrated styles. A +prime example of this is HTML email. This transformation involves moving the +CSS and associated formatting instructions from the style block in the head of +your document into the body of the HTML. Many prominent email clients require +integrated styles in HTML email; otherwise a received HTML email will be +displayed without any styling. This package will quickly and precisely perform +these CSS transformations when given HTML text and it does so by using the +@code{JavaScript} juice library.") + (license license:expat))) + +(define-public r-gt + (package + (name "r-gt") + (version "0.10.0") + (source + (origin + (method url-fetch) + (uri (cran-uri "gt" version)) + (sha256 + (base32 "0gkfqy7n0pv1cz4vrshl2w07c0ykipi5rvp46nyvlcd17qq5z2kh")))) + (properties `((upstream-name . "gt"))) + (build-system r-build-system) + (propagated-inputs (list r-base64enc + r-bigd + r-bitops + r-cli + r-commonmark + r-dplyr + r-fs + r-glue + r-htmltools + r-htmlwidgets + r-juicyjuice + r-magrittr + r-markdown + r-reactable + r-rlang + r-sass + r-scales + r-tibble + r-tidyselect + r-xml2)) + (home-page "https://gt.rstudio.com") + (synopsis "Easily Create Presentation-Ready Display Tables") + (description + "Build display tables from tabular data with an easy-to-use set of functions. +With its progressive approach, we can construct display tables with a cohesive +set of table parts. Table values can be formatted using any of the included +formatting functions. Footnotes and cell styles can be precisely added through +a location targeting system. The way in which gt handles things for you means +that you don't often have to worry about the fine details.") + (license license:expat))) + +(define-public r-gtsummary + (package + (name "r-gtsummary") + (version "1.7.2") + (source + (origin + (method url-fetch) + (uri (cran-uri "gtsummary" version)) + (sha256 + (base32 "02jbsdv8wwncnrmqmf12pz3ld759s8ll5dl5rrxv8ad6qgqjbhnx")))) + (properties `((upstream-name . "gtsummary"))) + (build-system r-build-system) + (propagated-inputs (list r-broom + r-broom-helpers + r-cli + r-dplyr + r-forcats + r-glue + r-gt + r-knitr + r-lifecycle + r-purrr + r-rlang + r-stringr + r-tibble + r-tidyr + r-vctrs)) + (native-inputs (list r-knitr)) + (home-page "https://github.com/ddsjoberg/gtsummary") + (synopsis "Presentation-Ready Data Summary and Analytic Result Tables") + (description + "This package creates presentation-ready tables summarizing data sets, regression +models, and more. The code to create the tables is concise and highly +customizable. Data frames can be summarized with any function, e.g. mean(), +median(), even user-written functions. Regression models are summarized and +include the reference rows for categorical variables. Common regression models, +such as logistic regression and Cox proportional hazards regression, are +automatically identified and the tables are pre-filled with appropriate column +headers.") + (license license:expat))) + (define-public r-gson (package (name "r-gson") @@ -1973,6 +2126,32 @@ (define-public r-clipr the system clipboards.") (license license:gpl3))) +(define-public r-bigd + (package + (name "r-bigd") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (cran-uri "bigD" version)) + (sha256 + (base32 "0pzzqqazn1nv2b613vzdyhxvr454lyqq8235jydia6r3k86fpadw")))) + (properties `((upstream-name . "bigD"))) + (build-system r-build-system) + (home-page "https://github.com/rich-iannone/bigD") + (synopsis "Flexibly Format Dates and Times to a Given Locale") + (description + "Format dates and times flexibly and to whichever locales make sense. Parses +dates, times, and date-times in various formats (including string-based ISO 8601 +constructions). The formatting syntax gives the user many options for +formatting the date and time output in a precise manner. Time zones in the +input can be expressed in multiple ways and there are many options for +formatting time zones in the output as well. Several of the provided helper +functions allow for automatic generation of locale-aware formatting patterns +based on date/time skeleton formats and standardized date/time formats with +varying specificity.") + (license license:expat))) + (define-public r-clock (package (name "r-clock") @@ -8512,6 +8691,38 @@ (define-public r-broom provides a one-row summary of model-level statistics.") (license license:expat))) +(define-public r-broom-helpers + (package + (name "r-broom-helpers") + (version "1.14.0") + (source + (origin + (method url-fetch) + (uri (cran-uri "broom.helpers" version)) + (sha256 + (base32 "14vaqxv12yrvqllp8552nx68wk2qfjcy1iy7bajkspgdpwsjzhfd")))) + (properties `((upstream-name . "broom.helpers"))) + (build-system r-build-system) + (propagated-inputs (list r-broom + r-cli + r-dplyr + r-labelled + r-lifecycle + r-purrr + r-rlang + r-stringr + r-tibble + r-tidyr)) + (native-inputs (list r-knitr)) + (home-page "https://larmarange.github.io/broom.helpers/") + (synopsis "Helpers for Model Coefficients Tibbles") + (description + "This package provides suite of functions to work with regression model +broom::tidy() tibbles. The suite includes functions to group regression model +terms by variable, insert reference and header rows for categorical variables, +add variable labels, and more.") + (license license:gpl3+))) + (define-public r-recipes (package (name "r-recipes")