Skip to content

Errors

ChunkLabelMissingError

Bases: ChunkParseError

Raised when an R fenced chunk is missing a required label.

ChunkNotFoundError

Bases: RSnapshotError

Raised when an expected R chunk label cannot be found.

ChunkParseError

Bases: RSnapshotError

Raised when parsing R chunks from a source file fails.

DuplicateChunkLabelError

Bases: ChunkParseError

Raised when a Python file contains duplicate R chunk labels.

RExecutionError

Bases: RSnapshotError

Raised when an R chunk execution fails.

RSnapshotError

Bases: Exception

Base exception for pytest-r-snapshot.

RscriptNotFoundError

Bases: RSnapshotError

Raised when the configured Rscript executable cannot be found.

SnapshotNameError

Bases: RSnapshotError

Raised when a snapshot name is invalid for use as a filename.

SnapshotNotFoundError

Bases: RSnapshotError

Raised when a snapshot file is missing in replay mode.

UnclosedChunkError

Bases: ChunkParseError

Raised when an R fenced chunk start fence has no matching end fence.