R/install_synapser.R

Defines functions install_synapser

Documented in install_synapser

#' RM2C2dev
#' @name install_synapser
#' @export
#' @examples
#' install_synapser()
install_synapser <- function() {
  if(!require(synapser)){
    print("Installing `synapser` and dependency `PythonEmbedInR`. This may take a while.")
    install.packages("PythonEmbedInR", repos=c("http://cran.fhcrc.org", "http://ran.synapse.org"))
    install.packages("synapser", repos=c("http://ran.synapse.org", "http://cran.fhcrc.org"))
  } else {
    stop("`synapser` already installed.")
  }
}
nelsonroque/RM2C2_dev documentation built on May 15, 2021, 1:16 p.m.