t report PATH's contents. You can
> look at it with
> strsplit(Sys.getenv("PATH"), .Platform$path.sep)[[1]]
>
> Bill Dunlap
>
>> -Original Message-
>> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
>> On
>>
r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf Of Keith Jewell
> Sent: Wednesday, March 07, 2012 1:02 AM
> To: r-h...@stat.math.ethz.ch
> Subject: Re: [R] how to run system command
>
> Works for me:
> --
> &g
Works for me:
--
> sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United
Kingdom.1252LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C
[1] "Tue 03/06/2012 "
>
> Bill Dunlap
> Spotfire, TIBCO Software
> wdunlap tibco.com
>
>> -Original Message-
>> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
>> Behalf Of sagarnikam123
>> Sent: Tuesday, March 06
nt: Tuesday, March 06, 2012 5:49 AM
> To: r-help@r-project.org
> Subject: Re: [R] how to run system command
>
> i used it on windows system, but giving error like
>
> > e <- system("date", intern=TRUE)
> Error in system("date", intern = TRUE) : 'd
On Tue, Mar 6, 2012 at 8:48 AM, sagarnikam123 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 syste
i used it on windows system, but giving error like
> e <- system("date", intern=TRUE)
Error in system("date", intern = TRUE) : 'date' not found
--
View this message in context:
http://r.789695.n4.nabble.com/how-to-run-system-command-tp4449597p4449906.html
Sent from the R help mailing list archi
Those are error messages from the shell, not "real values" for what
you think you are doing. Are you looking for the getwd() and
Sys.date() functions instead?
Michael
On Tue, Mar 6, 2012 at 6:56 AM, sagarnikam123 wrote:
> i run like ,but it giving other than what i expect
> i also want to captur
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 wrote:
> i run like ,but it giving other than what i expect
> i also want to captur
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
--
View this message in context:
http://r.789695.n4.nabble.com/
10 matches
Mail list logo