If you're looking at reproducibility have a look at renv and jetpack, or https://github.com/AstraZeneca/roo (or docker)
If you're looking at a simple package manager like check https://usethis.r-lib.org/reference/use_description.html
If you're looking for an R package check out pacman