try_parse: Wrapper to the tryCatch version to be used for the parsing...

View source: R/parse.R

try_parseR Documentation

Wrapper to the tryCatch version to be used for the parsing function

Description

This simple wrapper returns an empty tibble on error and returns a custom warning message.

Usage

try_parse(expr, error_message, ...)

Arguments

expr

expression; expression to be evaluated for errors

error_message

character; character string to be displayed as a warning on error

...

extra parameters to be passed to the tryCatch() function.

Value

evaluated expression on success or empty tibble on error


ARawles/BMRSr documentation built on Feb. 1, 2023, 12:11 p.m.