\documentclass[a4paper]{book}
\usepackage{doc}

\begin{document}
\section*{R documentation --- \today}
\input{doc}
\end{document}
