I was trying to install Git on Windows 11 which gives me troubles with RStudio (no git tab despite projects set up for version control). I want to try to reinstall Rstudio but I do not want to lose all the packages I've installed over the years.
I saved a list of my installed packages that I will then use to reinstall packages.
library(tidyverse)
ip = as.data.frame(installed.packages()[,])
list_packages <- ip %>% select(., Package, LibPath, Version, Built)
save(list_packages, file = "save_list_packages.RData")
It should work for CRAN packages but not for GitHub packages. Is there a way to list which packages are coming from GitHub along with their repo URLs? I tried to locate a package in GitHub from its name but it is hard to find as repos can have the same name (i.e. identified by their URL that includes username and repo name).
How do you do it in practise? Do you keep a script with all the GitHub package installations?