R/package_installer.R

Defines functions package_installer

package_installer <- function(path , delete_path = TRUE) {

    if(!dir.exists(path)) {
        print(paste0(path , " dows not exists"))
        return(FALSE)
    }

    install.packages(path , repos = NULL , type = "source")

    if (delete_path) {
        unlink(path)
    }
    return(TRUE)
}
MusaTamzid05/RPackageInstaller documentation built on Oct. 30, 2019, 9:41 p.m.