Let’s assume that we have command X which can be executed in shell and return some result in stdout and stderr. Is it possible to do this from R or/and Matlab? And if yes, how can the result of command be handled?
Let’s assume that we have command X which can be executed in shell and
Share
you can use the system() command to execute shellscripts, system-commands, etc in R
it’s documented at
http://cran.r-project.org/doc/manuals/R-lang.html#System-and-foreign-language-interfaces