Skip to content

Some packages are hard to install on the secure closed server of the University of Oslo, TSD This package has some functions to help users more easily install packages to TSD that cannot be installed using the mini-CRAN service within TSD.

License

Notifications You must be signed in to change notification settings

capro-uio/tsdrtools

Repository files navigation

tsdrtools

R build status Codecov test coverage Lifecycle: experimental CRAN status

The goal of tsdrtools is to make it easier for R users of TSD to install packages that fail install using the TSD mini-CRAN. Certain R-packages require compilation outside of TSD before they can be installed, and as such can be burdensom for some users to administer. While the package is developed with the offline TSD server in mind, this package should also likely aid others needing to install packages o other offline servers.

Since packages often have a muriad of dependencies, this process can becomes increasingly cumbersome, as all these extra packages also need to be obtained, which again might require special compilation.

In the two step procedure here, a package is downloaded together with all dependent packages, zipped into an archive for easy import into TSD, where it can be unzipped and installed using a special function.

Installation

You can install the development version of tsdrtools

install.packages("remotes")
remotes::install_github("LCBC-UIO/tsdrtools")

for installation of this package inside TSD, download the newest source file from https://github.com/LCBC-UiO/tsdrtools/.

Transfer the package to TSD (import it), and install as a source package.

install.packages("/path/to/tsdrtools.tar.gz", repo = NULL)

Example

This package contains two main functions:

  1. tsd_package_prepare() is used outside of TSD, with internet connection to prepare a package for install within TSD.
  2. Once step 1 is completed and data transfered to TSD, the tsd_package_install() is used within TSD to install the package within TSD.
library(tsdrtools)

# outside TSD
tsd_package_prepare("dplyr")

# within TSD
tsd_package_install("dplyr.zip")

Limitations

Currently the package will only install packages that are available on CRAN. We are working on a version that might allow downloading and making available packages from other repositories, but that is more difficult.

Bug reports

Report bugs using github issues

Code of Conduct

Please note that the tsdrtools project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

About

Some packages are hard to install on the secure closed server of the University of Oslo, TSD This package has some functions to help users more easily install packages to TSD that cannot be installed using the mini-CRAN service within TSD.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages