Learn R Programming

gradeR (version 2.0.1)

runStudentScript: 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)

Value

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

Arguments

script_path

the full path to the student's R script

suppress_warnings

logical; if TRUE, warnings are suppressed