Changelog
Source:NEWS.md
synadam 0.6.0
New features
-
Parquet input. ADaM datasets can now be read from
.parquetfiles as well as.sas7bdatfiles. The newread_adam()picks the reader from the file extension and converts blank strings toNAfor both.glimpse_study()andsimulate_study()use it, so a configpathcan point to either format, andgenerate_study_config()now also picks upad*.parquetfiles.arrowis a new dependency.
synadam 0.5.0
New features
Per-PARAMCD stratified BDS simulation.
glimpse_bds()/simulate_bds()now simulate the CDISC value columns conditional onPARAMCDrather than pooling them across all parameters. Stratification is applied automatically toAVAL,AVALC, toxicity grades (*TOXGR/*TOXGRN) and value categories (AVALCATn/AVALCAnN); columns named inflag_colsare 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)PARAMCDis treated as a stratum in its own right. Stratification applies to BDS only;glimpse_tte()is unchanged.New
summary_stratifiedclass.glimpse_bds()stores one child summary per stratum in asummary_stratifiedobject, with a matchingsimulate()method that draws each row from its own stratum’s summary.
synadam 0.3.4
Documentation
- Add CRAN installation instructions to the README (
install.packages("synadam")), keeping the GitHub install as the development version. - Add a documentation badge and link to the pkgdown site (https://opensource.nibr.com/synadam/) in the README.
synadam 0.3.3
CRAN release: 2026-07-22
Infrastructure
- Add pre-commit hooks for repository hygiene:
check-added-large-files(2 MB cap,--enforce-all) anddetect-private-keyfrompre-commit/pre-commit-hooks(v6.0.0), andcodespell(v2.4.2) for spell-checking.codespellruns with--write-changesand an--ignore-words-listfor domain terms (acn,ths);renv.lockandrelease_github.share excluded to avoid false positives on generated content and shell identifiers. - Fix two spelling typos surfaced by
codespell, inNEWS.mdand a comment inR/glimpse_utils.R.
synadam 0.3.2
Bug fixes
- Fix
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 andsimulate_study()failed to read the config. Paths are now single-quoted, which passes backslashes through verbatim.
synadam 0.3.1
Infrastructure
- Add a pkgdown GitHub Actions workflow (
.github/workflows/pkgdown.yaml) that builds the documentation site and deploys it to thegh-pagesbranch, and set the siteurlin_pkgdown.yml. - Add an R-hub v2 GitHub Actions workflow (
.github/workflows/rhub.yaml) for multi-platform CRAN checks, dispatched viarhub::rhub_check().
synadam 0.3.0
Summary
- Split the study workflow into a glimpse phase and a simulate phase: add
glimpse_study()andsimulate_study_from_summary(), allowing the glimpse (which needs the real.sas7bdatfiles) to run independently from simulation. - Fall back to a default seed of 123 when a seed is not set in the study config, and make the seed argument optional in
generate_study_config()(also defaulting to 123). - Add
.assert_required_id_cols()to safeguard against ID leakage. It now errors ifUSUBJID/SUBJIDare present in the data but missing fromid_cols, ensuring subject IDs are regenerated synthetically rather than value-sampled from real data. - Refactor
generate_study_config()to take a requiredoutput_dir(with an optionalconfig_yaml_name), writing the config into that directory alongside where synthetic data will be saved. - Drop the
synadam::/synadam:::syntax to avoid the CRAN self-:::NOTE. - Add runnable roxygen
@examplesacross the exportedglimpse_*/simulate_*functions. Introduce a sharedman-roxygen/setup_adam_datasets.Rtemplate that stages bundled fixtures. - Relocate the MIT license text to
LICENSE.mdand switchLICENSEto theYEAR/COPYRIGHT HOLDERformat, raise the minimum R version to 4.1.0 (native pipe), and extend.Rbuildignore.