CTAN Comprehensive TeX Archive Network

CTAN update: StatRep

Datum: 30. April 2026 18:35:07 MESZ
Martial Phélippé-Guinvarc'h submitted an update to the StatRep package. Version: 2.0 License: lppl1.3c Summary description: Displays SAS code and results of running the code Announcement text:
StatRep v2.0 is an updated and maintained version of the original package by Tim Arnold (SAS Institute). This release adds SAS server path resolution (SASmode=Server for SAS Studio and SAS OnDemand), UTF-8 encoding support with automatic detection, and new SAS macros (STATREPResults, STATREPAllResults, STATREPMACROVAR) for exporting SAS results directly into LaTeX documents as \def commands.
This package is located at https://mirrors.ctan.org/macros/latex/contrib/statrep More information is at https://ctan.org/pkg/statrep
Thanks for the upload. For the CTAN Team Manfred Lotz CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs .

StatRep – Displays SAS code and results of running the code

The StatRep package provides a system for creating reproducible research documents that combine markup with SAS code and output. It allows authors to write a single source document that simultaneously serves as the analysis script and the final report.

The package provides two environments (Datastep and Sascode) to display SAS code, and two tags (Listing and Graphic) to display SAS output. At compile time, StatRep automatically generates a SAS program that captures all requested output using the SAS Output Delivery System (ODS).

This updated version brings the following improvements over the original StatRep package:

  • Improved path resolution with the SASmode option: WorkStation mode uses the current directory as root, while Server mode dynamically resolves the path from the _SASPROGRAMFILE SAS macro variable, enabling use in SAS Studio and SAS OnDemand for Academics.
  • Full UTF-8 encoding support for SAS output files, with automatic detection from the inputenc package and fallback to UTF-8 by default.
  • New SAS macros (STATREPResults, STATREPAllResults, STATREPMACROVAR) for automatic export of SAS numeric results and macro variables directly into via \def commands, using predefined formatting for numbers, percentages, and dates

The package also includes the longfigure package for multi-page figures, a complete suite of SAS macros (statrep_macros.sas), and full documentation including a user's guide and a quickstart example.

This is an updated and maintained version of the original StatRep package developed by Tim Arnold and Warren F. Kuhfeld at SAS Institute Inc.

PaketStatRep
Version2.0
Copyright2014–2015 SAS Institute Inc.
2026 Martial Phélippé-Guinvarc'h
BetreuerMartial Phélippé-Guinvarc'h

Ankündigungen

mehr

Gästebuch Seiten-Struktur Impressum Autor kontaktieren