[R] handling a cancelled file.choose()

2007-06-06 Thread Ben Tupper
Hello, I have a file reading function that prompts the user with a file dialog if a filename is not provided in the argument list. It is desirable to return gracefully if the user selects Cancel, but file.choose() throws an error instead of returning something like a character.

Re: [R] handling a cancelled file.choose()

2007-06-06 Thread Ben Tupper
Deepayan Sarkar wrote: On 6/6/07, Ben Tupper [EMAIL PROTECTED] wrote: Hello, I have a file reading function that prompts the user with a file dialog if a filename is not provided in the argument list. It is desirable to return gracefully if the user selects Cancel, but file.choose() throws