Format Output of Various Routines in a Suitable Way for Reports and Publication
Overview
A bunch of convenience functions that transform the results of some basic statistical analyses into table format nearly ready for publication. This includes descriptive tables, tables of logistic regression and Cox regression results as well as forest plots.
Install
Health
ERRORexamplesr-devel-linux-x86_64-debian-gcc
Running examples in ‘Publish-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: followupTable
> ### Title: Summary tables for a given followup time point.
> ### Aliases: followupTable
>
> ### ** Examples
>
> library(survival)
> data(pbc)
> pbc$edema <- factor(pbc$edema,levels=c("0","0.5","1"),labels=c("0","0.5","1"))
> pbc$sex <- factor(pbc$sex,levels=c("m","f"),labels=c("m","f"))
> followupTable(Hist(time,status)~age+edema+sex,data=pbc,followup.time=1000)
Error in a$specials[[i]] : subscript out of bounds
Calls: followupTable ... specialFrame -> <Anonymous> -> delete.response -> off
Execution haltedERRORtestsr-devel-linux-x86_64-debian-gcc
Running ‘testthat.R’ [5s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(Publish)
Loading required package: prodlim
>
> test_check("Publish")
[1] "Outcome variable(s): X8"
[1] "Passive variables: "
[1] "Partially obs. variables: X3,X6"
[1] "Fully obs. substantive model variables: X4,X7"
[1] "Imputation 1"
[1] "Imputing: X3 using X6,X4,X7 plus outcome"
[1] "Imputing: X6 using X3,X4,X7 plus outcome"
[1] "Imputation 2"
[1] "Imputation 3"
Variable Units Imputed (3) Coefficient CI.95 p-value
(Intercept) -
...[truncated]...
ate table with groups and missing values and labels with special characters ──
<subscriptOutOfBoundsError/error/condition>
Error in `a$specials[[i]]`: subscript out of bounds
Backtrace:
▆
1. └─Publish::univariateTable(...) at test-univariateTable.R:40:5
2. └─Publish::specialFrame(...)
3. └─prodlim::model.design(...)
4. └─stats::delete.response(terms)
5. └─stats (local) off(a$specials[[i]])
── Error ('test-univariateTable.R:56:5'): Univariate table with row percent ────
<subscriptOutOfBoundsError/error/condition>
Error in `a$specials[[i]]`: subscript out of bounds
Backtrace:
▆
1. ├─base::summary(...) at test-univariateTable.R:56:5
2. └─Publish::univariateTable(...)
3. └─Publish::specialFrame(...)
4. └─prodlim::model.design(...)
5. └─stats::delete.response(terms)
6. └─stats (local) off(a$specials[[i]])
[ FAIL 2 | WARN 1 | SKIP 3 | PASS 4 ]
Error:
! Test failures.
Execution halted- ERROR12 OK, 1 ERROR2026-10-24
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
Show 3 earlier changesHide 3 earlier changes
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 56 (1 internal)includes a package overview page
- Examples that run
- 98%45 run in a plain check (3 of them under a condition) · 1 never run
- Exported functions with examples
- 85%
- Documented parameters
- 100%
- Return-value docs
- 92%
- Help pages citing references
- 7%
Downloads
Dependencies
Installing Publish adds 37 packages (14 with compiled code, 38 MB of source tarballs). Heaviest: TH.data 8.2 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2025.07.24Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 2023.01.17
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 2020.12.232021-01-05 · diff ↗
- 2020.11.302020-12-01 · diff ↗
- 2020.10.272020-10-26 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 2019.12.042019-12-04 · diff ↗
- 2019.11.02
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2017-10-23
- Total releases
- 9 / 9 yrs
- License
- GPL (>= 2) OSI
- Bundled data
- 102 KB / 6 files
- Download size
- 175 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("Publish")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.