[R] how to run system command
Keith Jewell
k.jewell at campden.co.uk
Wed Mar 7 10:01:52 CET 2012
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.1252 LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C LC_TIME=English_United
Kingdom.1252
attached base packages:
[1] grDevices datasets splines graphics stats tcltk utils
tools methods base
other attached packages:
[1] CBRIutils_1.0 stringr_0.5 svSocket_0.9-51 TinnR_1.0.3
R2HTML_2.2 Hmisc_3.8-3 survival_2.36-10
loaded via a namespace (and not attached):
[1] cluster_1.14.1 grid_2.14.1 lattice_0.20-0 plyr_1.7.1
svMisc_0.9-63
> e <- system("date", intern=TRUE)
> e
[1] "Wed Mar 7 08:58:32 GMTST 2012"
----------------
What's your sessionInfo()?
KJ
"sagarnikam123" <sagarnikam123 at gmail.com> wrote in message
news:1331041713089-4449906.post at n4.nabble.com...
>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 archive at Nabble.com.
>
More information about the R-help
mailing list