← Back to all sparks
S

stRoke

INFRA · APIS
Velocity0.0

Clinical Stroke Research

Split itself in two, keeping the stroke-trial functions and exporting the rest

clinical-trialsstroke-researchquestionnaire-scoringpackage-splitredcap
Current state
stRoke is now deliberately narrow: functions for handling clinical stroke trial data, mostly questionnaire scoring such as pase_calc() for PASE and mfi_calc() for MFI domain scores. It reached that state by subtraction — the 24.10.1 release moved eight general-purpose helpers out to a separate package, project.aid, and stated the change of focus in the notes. The most recent release, 25.9.1, is an eighty-character note about accommodating upcoming ggplot2 changes.
Where it's heading
The package uses calendar versioning and its history is one of scope being repeatedly redrawn: ds2dd() went to REDCapCAST in 2023, then the general data and project management helpers went to project.aid in 2024. What remains is domain-specific and slow-moving, and the past eleven months produced a single compatibility release. The maintainer's visible effort has moved to the sibling packages.
Prediction
Expect further questionnaire scoring functions if the maintainer's own trials need them and compatibility releases otherwise; on the pattern set in 24.10.1, more of the remaining general-purpose functions could still migrate to project.aid.

Recent moves

  1. 10mo ago

    Compatibility update for upcoming ggplot2 changes

    A single-sentence release preparing for changes in ggplot2. The only activity in eleven months, consistent with a package whose scope was settled a year ago.

    View source ↗
  2. 1y ago

    Scope narrowed to stroke trials; eight helpers moved to project.aid

    ⚡ SPARK

    The release that set the package's current identity, moving str_extract(), add_padding(), age_calc(), chunks_of_n(), contrast_text(), files_filter(), quantile_cut() and write_ical() out to project.aid and keeping only clinical trial functions. It also added mfi_calc() for MFI questionnaire domain scores, an example of what now qualifies to stay.

    View source ↗
  3. 2y ago

    Chunking, string extraction and padding helpers added

    Adds chunks_of_n(), n_chunks(), str_extract() and add_padding(), and moves ds2dd() out to REDCapCAST. In hindsight this is the peak of the package's general-purpose phase — most of these functions left again thirteen months later.

    View source ↗
  4. 3y ago

    Fix for ds2dd() after first practical use

    A one-line bug fix found on first real-world use. Notable only because ds2dd() was moved out to REDCapCAST in the release that followed.

    View source ↗
  5. 3y ago

    PASE questionnaire scoring with data-quality checks

    Adds pase_calc() for PASE scores with sub-scores and completeness checks, plus non-identifiable sample data, and documents where the scoring manual and Washburn et al. (1999) disagree on counting sitting work. This is the template the package settled on.

    View source ↗
  6. 3y ago

    First release: color_plot() built on contrast_text()

    The first release, offering a single plotting helper adapted from scales::show_col() plus the contrast_text() function behind it. Both have since moved to project.aid, so nothing from this release remains in the package.

    View source ↗