fixed int option and quoting of R command