[Rd] Revision of shell.exec?

From: Brian Oney <zenlines_at_gmail.com>
Date: Wed, 14 Sep 2011 12:27:32 +0200


ink1">Hi List,
I hope this is correct list to propose function extensions, sorry if not. I am preparing for a (hopefully painless) migration to linux. As far as I am aware of, the function "shell.exec" only comes with the windows version. I think this is a handy little function and would like to see my scripts work when I migrate.

May I propose something (like the following)?

open.file <- function(file) {

     if(.Platform$OS.type=="windows") {shell.exec(file)} else {system(paste("open ",file))}
}

Or just a small addition to the shell.exec function and no new named function.
Hope the idea isn't received as "too stupid".

Cheers,
Brian



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 14 Sep 2011 - 11:35:09 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 14 Sep 2011 - 17:20:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive