Description Usage Arguments Value Examples
View source: R/TooManyCellsR.R
This function will fail gracefully instead of stopping the program with an error.
1 |
f |
The function to use. |
file |
The input file to be read. |
The imported data frame or NULL if an error occurred.
1 2 3 4 5 | input <- system.file("extdata", "mat.csv", package="TooManyCellsR")
fail = tryFunc(read.csv, "fail.csv")
fail
success = tryFunc(read.csv, input)
success
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.