Skip to content

StatsDirect 5.3.16

Choose a tag to compare

@iain-buchan iain-buchan released this 21 Nov 16:52
· 44 commits to main since this release
ebfea45

StatsDirect 5.3.16 (21 November 2026)

Added

  • The worksheet toolbar has Analyse, R and R+.
    • Analyse searches the Analysis, Data and Graphics commands; their results go to the report you last selected, or to a new report when none is open.
    • R opens StatsDirect's own R session, and R+ opens R's own window.
    • Both can copy the entire worksheet or the selected cells into R as worksheet_data, as a data frame or a list of vectors, with the first row as column names and optional R-friendly names.
  • Worksheet data arrives in R by rules shared with StatsDirect for Mac:
    • blank cells, StatsDirect's missing-value marker * and the other markers, and spreadsheet errors are NA;
    • numbers arrive exactly;
    • dates without a time of day are R dates;
    • formulas send their current results, and a workbook set to calculate manually is calculated first.
  • The R script window's toolbar has R+, to continue the script in R or RStudio. Each use saves a new file in StatsDirect's R folder, named after the window and the time, so a script handed to R earlier, and the worksheet data beside it, are never replaced. A script holding worksheet data keeps the data in a file beside it when it is saved (analysis.R has analysis.worksheet-data.csv, named in the script's first line). Each R window works on its own copy of its data, so nothing written beside a script later, by another script saved under the same name or by another program, changes what the window runs, saves or hands to R, and StatsDirect asks before saving over a data file that holds other data. A saved script whose data file is missing, or held open by another program, asks you to put the file back or close it before the script opens.

Changed

  • StatsDirect reopens at its saved position and size, and hides its window as soon as a close is accepted.
  • R's own window, when opened from the R script window, runs your own R start-up file first, as R does.

Fixed

  • R processes started from R's own window, opened from the R script window, no longer run the script again. Two such windows opened in quick succession each run their own script, and a script runs whatever R's language setting.
  • When closing StatsDirect is stopped by one window (for example by Cancel at its question about saving), the windows asked before it stay open, with their tabs. Before, a clean workbook asked earlier could disappear.
  • Close and update starts the installer when a report or an R window is open. StatsDirect closed after the report's question, but the update did not start, so StatsDirect stayed on the earlier version.