-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
78 lines (55 loc) · 3.26 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
devtools::load_all(".")
```
# tsdrtools <img src='man/figures/logo.png' align="right" height="138.5" />
<!-- badges: start -->
[![R build status](https://github.com/LCBC-UiO/tsdrtools/workflows/R-CMD-check/badge.svg)](https://github.com/LCBC-UiO/tsdrtools/actions)
[![Codecov test coverage](https://codecov.io/gh/LCBC-UiO/tsdrtools/branch/master/graph/badge.svg)](https://codecov.io/gh/LCBC-UiO/tsdrtools?branch=master)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![CRAN status](https://www.r-pkg.org/badges/version/tsdrtools)](https://CRAN.R-project.org/package=tsdrtools)
<!-- badges: end -->
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
```{r eval = FALSE}
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/](https://github.com/LCBC-UiO/tsdrtools/).
Transfer the package to TSD (import it), and install as a source package.
```{r eval = FALSE}
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.
```{r prepare-package, eval = FALSE}
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](https://github.com/LCBC-UiO/tsdrtools/issues)
## Code of Conduct
Please note that the tsdrtools project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.