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:
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
How to Preserve Transparency in Ggplot2
What's the Difference Between Reactive Value and Reactive Expression
How to Add a Scale Bar (For Linear Distances) to Ggmap
Plotly as Png in Knitr/Rmarkdown
Update Multiple Data.Table Columns Elegantly
Producing Subscripts in R Markdown
Error Calling Serialize R Function
Copying and Modifying a Default Theme
Handling Missing/Incomplete Data in R--Is There Function to Mask But Not Remove Nas
Running Cor() (Or Any Variant) Over a Sparse Matrix in R
Control Alignment of Two Side-By-Side Plots in Knitr
Increase Iterations for New Version of Lmer
Separate Columns with Constant Numbers and Condense Them to One Row in R Data.Frame
How to Calculate the Average of a Variable Between Two Date Ranges Using a Loop or Apply Function
How to Calculate the 95% Confidence Interval for the Slope in a Linear Regression Model in R