meerapatelmd/glitter

function that installs all packages in my repo

Closed this issue · 0 comments

duplicated_package <- #Returns names of packages that were installed twice since there are 2 versions of package with the same name in different repost
glitter::get_remote_repos("meerapatelmd") %>%
        purrr::pluck("REPOS") %>%
        dplyr::filter(fork == FALSE) %>%
        dplyr::select(full_name) %>%
        unlist() %>%
        rubix::map_names_set(function(x) police::try_catch_error_as_null(devtools::install_github(x))) %>%
        unlist() %>%
        centipede::no_blank() %>%
        duplicated() %>%
        names()