-
-
Save coolbutuseless/ac4ada98a4e851ce6c55b9f7eafac8b2 to your computer and use it in GitHub Desktop.
maybe reinstall the github packages?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df <- as.data.frame(installed.packages(fields = c("RemoteType", "Repository"))) | |
to_reinstall <- df[df$Repository %in% "CRAN", "Package"] | |
install.packages(to_reinstall) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install.packages("remotes") | |
packages <- installed.packages( | |
fields = c("GithubUsername", "GithubRepo", "GithubSubdir") | |
) | |
from_github <- packages[ | |
!is.na(packages[, "GithubRepo"]), | |
c("GithubUsername", "GithubRepo", "GithubSubdir") | |
] | |
repos <- paste0( | |
from_github[, 1], "/", | |
from_github[, 2], | |
ifelse(is.na(from_github[, 3]), "", paste0("/", from_github[, 3])) | |
) | |
lapply(repos, remotes::install_github, upgrade = "always", build = FALSE, force = TRUE, type = "binary") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment