-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbioc_installation.Rmd
67 lines (44 loc) · 2.33 KB
/
bioc_installation.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
---
title: "Getting started with Bioconductor"
output: html_document
---
# Install Bioconductor Packages
For full details on getting started with Bioconductor, see the [Bioconductor Website](https://bioconductor.org). This material is just a "quick start".
Use the `BiocManager` package to install Bioconductor packages. To install core packages, type the following in an R command window:
```{r eval=FALSE}
install.packages('BiocManager')
BiocManager::install()
```
Install specific packages, e.g., “GenomicFeatures” and “AnnotationDbi”, with
```{r eval=FALSE}
BiocManager::install(c("GenomicFeatures", "AnnotationDbi"))
```
The `biocLite()` function (in the `BiocInstaller` package installed by the biocLite.R script) has arguments that change its default behavior; type `?biocLite` for further help.
# Find Bioconductor Packages
Visit the [software package list](https://www.bioconductor.org/packages/release/BiocViews.html#___Software) to discover available packages.
# Update Installed Bioconductor Packages
Bioconductor packages, especially those in the development branch, are updated fairly regularly. To identify packages requiring update within your version of Bioconductor, start a new session of R and enter
```{r eval=FALSE}
BiocManager::install()
```
Use the argument `ask=FALSE` to update old packages without being prompted. Read the help page for `?BiocManager::install` for additional details.
# Troubleshoot Package Installations
Use the commands:
```{r eval=FALSE}
BiocManager::valid()
```
to flag packages that are either out-of-date or too new for your version of Bioconductor. The output suggests ways to solve identified problems, and the help page ?biocValid lists arguments influencing the behavior of the function.
# Troubleshoot BiocInstaller
If you see a message like this:
BiocInstaller version 3.2 is too old for R version 3.3
…do the following:
- Quit your R session
- Start a new session with `R --vanilla`
- Run the command `remove.packages("BiocManager", lib=.libPaths())`
- Repeat that command until R says there is no such package.
- Run the command `install.packages('BiocManager')`
- Run `BiocManager::valid()` to ensure your installed packages are valid for the current version of Bioconductor, and follow the instructions it gives you, most likely: `BiocManager::install()`
# sessionInfo
```{r}
sessionInfo()
```