Noobie Noobie - 1 year ago 110
R Question

R: how to download the zip binaries and all the dependencies of a list of packages for an offline installation on another machine?

I am using

R 3.3.1
and the latest version of
R studio
on a computer behind a firewall.

I would like to know how I can download all the
zip binaries
(not the sources, because I cannot compile them) for the packages I need (
, etc) AND their dependencies on my home computer, so that I can export them to the machine under firewall and just install them offline.

How can I do that?

Answer Source

Use the Packrat R package; it has a bundle method which packs up all the packages (and their dependencies), and an unbundle method which unpacks them onto the target machine. They go into a private library, too, so they won't stomp on other libraries on your machine.

More here:

Once you've installed Packrat, type ?packrat::bundle for further instructions.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download