tryFunc {TooManyCellsR} | R Documentation |
Different error for importing data.
Description
This function will fail gracefully instead of stopping the program with an error.
Usage
tryFunc(f, file)
Arguments
f |
The function to use. |
file |
The input file to be read. |
Value
The imported data frame or NULL if an error occurred.
Examples
input <- system.file("extdata", "mat.csv", package="TooManyCellsR")
fail = tryFunc(read.csv, "fail.csv")
fail
success = tryFunc(read.csv, input)
success
[Package TooManyCellsR version 0.1.1.0 Index]