[R] Paths for Shell Scripts called from R

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sun Dec 12 00:19:01 CET 2004


Damian Betebenner <damian.betebenner at bc.edu> writes:

> Does anyone have an idea of how I can pass the appropriate path to
> my shell script from within R?

Anything wrong with just setting the PATH variable? E.g.

> Sys.putenv(PATH=paste(Sys.getenv("PATH"),"/home/bs/pd/scripts",sep=":"))
> system("SalesRank")
Sun Dec 12 00:10:55 CET 2004
29605


-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list