c06be4287e457f3ad5a826da76f2303c262dc654
faq.md
... | ... | @@ -1,16 +1,45 @@ |
1 | 1 | ## BioGrids FAQ |
2 | 2 | |
3 | -## How do I confirm the version of R I am using? |
|
3 | +## R version confirmation |
|
4 | 4 | |
5 | +--- |
|
6 | +From the command line, check your path: |
|
7 | + |
|
8 | +``` |
|
9 | +$ R --sbwhich |
|
10 | + |
|
11 | +or |
|
12 | + |
|
13 | +$ which R |
|
14 | +``` |
|
15 | + |
|
16 | +Use the biogrids-info utility: |
|
17 | + |
|
18 | +``` |
|
19 | +$ biogrids-info -l r |
|
20 | + Version information for: /programs/i386-mac/r |
|
21 | + |
|
22 | +Default version: 3.3.2 |
|
23 | +In-use version: 3.6.2 |
|
24 | + |
|
25 | +Installed versions: 3.6.2 |
|
26 | +Other available versions: 3.6.2 3.5.1 3.4.2 3.2.1 3.2.2 3.0.3 2.13.0 2.11.1 |
|
27 | +Overrides use this shell variable: R_M |
|
28 | +``` |
|
29 | + |
|
30 | +Check the version override variable: |
|
31 | + |
|
32 | +``` |
|
33 | +$ echo $R_M |
|
34 | +3.6.2 |
|
35 | + |
|
36 | +``` |
|
5 | 37 | |
6 | 38 | Within your R code: |
7 | 39 | |
8 | 40 | ``` |
9 | 41 | > system("type R") |
10 | 42 | R is /programs/x86_64-linux/r/3.6.2/bin/R |
11 | -> library(ggplot2) |
|
12 | -> packageVersion("ggplot2") |
|
13 | -[1] '3.2.1' |
|
14 | 43 | |
15 | 44 | ``` |
16 | 45 |