The flatpackage package is an R package that provides the ability to create an easily offline installable version of a package that includes all the relevant dependencies. When on a system with no outside internet access it can be difficult to install R packages. You need to download the packages required somewhere else, possibly have them audited, and install locally. If you don't also download the dependencies for a package it can be slightly annoying to find that you need to go through the entire process again.
This package intends on making that process a bit easier by zipping everything up that you need and providing some convenience functions to install the result so you don't have to go through the dependency ladder directly.
library(flatpackage)
# Definitely install docstring - what a great package
flatpackage_create("docstring")
- Create the installation script and provide instructions on how to install
- Make it cross platform/version. Currently this assumes you're running on the same version and same platform as the system you're creating the flatpackage on.
- No known issues currently
You can download the dev version via zip ball or tar ball, decompress and run R CMD INSTALL
on it, or use the devtools package to install the development version:
## Make sure your current packages are up to date
update.packages()
## devtools is required
library(devtools)
install_github("dasonk/flatpackage")
Note: Windows users need Rtools and devtools to install this way.
You are welcome to:
- submit suggestions and bug-reports at: https://github.com/dasonk/flatpackage/issues
- send a pull request on: https://github.com/dasonk/flatpackage/