This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
ClinicoPathDescriptives is a hybrid R package that serves as both a standalone R package and a jamovi module for descriptive analysis in clinicopathological research. It provides 11 analysis functions covering descriptive statistics, visualizations, and specialized medical research tools.
Each analysis function follows a three-file pattern:
- .b.R
files: Business logic and implementation (e.g., tableone.b.R
)
- .h.R
files: jamovi interface definitions (auto-generated, don't edit manually)
- .a.yaml
files: jamovi GUI configuration in jamovi/
directory
R/
: R source code with .b.R
(implementation) and .h.R
(interface) filesjamovi/
: YAML configurations for jamovi GUI (11 analysis modules)data/
: Example datasets (histopathology.rda
, treatmentResponse.rda
)man/
: Auto-generated documentation (via roxygen2)tableone
: Generate "Table One" descriptive summariessummarydata
: Continuous variable summariesreportcat
: Categorical variable summariescrosstable
: Cross-tabulations with statistical testsalluvial
: Alluvial diagrams for categorical relationshipsagepyramid
: Age pyramid visualizationsbenford
: Benford's law analysis for data qualityvenn
: Venn diagrams and UpSet plotsvartree
: Variable tree summarieswaterfall
: Treatment response analysis (RECIST criteria)swimmerplot
: Patient timeline visualizations# Load package for testing
devtools::load_all()
# Generate documentation from roxygen2 comments
devtools::document()
# Run R CMD check
devtools::check()
# Build package
devtools::build()
# Build and install locally
devtools::install()
# Build vignettes
devtools::build_vignettes()
# Generate pkgdown website
pkgdown::build_site()
dplyr
, ggplot2
, tidyr
)tableone
, gtsummary
, arsenal
, finalfit
jmvcore
easyalluvial
, ggvenn
, DiagrammeR
No formal test suite exists. Testing is done through:
- devtools::check()
for R CMD check
- Manual testing in jamovi GUI for module functionality
- GitHub Actions CI/CD on multiple platforms
jamovi/
must be manually maintained0000.yaml
defines overall module structure and menu organizationAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.