The R Project SVN R

Rev

Rev 4580 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#!/bin/sh

# ${R_HOME}/bin/filename

#cc Using 'found' ensures that at least an empty string is returned;
#cc without,  system.file() returns   character(0) if nothing is found.

found=
for f in $*
do
 if [ -r $f ];then echo "$f"; found=1
 fi
done
test -z "$found" && echo