Question: how to install package rtools?
Answer: Select the .exe download link from the table that corresponds to your version of R. ...  If you have the most recent version of R, you should select the most recent Rtools download (at the top of the chart) Once the download completes, open the .exe file to begin the installation.