List packages installed on this computer
get_pkgs_installed(rm_duplicates = TRUE)
Arguments
- rm_duplicates
(logical) Should duplicated names of packages be removed?
If TRUE, when several packages are found, only the one with the
highest version is returned. If FALSE, no packages are removed
from the list.
Value
Data frame with columns "package" and "current_version".
Examples
head(get_pkgs_installed())
#> package current_version
#> 1 KernSmooth 2.23-24
#> 2 MASS 7.3-61
#> 3 Matrix 1.7-1
#> 4 R.cache 0.16.0
#> 5 R.methodsS3 1.8.2
#> 6 R.oo 1.27.0
nrow(get_pkgs_installed(rm_duplicates = TRUE))
#> [1] 150
nrow(get_pkgs_installed(rm_duplicates = FALSE))
#> [1] 150