Installing a Package Offline from Github

Installing a package offline from GitHub

Let's assume that you have Rtools and devtools on the win machine.

Step 1: Download the source zip.

Step 2: Copy to the win machine and unzip the content there.

Step 3: Run the following code (adjust the path as necessary):

library(devtools)
source <- devtools:::source_pkg("E:/temp/data.table-master")
install(source)

library(data.table)
#loads 1.9.7

How to install Github for Windows offline?

"GitHub for Windows" is one of those magical/annoying ClickOnce apps. They are ideal for apps that tend to require online to operate (like posting to an online source control website...)

Other then the magic "clone to windows" feature from the website, and the self contained SSH auto-management (also semi-annoying), there isn't anything special about it other then being "pretty".

If you really really need offline work, or behind proxies, get something else. GitExtenions is great integration into windows context menus, and a great repo manager, and a not too confusing add/stash/commit interface. It reminds me very much of TortoiseSVN.

MSysgit is also an option for GUIs, but is a bit more crude (it looks very 16bit app'ish). Personally, I'd rather use the commandline then it, but thats me and my choices.

Oh, and lastly, in less then 10 seconds and 1 google search, I found how to set GHfW to work through a proxy using the standard .gitconfig

How can I install software or packages without Internet (offline)?

Check out Keryx; it's an offline repository manager.

How does it work? It lets you download updates and new programs (with dependencies) to your flash drive.

Its interface is similar to synaptic, but it works from a pendrive (it doesn't need installation). Unfortunately, the GUI needs wxwidgets, which don't come preinstalled on Ubuntu (they're cross-platform and installable from here and Ubuntu repository here). It can only install software in a Ubuntu system, but you can download the updates or new packages in any Linux, Windows or OS X.

Here you can find a tutorial.

Another detailed step-by-step tutorial is in this answer.

Launchpad also hosts downloadable files.

A screenshot:

Screenshoot

Install R packages from github downloading master.zip

This answer is just a refined version of my comments. Essentially you can install packages using devtools by unzipping a local zipfile downloaded from github, and then running the install function


install("path/to/unzipped_pkg_zip_file")

The latest dev version of devtools contains an install_local utility function that makes it easy to work directly with local zip files.



Related Topics



Leave a reply



Submit