On Tue, Mar 6, 2012 at 8:48 AM, sagarnikam123 <sagarnikam...@gmail.com> wrote:
> i used it on windows system, but giving error like
>
>> e <- system("date", intern=TRUE)
> Error in system("date", intern = TRUE) : 'date' not found

If you type date at a windows command line does it work?

You can't use system() to run system commands that don't
exist on your system. I don't run windows, and have no
idea what the command/syntax to obtain the date might be.

It was already suggested you use Sys.Date() instead, and
only use system() for system commands not duplicated in R.

Sarah-


-- 
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