[R] JGR and system()

Liviu Andronic landronimirc at gmail.com
Mon Mar 16 14:50:18 CET 2009


Dear all,
JGR seems unable to report the results of system() commands.
In a command-line R session:
> system("pwd")
/home/liviu
> system("acpitool")
  AC adapter     : on-line
  Thermal zone 1 : ok, 67 C
> system("asdf")
sh: asdf: command not found

In JGR:
> system("pwd")
> system("ls -F")
> system("acpitool")
> system("asdf")


Would this JGR, or my system?
Liviu


System info:
> sessionInfo()
R version 2.8.1 (2008-12-22)
i686-pc-linux-gnu

locale:
LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB.UTF-8;LC_COLLATE=en_GB.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_GB.UTF-8;LC_PAPER=en_GB.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_GB.UTF-8;LC_IDENTIFICATION=C

attached base packages:
[1] datasets  utils     stats     graphics  grDevices methods   base

other attached packages:
 [1] JGR_1.6-3     iplots_1.1-3  JavaGD_0.5-2  rJava_0.6-2   PolynomF_0.93
 [6] financial_0.1 WhatIf_1.5-4  lpSolve_5.6.4 Zelig_3.4-3   boot_1.2-35
[11] MASS_7.2-45

liviu at localhost ~ $ uname -a
Linux localhost 2.6.22-gentoo-r5-0.5 #3 Sat Mar 14 12:22:37 CET 2009
i686 Intel(R) Pentium(R) M processor 1.60GHz GenuineIntel GNU/Linux


-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail




More information about the R-help mailing list