Skip to content

EnTraineR

1.0.0Package record

Enhanced Teaching Assistant (AI) for Statistical Analysis

0packages depend
1.9Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

An assistant built on large language models that helps interpret statistical model outputs in R by generating concise, audience-specific explanations.

Changes in 1.0.0

_First major release._

This version consolidates the API, improves robustness for **FactoMineR** outputs, and harmonizes audience-tailored prompts across all functions.

Major Changes & New Features

Unified Architecture (“Hub & Spoke”)

All trainer functions now rely on a centralized core (trainer_core.R) for consistent **prompt building**, **audience profiling**, **output capture**, and **regex/quoting helpers**. Any update to the core instantly benefits all trainers.

New Trainers

  • trainer_t_test() — Interpret Student’s t-tests (one-sample, two-sample, paired, Welch) with audience-aware guidance on **p-values vs confidence intervals**.
  • trainer_cor_test() — Interpret correlation tests (**Pearson**, **Spearman**, **Kendall**) with clear distinction between **statistical significance** and **practical magnitude**.
  • trainer_var_test() — Interpret F-tests for equality of variances.

Robust ANOVA & Linear Model Support

  • trainer_AovSum() and trainer_LinearModel() use **centralized heuristics** (trainer_core_extract_tables_heuristic) to reliably extract **F-test** and **T-test** tables even when standard headers are missing (common with capture.output).
  • **Strict, space-safe T-table filtering**: factor names with spaces or special characters are handled via core quoting (trainer_core_quote) and detection helpers.
Show all changes in 1.0.0Hide the rest of the changes in 1.0.0

Gemini Integration

  • gemini_generate() enables direct interaction with Google’s **Gemini** API.
  • Includes **automatic retry with exponential backoff** and clear error surfacing (finish reasons, safety blocks).
  • Adds compile_to = "html" and compile_to = "docx" to directly **render LLM responses into reports**.

Improvements

Pedagogy & Interpretability

  • **PCA/MCA**: Prompts explicitly guide interpretation of **correlation signs (PCA)** and **category positions (MCA)** to prevent hallucinations.
  • **ANOVA**: “How-to-read” blocks clarify **deviation coding (sum-to-zero)**; the **Intercept is the Grand Mean**.
  • **t-test**: Clear separation between **Inference** (p-value) and **Magnitude** (effect size/mean difference) in prompts.

Developer Experience

  • Internal helpers for **regex, capture, quoting** centralized for DRY code.
  • Improved error messages when input objects are NULL or of the wrong class.
  • Audience sections standardized (BEGINNER/APPLIED/ADVANCED) with consistent limits (e.g., **Takeaway ≤ 5 bullets**).

Bug Fixes

  • Fixed duplication of extract_section/header-loss issues by using the shared core heuristic and single re-attachment of T-table headers after filtering.
  • Fixed potential regex failures with factor names containing spaces in trainer_AovSum.
  • Removed unnecessary stringr dependency in examples.

---

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.4 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.0
READMEYes · 489 wordsVignettesNoNEWSYes · 100% structured · mentions 1.0.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
25
Examples that run
86%19 run in a plain check (2 of them under a condition) · 3 never run
Exported functions with examples
86%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

1.9K
CRAN downloads in the past year
Rank #21,838 · ~5/day · ~162/mo
Daily download trend is not available in this view yet.
26230 days
59590 days
1.9K1 year
Compare downloads with other packages →
Also on53 r2u13 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-06-16
Responsiveness
not measured
PracticesBeta

3 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/sebastien-le/entrainer on 2026-10-11.

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing EnTraineR adds 21 packages (13 with compiled code, 7.9 MB of source tarballs). Heaviest: openssl 1.1 MB, jsonlite 1.0 MB, vctrs 1.0 MB.

Depends (1)
R >= 4.1.0
Imports (2)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 1.0.0 (2026)
Code and documentation assisted by ChatGPT.
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.0Latest
    2026-01-17 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-01-17
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
2.0 KB / 3 files
Download size
1.5 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("EnTraineR")
Lê, S. (2026). EnTraineR: Enhanced Teaching Assistant (AI) for Statistical Analysis (Version 1.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.EnTraineR

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for EnTraineR version 1.0.0 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy