Skip to contents

Provides a brief summary of the package libraries on your machine

Usage

lib_summary(sizes = FALSE)

Arguments

sizes

Should the sizes of the libraries be calculated? Logical; default `FALSE`.

Value

A data.frame containing the count of packages in each of the user's libraries. A `lib_size` column is included if `sizes = TRUE`.

Examples

lib_summary()
#>                                                                                             Library
#> 1 /home/runner/.cache/R/renv/library/libminer-46f6a755/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu
#> 2          /home/runner/.cache/R/renv/sandbox/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu/3df92652
#>   n_packages
#> 1         65
#> 2         29
lib_summary(sizes = TRUE)
#>                                                                                             Library
#> 1 /home/runner/.cache/R/renv/library/libminer-46f6a755/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu
#> 2          /home/runner/.cache/R/renv/sandbox/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu/3df92652
#>   n_packages lib_size
#> 1         65 68187540
#> 2         29      963