[R] system() how to make a program run a specific file

Paulo E. Cardoso pecardoso at netcabo.pt
Wed Jul 8 13:08:07 CEST 2009


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-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
> Em nome de Paulo E. Cardoso
> Enviada: quarta-feira, 8 de Julho de 2009 10:59
> Para: r-help at r-project.org
> Cc: r-help at 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 at 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




More information about the R-help mailing list