Rd2txt 844 Bytes
Newer Older
1 2 3
##
## Rd2txt -- Convert man pages (*.Rd help files) to plain text.

4
revision='$Rev: 47589 $'
5
version=`set - ${revision}; echo ${2}`
6
version="Rd2txt: ${R_VERSION} (r${version})
7 8

Copyright (C) 2000 The R Core Development Team.
9
This is free software; see the GNU General Public License version 2
10 11 12 13 14 15 16 17
or later for copying conditions.  There is NO warranty."

usage="Usage: R CMD Rd2txt [options] file

Generate plain text output from the Rd source specified by file.

Options:
  -h, --help		print short help message and exit
18
  -v, --version		print version info and exit  
19 20 21 22 23 24 25 26 27 28

Report bugs to <r-bugs@r-project.org>."  

case "${1}" in
  -h|--help)
    echo "${usage}"; exit 0 ;;
  -v|--version)
    echo "${version}"; exit 0 ;;
esac

29
exec ${R_HOME}/bin/Rdconv -t txt "${1}"
30 31 32 33 34

### Local Variables: ***
### mode: sh ***
### sh-indentation: 2 ***
### End: ***