runStudentScript: Run a student script in an isolated environment.

View source: R/grade.r

runStudentScriptR Documentation

Run a student script in an isolated environment.

Description

Internal helper function that runs a student's R script in a separate process with its own environment to avoid contaminating the current session.

Usage

runStudentScript(script_path, suppress_warnings = TRUE)

Arguments

script_path

the full path to the student's R script

suppress_warnings

logical; if TRUE, warnings are suppressed

Value

The environment created by the script, or NULL if execution failed


gradeR documentation built on Jan. 20, 2026, 1:06 a.m.