.parquet files as
well as .sas7bdat files. The new read_adam() picks the reader from the
file extension and converts blank strings to NA for both. glimpse_study()
and simulate_study() use it, so a config path can point to either format,
and generate_study_config() now also picks up ad*.parquet files. arrow
is a new dependency.Per-PARAMCD stratified BDS simulation. glimpse_bds()/simulate_bds()
now simulate the CDISC value columns conditional on PARAMCD rather than
pooling them across all parameters. Stratification is applied automatically
to AVAL, AVALC, toxicity grades (*TOXGR/*TOXGRN) and value categories
(AVALCATn/AVALCAnN); columns named in flag_cols are never stratified.
Previously every value column was drawn from one global distribution, so a
parameter's scale and codelist were lost (e.g. a relative-dose-intensity
percentage blended with a cumulative dose in mg, and per-parameter category
schemes leaked across parameters). A missing (NA) PARAMCD is treated as a
stratum in its own right. Stratification applies to BDS only; glimpse_tte()
is unchanged.
New summary_stratified class. glimpse_bds() stores one child summary
per stratum in a summary_stratified object, with a matching simulate()
method that draws each row from its own stratum's summary.
install.packages("synadam")),
keeping the GitHub install as the development version.check-added-large-files
(2 MB cap, --enforce-all) and detect-private-key from
pre-commit/pre-commit-hooks (v6.0.0), and codespell (v2.4.2) for
spell-checking. codespell runs with --write-changes and an
--ignore-words-list for domain terms (acn, ths); renv.lock and
release_github.sh are excluded to avoid false positives on generated
content and shell identifiers.codespell, in NEWS.md and a comment
in R/glimpse_utils.R.generate_study_config() writing unparsable YAML on Windows. Paths were
emitted as double-quoted scalars, so backslash sequences in Windows paths
(e.g. C:\Users\...) were interpreted as YAML escapes and simulate_study()
failed to read the config. Paths are now single-quoted, which passes
backslashes through verbatim..github/workflows/pkgdown.yaml) that builds the documentation site and deploys it to the gh-pages branch, and set the site url in _pkgdown.yml..github/workflows/rhub.yaml) for multi-platform CRAN checks, dispatched via rhub::rhub_check().glimpse_study() and simulate_study_from_summary(), allowing the glimpse (which needs the real .sas7bdat files) to run independently from simulation.generate_study_config() (also defaulting to 123)..assert_required_id_cols() to safeguard against ID leakage. It now errors if USUBJID/SUBJID are present in the data but missing from id_cols, ensuring subject IDs are regenerated synthetically rather than value-sampled from real data.generate_study_config() to take a required output_dir (with an optional config_yaml_name), writing the config into that directory alongside where synthetic data will be saved.synadam::/synadam::: syntax to avoid the CRAN self-::: NOTE.@examples across the exported glimpse_*/simulate_* functions. Introduce a shared man-roxygen/setup_adam_datasets.R template that stages bundled fixtures.LICENSE.md and switch LICENSE to the YEAR/COPYRIGHT HOLDER format, raise the minimum R version to 4.1.0 (native pipe), and extend .Rbuildignore.paramcd_filter argument.