[R-gui] system() fails in JGR
Ian Fellows
ifellows at ucsd.edu
Thu Mar 19 17:50:05 CET 2009
Hi Liviu,
I can confirm the problem on windows and mac, though I don't have a
solution. At least in windows it might have something to do with the
if (CharacterMode == RGui)
statement in sys-win32.c do_system function. But I'm not familiar enough
with the internals to solve this.
I'm forwarding this a mailing list that deals with java <-> R.
Cheers,
Ian
-----Original Message-----
From: r-sig-gui-bounces at stat.math.ethz.ch
[mailto:r-sig-gui-bounces at stat.math.ethz.ch] On Behalf Of Liviu Andronic
Sent: Thursday, March 19, 2009 1:29 AM
To: R-SIG-GUI Mailing List
Subject: [R-gui] system() fails in JGR
Dear all,
I initially sent this e-mail to r-help, with no luck, so I'm forwarding
here.
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 configuration at fault?
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_ADD
RESS=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
_______________________________________________
R-SIG-GUI mailing list
R-SIG-GUI at stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-gui
More information about the R-SIG-GUI
mailing list