Re: [R] Runing perl script from R

From: Duncan Murdoch <>
Date: Fri, 08 Apr 2011 19:40:39 -0400

On 11-04-08 4:56 PM, Rice, Terri wrote:
> Hi. I am trying to run perl script from R. Here's what happens.
>> setwd("C:\\Terri\\perl")
>> getwd()
> [1] "C:/Terri/perl"
>> list.files()
> [1] "" "lines1_10.txt" "" "try_my.txt"
>> system("")
> Warning message:
> In system("") : Impossible to run C:\Terri\perl\
> Does anyone know what I am doing wrong?

Perl scripts are not generally executable on their own. The shell will automatically run something like "perl", but you went to a lower level.

To get what you want in Windows, try

shell('') # Windows only



Duncan Murdoch mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 08 Apr 2011 - 23:43:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 09 Apr 2011 - 00:10:28 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive