diff --git a/R/InfoAbout.R b/R/InfoAbout.R index aa9c19d..90fefc3 100644 --- a/R/InfoAbout.R +++ b/R/InfoAbout.R @@ -81,7 +81,8 @@ div(id="InfoAboutBox", column(1, style="width:10%", h4 ("Citation") ), - column(10, + column(10, + h6 ("If you use CORAL in your work, you should cite: ", tags$a(href="http://dx.doi.org/10.1016/j.cels.2018.07.001","Metz & Deoudes, Cell Systems 2018")), h6 ("Coral was initially described in a preprint by Metz & Deoudes et al available at ", tags$a(href="https://www.biorxiv.org/content/early/2018/05/25/330274", "bioRxiv",target="_blank")), h6 ("Coral makes use of phylogenetic information derived from ", @@ -93,4 +94,4 @@ div(id="InfoAboutBox", ) ) ) -) \ No newline at end of file +) diff --git a/install.R b/install.R index 08b8c3d..29c9a02 100644 --- a/install.R +++ b/install.R @@ -1,20 +1,25 @@ -# install basic libraries -# TODO: use R profile to set mirrors -# install.packages("shiny", repos = "http://cran.us.r-project.org") -# install.packages("shinydashboard", repos = "http://cran.us.r-project.org") -# install.packages("shinyBS", repos = "http://cran.us.r-project.org") -# install.packages("readr", repos = "http://cran.us.r-project.org") -# install.packages("rsvg", repos = "http://cran.us.r-project.org") -# install.packages("shinyWidgets", repos = "http://cran.us.r-project.org") -# install.packages("RColorBrewer", repos = "http://cran.us.r-project.org") +#!/usr/bin/env Rscript -# # install Manning-related libraries -# install.packages("svgPanZoom", repos = "http://cran.us.r-project.org") +# to find all the library commands run: +# grep -Rh library * | sort | uniq +# +# then reformat the library calls to use p_load as below, plus dealing with the github only packages -# # install ui-related libraries -# install.packages("colourpicker", repos = "http://cran.us.r-project.org") -# install.packages("DT", repos = "http://cran.us.r-project.org") +if("pacman" %in% rownames(installed.packages()) == FALSE) { + install.packages("pacman") +} -# # install other network libraries -# install.packages("data.tree", repos = "http://cran.us.r-project.org") -install.packages("jsonlite", repos = "http://cran.us.r-project.org") \ No newline at end of file +library(pacman) + +p_load(colourpicker) +p_load(data.tree) +p_load(DT) +p_load(jsonlite) +p_load(RColorBrewer) +p_load(readr) +p_load(rsvg) +p_load(shiny) +p_load(shinyBS) +p_load(shinydashboard) +p_load(shinyWidgets) +p_load(svgPanZoom) \ No newline at end of file