|
1 | | ---- |
2 | | -layout: default |
3 | | -title: Installation |
4 | | -nav_order: 2 |
5 | | -permalink: /docs/installation |
6 | | ---- |
7 | | - |
8 | | -## Installation |
9 | | - |
10 | | -### Dependencies |
11 | | - |
12 | | -R, version >= 3.6.0 |
13 | | - |
14 | | -[Pre-request R packages](docs/pre_request) |
15 | | - |
16 | | - |
17 | | -### Install a released R package |
18 | | - |
19 | | -Download a released version from [https://github.com/jyyulab/NetBID/releases](https://github.com/jyyulab/NetBID/releases) and run: |
20 | | - |
21 | | -```R |
22 | | -devtools::install_local('NetBID2_2.0.2.tar.gz') |
23 | | -``` |
24 | | - |
25 | | -### Install from github master branch |
26 | | - |
27 | | -```R |
28 | | -# set repos, for R version 3.6.0, Bioconductor version 3.9 |
29 | | -local({ |
30 | | - r <- getOption("repos") |
31 | | - r["CRAN"] <- "https://cran.rstudio.com/" |
32 | | - r["BioCsoft"] <- "https://bioconductor.org/packages/3.9/bioc" |
33 | | - r["BioCann"] <- "https://bioconductor.org/packages/3.9/data/annotation" |
34 | | - r["BioCexp"] <- "https://bioconductor.org/packages/3.9/data/experiment" |
35 | | - options(repos = r) |
36 | | -}) |
37 | | -``` |
38 | | - |
39 | | -Install without cloning the repository |
40 | | - |
41 | | -```R |
42 | | -devtools::install_github("jyyulab/NetBID",ref='master',dependencies='Depends') |
43 | | -``` |
44 | | - |
45 | | -Or clone the repository and install locally: |
46 | | - |
47 | | -```R |
48 | | -devtools::install(pkg='.',dependencies=TRUE) ## Install the package with dependencies. |
49 | | -devtools::install_deps(pkg = ".", dependencies = TRUE) ## Install package dependencies if needed. |
50 | | -``` |
51 | | - |
52 | | ---- |
| 1 | +--- |
| 2 | +layout: default |
| 3 | +title: Installation |
| 4 | +nav_order: 2 |
| 5 | +permalink: /docs/installation |
| 6 | +--- |
| 7 | + |
| 8 | +## Installation |
| 9 | + |
| 10 | +### Dependencies |
| 11 | + |
| 12 | +R, version >= 3.6.0 |
| 13 | + |
| 14 | +[Pre-request R packages](docs/pre_request) |
| 15 | + |
| 16 | + |
| 17 | +### Install a released R package |
| 18 | + |
| 19 | +Download a released version from [https://github.com/jyyulab/NetBID/releases](https://github.com/jyyulab/NetBID/releases) and run: |
| 20 | + |
| 21 | +```R |
| 22 | +devtools::install_local('NetBID2_2.0.2.tar.gz') |
| 23 | +``` |
| 24 | + |
| 25 | +### Install from github master branch |
| 26 | + |
| 27 | +```R |
| 28 | +# set repos, for R version 3.6.0, Bioconductor version 3.9 |
| 29 | +local({ |
| 30 | + r <- getOption("repos") |
| 31 | + r["CRAN"] <- "https://cran.rstudio.com/" |
| 32 | + r["BioCsoft"] <- "https://bioconductor.org/packages/3.9/bioc" |
| 33 | + r["BioCann"] <- "https://bioconductor.org/packages/3.9/data/annotation" |
| 34 | + r["BioCexp"] <- "https://bioconductor.org/packages/3.9/data/experiment" |
| 35 | + options(repos = r) |
| 36 | +}) |
| 37 | +``` |
| 38 | + |
| 39 | +Install without cloning the repository |
| 40 | + |
| 41 | +```R |
| 42 | +devtools::install_github("jyyulab/NetBID",ref='master',dependencies='Depends') |
| 43 | +devtools::install_github("jyyulab/NetBID") |
| 44 | +``` |
| 45 | + |
| 46 | +Or clone the repository and install locally: |
| 47 | + |
| 48 | +```R |
| 49 | +devtools::install(pkg='.',dependencies=TRUE) ## Install the package with dependencies. |
| 50 | +devtools::install_deps(pkg = ".", dependencies = TRUE) ## Install package dependencies if needed. |
| 51 | +``` |
| 52 | + |
| 53 | +--- |
0 commit comments