Please read the help for system, paying particular attention to the
intern argument.

> e <- system("date", intern=TRUE)
> e
[1] "Tue Mar  6 08:33:48 EST 2012"


Sarah

On Tue, Mar 6, 2012 at 6:56 AM, sagarnikam123 <sagarnikam...@gmail.com> wrote:
> i run like ,but it giving other than what i expect
> i also want to capture output & print it
>
>> e<-system("date")
>> e
> [1] 127
>
> ----------------------------------------------------------------------------
>> e<-system("dir")
>> e
> [1] 127
>

-- 
Sarah Goslee
http://www.functionaldiversity.org

______________________________________________
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