Package: rfacts 0.2.1.9000

William Michael Landau

rfacts: R Interface to 'FACTS' on Unix-Like Systems

The 'rfacts' package is an R interface to the Fixed and Adaptive Clinical Trial Simulator ('FACTS') on Unix-like systems. It programmatically invokes 'FACTS' to run clinical trial simulations, and it aggregates simulation output data into tidy data frames. These capabilities provide end-to-end automation for large-scale simulation pipelines, and they enhance computational reproducibility. For more information on 'FACTS' itself, please visit <https://www.berryconsultants.com/software/>.

Authors:William Michael Landau [aut, cre], Eli Lilly and Company [cph]

rfacts_0.2.1.9000.tar.gz
rfacts_0.2.1.9000.zip(r-4.7)rfacts_0.2.1.9000.zip(r-4.6)rfacts_0.2.1.9000.zip(r-4.5)
rfacts_0.2.1.9000.tgz(r-4.6-any)rfacts_0.2.1.9000.tgz(r-4.5-any)
rfacts_0.2.1.9000.tar.gz(r-4.7-any)rfacts_0.2.1.9000.tar.gz(r-4.6-any)
rfacts_0.2.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
rfacts/json (API)
NEWS

# Install 'rfacts' in R:
install.packages('rfacts', repos = c('https://elilillyco.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/elilillyco/rfacts/issues

Pkgdown/docs site:https://elilillyco.github.io

On CRAN:

Conda:

clinical-trialsfactssimulation

5.08 score 8 stars 10 scripts 188 downloads 41 exports 13 dependencies

Last updated from:6b7c160a41. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK128
source / vignettesOK176
linux-release-x86_64OK129
macos-release-arm64OK186
macos-oldrel-arm64OK179
windows-develOK85
windows-releaseOK79
windows-oldrelOK83
wasm-releaseOK106

Exports:get_csv_filesget_facts_engineget_facts_file_exampleget_facts_scenariosget_facts_versionget_facts_versionsget_param_dirsget_param_filesoverwrite_csv_filesprep_param_filesread_cohortsread_csv_specialread_factsread_master_mcmcread_master_patientsread_master_weeksread_mcmcread_patientsread_s1_mcmcread_s1_patientsread_s1_weeksread_s2_mcmcread_s2_patientsread_s2_weeksread_simulationsread_weeksreset_rfacts_pathsrfacts_pathsrfacts_sitreprun_enginerun_engine_aipf_continrun_engine_aipf_dichotrun_engine_aipf_tterun_engine_continrun_engine_crmrun_engine_dichotrun_engine_multeprun_engine_tterun_factsrun_flfllwrite_facts

Dependencies:clidigestfsgluelifecyclemagrittrpillarpkgconfigrlangtibbleutf8vctrsxml2

Generating FACTS files

Rendered fromgenerate.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2021-01-07
Started: 2020-12-02

System configuration

Rendered fromconfig.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2020-10-13
Started: 2020-09-17

Trial execution mode

Rendered fromte.Rmdusingknitr::rmarkdownon May 18 2026.

Last update: 2020-10-07
Started: 2020-09-17

Readme and manuals

Help Manual

Help pageTopics
rfacts: interface to FACTS on Unix-like systemsrfacts-package rfacts
Engine-specific trial simulation functionsfacts_engines run_engine_aipf_contin run_engine_aipf_dichot run_engine_aipf_tte run_engine_contin run_engine_crm run_engine_dichot run_engine_multep run_engine_tte
Read trial simulation resultsfacts_results read_cohorts read_csv_special read_master_mcmc read_master_patients read_master_weeks read_mcmc read_patients read_s1_mcmc read_s1_patients read_s1_weeks read_s2_mcmc read_s2_patients read_s2_weeks read_simulations read_weeks
List FACTS-generated CSV filesget_csv_files
Get the FACTS engine function matching your FACTS fileget_facts_engine
Locate an example FACTS fileget_facts_file_example
List the names of simulation scenariosget_facts_scenarios
Get FACTS version matching your FACTS fileget_facts_version
List supported FACTS versionsget_facts_versions
List the directories containing param filesget_param_dirs
List the paths to the param filesget_param_files
Overwrite FACTS CSV output filesoverwrite_csv_files
Arrange the param files for the engines ahead of time.prep_param_files
Read parts of FACTS files.read_facts
Reset system dependency inforeset_rfacts_paths
Read paths to rfacts system dependenciesrfacts_paths
Check configuration of system dependenciesrfacts_sitrep
Run trial simulationsrun_engine
Run FACTSrun_facts
Generate param files to prepare for trial simulationsrun_flfll
Write modified FACTS files.write_facts