Return the size of a package, or all packages in a folder
package_size.RdReturn the size of a package, or all packages in a folder
Usage
package_size(packages, path = .libPaths()[1])Arguments
- packages
chrof package names- path
chrwith package folders in it such as.libPaths
See also
Other file IO:
col_types(),
dep_read(),
dep_write(),
dir_fn(),
dirs,
ext(),
file_fn(),
is_filepath(),
last_updated(),
list.files2(),
load_obj(),
make_names(),
mkpath(),
move_files_to_folder(),
needs_update(),
object_fn(),
object_write(),
write_dir_fn(),
write_lines()
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