postgresError {REmbeddedPostgres}R Documentation

Raise a Postgres error from R

Description

This function allows one to raise an error in Postgres from within an R function. These R functions are called by Postgres having been registered as procedural language functions.

Usage

postgresError(msg)

Arguments

msg a string that describes the error. This should not contain any formatting (i.e. C printf()-style) entries.

Value

The return value is unimportant as this function does not return. The Postgres engine will take over in error mode.

Author(s)

Duncan Temple Lang

References

http://www.omegahat.org/

Examples