Utility Functions to Support and Extend the 'rbmi' Package
Overview
Provides utility functions that extend the capabilities of the reference-based multiple imputation package 'rbmi'. It supports clinical trial analysis workflows with functions for managing imputed datasets, applying analysis methods across imputations, and tidying results for reporting.
CRAN Release
From NEWS.md in the release
Install
Health
ERRORre-building of vignette outputsr-devel-windows-x86_64, r-oldrel-windows-x86_64, r-release-windows-x86_64
r-devel-windows-x86_64
Error(s) in re-building vignettes:
--- re-building 'analyse2.Rmd' using rmarkdown
specified C++17
make cmd is
make -f "D:/RCompile/recent/R/etc/x64/Makeconf" -f "D:/RCompile/recent/R/share/make/winshlib.mk" CXX='$(CXX17) $(CXX17STD)' CXXFLAGS='$(CXX17FLAGS)' CXXPICFLAGS='$(CXX17PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX17LDFLAGS)' SHLIB_LD='$(SHLIB_CXX17LD)' SHLIB="file1db8435bc6674.dll" WIN=64 TCLBIN= OBJECTS="file1db8435bc6674.o"
make would use
if test "zfile1db8435bc6674.o" != "z"; then \
if test -e "file1db8435bc6674-win.def"; then \
echo g++ -shared -s -static-libgcc -o file1db8435bc6674.dll file1db8435bc6674-win.def file1db8435bc6674.o "D:/RCompile/CRANpkg/lib/4.7/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.7/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.7/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.7/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.7/RcppParallel/lib/x64 -ltbb -ltbbmalloc -L"d:/rtools45/x86
...[truncated]...
six/lib" -L"D:/RCompile/recent/R/bin/x64" -lR ; \
rm -f tmp.def; \
fi \
fi
Quitting from pipeline.Rmd:160-165 [draws]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `sink()`:
! invalid connection
---
Backtrace:
▆
1. ├─rbmi::draws(data = dat, vars = vars, method = method)
2. └─rbmi:::draws.bayes(data = dat, vars = vars, method = method)
3. └─rbmi:::fit_mcmc(...)
4. └─rbmi:::get_stan_model(covariance = method$covariance, prior_cov = method$prior_cov)
5. └─rstan::stan_model(...)
6. └─rstan:::cxxfunctionplus(...)
7. └─base::sink(type = "output")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'pipeline.Rmd' failed with diagnostics:
invalid connection
--- failed re-building 'pipeline.Rmd'
SUMMARY: processing the following files failed:
'analyse2.Rmd' 'pipeline.Rmd'
Error: Vignette re-building failed.
Execution haltedr-oldrel-windows-x86_64
Error(s) in re-building vignettes:
--- re-building 'analyse2.Rmd' using rmarkdown
make cmd is
make -f "D:/RCompile/recent/R-4.5.3/etc/x64/Makeconf" -f "D:/RCompile/recent/R-4.5.3/share/make/winshlib.mk" CXX='$(CXX17) $(CXX17STD)' CXXFLAGS='$(CXX17FLAGS)' CXXPICFLAGS='$(CXX17PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX17LDFLAGS)' SHLIB_LD='$(SHLIB_CXX17LD)' SHLIB="file54f9860c55ddc.dll" WIN=64 TCLBIN= OBJECTS="file54f9860c55ddc.o"
make would use
if test "zfile54f9860c55ddc.o" != "z"; then \
if test -e "file54f9860c55ddc-win.def"; then \
echo g++ -shared -s -static-libgcc -o file54f9860c55ddc.dll file54f9860c55ddc-win.def file54f9860c55ddc.o "D:/RCompile/CRANpkg/lib/4.5/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.5/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.5/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.5/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.5/RcppParallel/lib/x64 -ltbb -ltbbmalloc -L"d:/rtools45/x86_64-w6
...[truncated]...
b" -L"D:/RCompile/recent/R-4.5.3/bin/x64" -lR ; \
rm -f tmp.def; \
fi \
fi
Quitting from pipeline.Rmd:160-165 [draws]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `sink()`:
! invalid connection
---
Backtrace:
▆
1. ├─rbmi::draws(data = dat, vars = vars, method = method)
2. └─rbmi:::draws.bayes(data = dat, vars = vars, method = method)
3. └─rbmi:::fit_mcmc(...)
4. └─rbmi:::get_stan_model(covariance = method$covariance, prior_cov = method$prior_cov)
5. └─rstan::stan_model(...)
6. └─rstan:::cxxfunctionplus(...)
7. └─base::sink(type = "output")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'pipeline.Rmd' failed with diagnostics:
invalid connection
--- failed re-building 'pipeline.Rmd'
SUMMARY: processing the following files failed:
'analyse2.Rmd' 'pipeline.Rmd'
Error: Vignette re-building failed.
Execution haltedr-release-windows-x86_64
Error(s) in re-building vignettes:
--- re-building 'analyse2.Rmd' using rmarkdown
specified C++17
make cmd is
make -f "D:/RCompile/recent/R-4.6.1/etc/x64/Makeconf" -f "D:/RCompile/recent/R-4.6.1/share/make/winshlib.mk" CXX='$(CXX17) $(CXX17STD)' CXXFLAGS='$(CXX17FLAGS)' CXXPICFLAGS='$(CXX17PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX17LDFLAGS)' SHLIB_LD='$(SHLIB_CXX17LD)' SHLIB="file571ac57455045.dll" WIN=64 TCLBIN= OBJECTS="file571ac57455045.o"
make would use
if test "zfile571ac57455045.o" != "z"; then \
if test -e "file571ac57455045-win.def"; then \
echo g++ -shared -s -static-libgcc -o file571ac57455045.dll file571ac57455045-win.def file571ac57455045.o "D:/RCompile/CRANpkg/lib/4.6/rstan/lib/x64/libStanServices.a" -L"D:/RCompile/CRANpkg/lib/4.6/StanHeaders/libs/x64" -lStanHeaders -L"D:/RCompile/CRANpkg/lib/4.6/RcppParallel/lib/x64" -ltbb -LD:/RCompile/CRANpkg/lib/4.6/RcppParallel/libs/x64 -lRcppParallel -LD:/RCompile/CRANpkg/lib/4.6/RcppParallel/lib/x64 -ltbb -ltbbmalloc -L"d:/
...[truncated]...
b" -L"D:/RCompile/recent/R-4.6.1/bin/x64" -lR ; \
rm -f tmp.def; \
fi \
fi
Quitting from pipeline.Rmd:160-165 [draws]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `sink()`:
! invalid connection
---
Backtrace:
▆
1. ├─rbmi::draws(data = dat, vars = vars, method = method)
2. └─rbmi:::draws.bayes(data = dat, vars = vars, method = method)
3. └─rbmi:::fit_mcmc(...)
4. └─rbmi:::get_stan_model(covariance = method$covariance, prior_cov = method$prior_cov)
5. └─rstan::stan_model(...)
6. └─rstan:::cxxfunctionplus(...)
7. └─base::sink(type = "output")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'pipeline.Rmd' failed with diagnostics:
invalid connection
--- failed re-building 'pipeline.Rmd'
SUMMARY: processing the following files failed:
'analyse2.Rmd' 'pipeline.Rmd'
Error: Vignette re-building failed.
Execution haltedERRORtestsr-devel-windows-x86_64, r-oldrel-windows-x86_64, r-release-windows-x86_64
r-devel-windows-x86_64
Running 'spelling.R' [0s]
Running 'testthat.R' [132s]
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/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(rbmiUtils)
>
> test_check("rbmiUtils")
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
v All outcome values are complete -- no missing data to impute.
i You may not need `data_ice` for `rbmi::draws()`.
v All outcome values are complete -- no missing data to impute.
i You may not need `data_i
...[truncated]...
an::stan_model(...)
6. └─rstan:::cxxfunctionplus(...)
7. ├─pkgbuild::with_build_tools(...)
8. │ └─pkgbuild:::withr_with_path(rtools_path(), code)
9. │ └─base::force(code)
10. └─inline::cxxfunction(...)
11. └─inline:::compileCode(f, code, language = language, verbose = verbose)
── Error ('test-utils.R:39:3'): positive test get_imputed_data (from vignettes) ──
Error in `sink(type = "output")`: invalid connection
Backtrace:
▆
1. ├─rbmi::draws(data = dat, vars = vars, method = method, quiet = TRUE) at test-utils.R:39:3
2. └─rbmi:::draws.bayes(...)
3. └─rbmi:::fit_mcmc(...)
4. └─rbmi:::get_stan_model(covariance = method$covariance, prior_cov = method$prior_cov)
5. └─rstan::stan_model(...)
6. └─rstan:::cxxfunctionplus(...)
7. └─base::sink(type = "output")
[ FAIL 2 | WARN 16 | SKIP 2 | PASS 1024 ]
Error:
! Test failures.
Execution haltedr-oldrel-windows-x86_64
Running 'spelling.R' [0s]
Running 'testthat.R' [173s]
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/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(rbmiUtils)
>
> test_check("rbmiUtils")
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
v All outcome values are complete -- no missing data to impute.
i You may not need `data_ice` for `rbmi::draws()`.
v All outcome values are complete -- no missing data to impute.
i You may not need `data_i
...[truncated]...
an::stan_model(...)
6. └─rstan:::cxxfunctionplus(...)
7. ├─pkgbuild::with_build_tools(...)
8. │ └─pkgbuild:::withr_with_path(rtools_path(), code)
9. │ └─base::force(code)
10. └─inline::cxxfunction(...)
11. └─inline:::compileCode(f, code, language = language, verbose = verbose)
── Error ('test-utils.R:39:3'): positive test get_imputed_data (from vignettes) ──
Error in `sink(type = "output")`: invalid connection
Backtrace:
▆
1. ├─rbmi::draws(data = dat, vars = vars, method = method, quiet = TRUE) at test-utils.R:39:3
2. └─rbmi:::draws.bayes(...)
3. └─rbmi:::fit_mcmc(...)
4. └─rbmi:::get_stan_model(covariance = method$covariance, prior_cov = method$prior_cov)
5. └─rstan::stan_model(...)
6. └─rstan:::cxxfunctionplus(...)
7. └─base::sink(type = "output")
[ FAIL 2 | WARN 16 | SKIP 2 | PASS 1024 ]
Error:
! Test failures.
Execution haltedr-release-windows-x86_64
Running 'spelling.R' [0s]
Running 'testthat.R' [128s]
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/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(rbmiUtils)
>
> test_check("rbmiUtils")
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
v All outcome values are complete -- no missing data to impute.
i You may not need `data_ice` for `rbmi::draws()`.
v All outcome values are complete -- no missing data to impute.
i You may not need `data_i
...[truncated]...
an::stan_model(...)
6. └─rstan:::cxxfunctionplus(...)
7. ├─pkgbuild::with_build_tools(...)
8. │ └─pkgbuild:::withr_with_path(rtools_path(), code)
9. │ └─base::force(code)
10. └─inline::cxxfunction(...)
11. └─inline:::compileCode(f, code, language = language, verbose = verbose)
── Error ('test-utils.R:39:3'): positive test get_imputed_data (from vignettes) ──
Error in `sink(type = "output")`: invalid connection
Backtrace:
▆
1. ├─rbmi::draws(data = dat, vars = vars, method = method, quiet = TRUE) at test-utils.R:39:3
2. └─rbmi:::draws.bayes(...)
3. └─rbmi:::fit_mcmc(...)
4. └─rbmi:::get_stan_model(covariance = method$covariance, prior_cov = method$prior_cov)
5. └─rstan::stan_model(...)
6. └─rstan:::cxxfunctionplus(...)
7. └─base::sink(type = "output")
[ FAIL 2 | WARN 16 | SKIP 2 | PASS 1024 ]
Error:
! Test failures.
Execution halted- ERROR10 OK, 3 ERRORNow
- ERROR12 OK, 1 ERROR2026-09-04
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
- OK14 OK2026-03-10
Documentation
- Help pages
- 36 (4 internal)includes a package overview page
- Examples that run
- 40%12 run in a plain check · 14 only when donttest examples are enabled (R CMD check --as-cran) · 4 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/openpharma/rbmiutils on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-02-16 · The repository has a site deploy workflow
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-01-24Named in .Rbuildignore: .claudeCommits: 5 by its own account · at least 7 crediting it in the message
- Claude CodePull requests: 2 from outside contributors, first on 2026-01-25, 2 from forks
- Claude Sonnet 4.54 commits · Jan 2026
- Claude Opus 4.53 commits · Jan 2026
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.3.0Latest2026-02-16 · current release · diff ↗ ·
added 18 exports
combine_results, create_impid, describe_draws, describe_imputation, efficacy_table, expand_imputed_data, extract_lsm, extract_trt_effects, format_estimate, format_pvalue, format_results, format_results_table, plot_forest, pool_to_ard, prepare_data_ice, reduce_imputed_data, summarise_missingness, validate_data - unarchivedReturned to CRAN2026-01-24
- 0.1.82026-01-24 · diff ↗
- archivedRemoved from CRAN2025-11-19requires archived package 'rbmi'
- 0.1.62025-09-13 · diff ↗
- 0.1.42025-05-23
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-05-23
- Total releases
- 4 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1
- Bundled data
- 63 KB / 2 files
- Download size
- 3.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rbmiUtils")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-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.