To get the tech specs out of the way I am running Rstudio(R 2.13.0) on a
ubuntu box. I am trying to use information returned from the system command
within an Rscript. System() passes commands to my ubuntu prompt and returns
the normal messages.
For example.

> system("date")Thu Jun 30 21:48:20 UTC 2011

However when i try to store this return(something i need to do for my
purposes) nothing is stored(or at least not what shown on the R prompt)

> store<-system("date")Thu Jun 30 21:49:27 UTC 2011> store[1] 0

How do i capture the return of system()?

Thanks R-world,

John Dennison

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to