[R] Running an R scrit from Automator

2013-09-13 Thread Patrick Schorderet
I'm trying to write an Automator script for people who don't want to run scripts from the R console. The workflow would ideally look like this: - Ask user to enter different parameters (I was able to do this part) - Run an R script using the paramters I guess I need to run R via a shell script,

[R] Reading .eps file created in Illustrator

2010-07-30 Thread Patrick Schorderet
Hello, I am trying to import an .eps file created with Adobe Illustrator and plot it in a Quartz window (I am using R 2.11.1 GUI 1.34 Leopard build 32-bit (5589) on MacOSx.5.8). I thought of using the PostScriptTrace() to convert my .eps file to RGML, and then use readPicture to plot the

[R] Newbie in R: Reading .txt files and storing the 'numbers' in a vector

2009-07-29 Thread Patrick Schorderet
Hello everybody, I'm a newbie in R and just went through an introduction class recently. Here's my problem. I have 2 text files (.txt) with plain numbers ('doubles' for those who know c++) ordered into 2 columns as below: coordinate1 value1 coordinate2 value2