Displaying 1 result from an estimated 1 matches for "missingfileok".
Did you mean:
missingfile
2008 Sep 09
0
should system.file(package="no such pkg", "no such file") warn or abort?
...quot; and open = "w+b": using the former
I think it would help if system.file(), by default, threw an error
in this case. It could have an argument to suppress the error
if the caller desires. I suppose it could just have a warning.
I've attached a prototype, with the new argument missingFileOK=FALSE.
(I don't like the name, but didn't take the time to come up with
something better.)
> read.table(system.file(package="no such pkg","examples","data.txt"))
Error in system.file(package = "no such pkg", "examples", "data....