R/get_packages.R

Defines functions get_packages

Documented in get_packages

# get_packages ------------------------------------------------------------

#' Get Packages function
#' @description For downloading and load to projects GPU torch functions
#' @return
#' @export
#'
#' @examples IMSSLAER::get_packages()
get_packages <- function() {
    if ("torch" %in% rownames(installed.packages()) == FALSE) {
        cat("\nTake it easy, torch is installing on your device now ...\n")
        install.packages("torch")
    }
    library(torch)
    cat("\nDONE!\n")
}
qwerty29544/IMSSLAER documentation built on March 9, 2021, 3:29 a.m.