changed choose.files() to file.choose() for linux compatability. still only seems to work from within Rstudio environment, not r run from terminal.
changed file.choose() to tk_choose.files() which is compatible with linux. tcltk library is required, but should ship with base r. Also included instructions for launching app from terminal in the README.md file.