-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall_packages.R
31 lines (26 loc) · 1.49 KB
/
install_packages.R
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
## Basic packages
if(!require("devtools")) install.packages("devtools", dependencies=TRUE)
# have been occasions where this is preferred to CRAN version
if(!require("git2r")) devtools::install_github("ropensci/git2r", dependencies=TRUE)
if(!require("shiny")) install.packages("shiny", dependencies=TRUE)
if(!require("ggplot2")) install.packages("ggplot2", dependencies=TRUE)
if(!require("downloader")) install.packages("downloader", dependencies=TRUE)
# really just so that we can see the result of installing it directly
# since this is the package that most regularly causes trouble
if(!require("rgl")) install.packages("rgl", dependencies=TRUE)
## nat packages
# we want the github version - nat.flybrains should install this, but let's make certain
devtools::install_github("jefferis/nat", dependencies=TRUE)
# so that we def get the GitHub version not the CRAN version
devtools::install_github("jefferislab/nat.templatebrains", dependencies=TRUE)
devtools::install_github("jefferislab/nat.flybrains", dependencies=TRUE)
# CRAN version might be fine, but let's go with GitHub again
devtools::install_github("jefferislab/nat.nblast", dependencies=TRUE)
devtools::install_github("jefferis/flycircuit", dependencies=TRUE)
devtools::install_github("jefferis/vfbr")
devtools::install_github("jefferis/elmr")
## download our standard set of registrations
library(nat.flybrains)
download_jefferislab_registrations()
## Extras for shiny app
if(!require("shinyURL")) devtools::install_github("aoles/shinyURL", dependencies=TRUE)