Performs prechecks and returns error messages for wrong input. If x is a textual input, x is returned unprocessed. If x is a file, x is read with readLines() and returned.
Usage
preCheck(x)
Value
The original input, error messages, empty objects or the read file content with readLines().