## Rd2pdf -*- sh -*-  Convert man pages (*.Rd help files) via LaTeX to PDF.

args=
while test -n "${1}"; do
  ## quote each argument here, unquote in R code.
  args="${args}nextArg${1}"
  shift
done

echo 'tools:::..Rd2pdf()' \
| R_DEFAULT_PACKAGES= LC_ALL=C "${R_HOME}/bin/R" \
--vanilla --slave --args ${args}
