attempt (version 0.3.1)

discretly: discretly

Description

Prevent a funtion from printing message or warning

Usage

discretly(.f)

discreetly(.f)

Arguments

.f

the function to wrap

Value

an error if any, a warning if any, the result if any

Examples

Run this code
# NOT RUN {
discrete_mat <- discretly(matrix)
discrete_mat(1:3, 2)
# }

Run the code above in your browser using DataLab