[Swift-user] swift and R

Mihael Hategan hategan at mcs.anl.gov
Mon Sep 21 13:07:03 CDT 2009


On Sun, 2009-09-20 at 22:17 -0500, Marcin Hitczenko wrote:

> However, I run into two problems. Swift won't run because it complains
> that the file to which I want to write the data does not exist (which is
> true, but I would like to not have to create these files beforehand).

I suspect swift complains that the R invocation did not generate the
file it should have. Can you paste the exact error message?

> However, even when I create the (empty) file, nothing gets written to it.
> I check the R log file and it seems that the data is written to something,
> but when I check the file I created, it is still empty.
> 
> The method that works is for me to just feed the datafile to R via swift
> and within the R program itself declare the location to write to. Like I
> said before, I was told this was not ideal, but I am not sure how to fix
> the problems described above?
> 
> Also, I noticed that a directory forms during the running of the swift
> code,

More than one directory is created during a swift run. Which one are you
referring to (i.e. paste the exact pathname)?

Mihael




More information about the Swift-user mailing list