Skip to contents

Return the size of a package, or all packages in a folder

Usage

package_size(packages, path = .libPaths()[1])

Arguments

packages

chr of package names

path

chr with package folders in it such as .libPaths

Value

chr/tbl depending on whether packages or path is provided

Examples

package_size()
#> # A tibble: 78 × 4
#>    pkg_name  dir_sizeMB dir_size dir_path                                 
#>    <chr>          <dbl>    <dbl> <chr>                                    
#>  1 ini           0.0176    17589 /home/runner/work/_temp/Library/ini      
#>  2 tinytex       0.0210    21009 /home/runner/work/_temp/Library/tinytex  
#>  3 generics      0.0212    21189 /home/runner/work/_temp/Library/generics 
#>  4 base64enc     0.0222    22155 /home/runner/work/_temp/Library/base64enc
#>  5 mime          0.0223    22254 /home/runner/work/_temp/Library/mime     
#>  6 highr         0.0224    22380 /home/runner/work/_temp/Library/highr    
#>  7 memoise       0.0228    22829 /home/runner/work/_temp/Library/memoise  
#>  8 jquerylib     0.0230    23021 /home/runner/work/_temp/Library/jquerylib
#>  9 gitcreds      0.0232    23153 /home/runner/work/_temp/Library/gitcreds 
#> 10 fastmap       0.0233    23313 /home/runner/work/_temp/Library/fastmap  
#> # ℹ 68 more rows