try_default {ggplot2}R Documentation

Try, with default in case of error

Description

try_default wraps try so that it returns a default value in the case of error.

Usage

try_default(expr, default = NA)

Arguments

expr expression to try
default default value in case of error

Details

tryNULL provides a useful special case when dealing with lists.

Author(s)

Hadley Wickham <h.wickham@gmail.com>

See Also

tryapply

Examples






[Package ggplot2 version 0.6 Index]