on Windows, you will need to install Rtools, select the right version for you R installation.