Skip to content
Prev 5175 / 21307 Next

[Bioc-devel] Problem running Perl script with R-devel

Hi Dan,

tempdir() is on the C: drive.

I will try outputting the system() result as a warning.  For some reason, I thought this should have already appeared in the warning() thread, and I was wondering why I didn't see any more specific details.  Once the version that can be installed via biocLite() is updated, I'll see if that provides any additional information.  If I can't get any useful feedback about the specific problem in Perl by updating my code, I'll send another reply on this thread.

Thanks,
Charles

-----Original Message-----
From: Dan Tenenbaum [mailto:dtenenba at fhcrc.org] 
Sent: Monday, January 27, 2014 12:41 PM
To: Warden, Charles
Cc: bioc-devel at r-project.org
Subject: Re: [Bioc-devel] Problem running Perl script with R-devel



----- Original Message -----
What happens if you just run the command above in isolation? 

Is T: a networked drive?
what does tempdir() display? Is it also a directory on drive T:? 
If so, try using a directory on a physical (local) drive as your output directory.

I'm not sure if the error code 2 that you are seeing is from perl or from R, but the googles (http://www.perlmonks.org/?node_id=274896) suggests that error 2 is "no such file or directory" so it could be a problem with one of the parameters you're passing to perl. 

BTW, I tried the following (forgive the bad line wrapping, that's what happens when I paste from windows into my mac):
[1] "E:/biocbld/bbs-2.14-bioc/R/library/COHCAP/Perl/create_wig_files.pl"
[1] "perl E:/biocbld/bbs-2.14-bioc/R/library/COHCAP/Perl/create_wig_files.pl C:\\Users\\BI
OCBU~1\\AppData\\Local\\Temp\\2\\Rtmp4KS893/temp.txt C:\\Users\\BIOCBU~1\\AppData\\Local\\
Temp\\2\\Rtmp4KS893"
Uncaught exception from user code:
        Could not open C:\Users\BIOCBU~1\AppData\Local\Temp\2\Rtmp4KS893/temp.txt! at E:/b
iocbld/bbs-2.14-bioc/R/library/COHCAP/Perl/create_wig_files.pl line 35.
 at E:/biocbld/bbs-2.14-bioc/R/library/COHCAP/Perl/create_wig_files.pl line 35
character(0)
attr(,"status")
[1] 2
Warning message:
running command 'perl E:/biocbld/bbs-2.14-bioc/R/library/COHCAP/Perl/create_wig_files.pl C
:\Users\BIOCBU~1\AppData\Local\Temp\2\Rtmp4KS893/temp.txt C:\Users\BIOCBU~1\AppData\Local\
Temp\2\Rtmp4KS893' had status 2
So this is complaining because the temp.txt file does not exist.

Henrik's suggestions are good too.

Dan