R/make_repos.R

Defines functions make_repos

make_repos <- function(repos) {
    repodir <- file.path(tempdir(), "ghitdrat")
    if (is.null(repos)) {
        tmp_repos <- getOption("repos")
        if ("@CRAN@"  %in% tmp_repos) {
            tmp_repos["CRAN"] <- "https://cloud.r-project.org"
        }
        repos <- tmp_repos
        rm(tmp_repos)
    }
    c("TemporaryRepo" = paste0("file:///", repodir), repos)
}

Try the ghit package in your browser

Any scripts or data that you put into this service are public.

ghit documentation built on July 4, 2017, 9:02 a.m.