How do I install an R package from the source tarball on windows?

I know this is an old question but it came up first in my Google search for this same question, even though I knew the answer I just wanted something to copy and paste. Which makes it worth improving the answer for future reference. So here is what works for me:

Install rtools, then:

install.packages(path_to_file, repos = NULL, type="source")

Leave a Comment