Paulo E. Cardoso wrote:
I have a particular case where the program I'm calling needs a additional
instructions, to click a RUN button and set a output directory. Could these
options be controlled with system() function?
system() just calls the program as started from the operating system's
command line (or under Windows without an underlying shell). That
implies that it cannot press buttons, you can "only" specify command
line flags, if the program you are talking about accepts these ...
Uwe Ligges
____________
Paulo E. Cardoso
-----Mensagem original-----
De: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
Em nome de Paulo E. Cardoso
Enviada: quarta-feira, 8 de Julho de 2009 12:08
Para: r-help@r-project.org
Cc: r-h...@stat.math.ethz.ch
Assunto: Re: [R] system() how to make a program run a specific file
After all it's very easy:
system(paste('"C:\\Program Files
(x86)\\IrfanView\\i_view32.exe"','A:\\test.jpg'))
____________
Paulo E. Cardoso
-----Mensagem original-----
De: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
project.org]
Em nome de Paulo E. Cardoso
Enviada: quarta-feira, 8 de Julho de 2009 10:59
Para: r-help@r-project.org
Cc: r-h...@stat.math.ethz.ch
Assunto: [R] system() how to make a program run a specific file
I'd like to know how to call a program to run or open a specific
file.
something like this:
system('"C:\\Program Files (x86)\\IrfanView\\i_view32.exe"','-A:\\
teste.jpg') is not working.
any help will be appreciated
____________
Paulo E. Cardoso
[[alternative HTML version deleted]]
______________________________________________
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.
Checked by AVG - www.avg.com
Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date:
07/07/09 17:54:00
______________________________________________
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.
Checked by AVG - www.avg.com
Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date:
07/07/09 17:54:00
______________________________________________
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.
______________________________________________
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.