broom - a disk cleaning utility for developers
broom [option...] [directory]
broom recursively looks for projects inside a directory and cleans them by removing build artifacts (eg: by invoking "make clean"), optimizing version control system files (eg: by invoking "git gc"), etc.
Only show commands that would be executed instead of actually performing them.
Comma-separated list of tools to run the cleanup for. The available tools are: make, rake, python, ant, mvn, gradle, buildr, sbt, ninja, scons, waf, rant, git, bundle, vagrant , cargo and makepkg. By default, all tools are used.
Be more verbose. Pass this option several times to see debug info.
Print disk space gained.
Do not ask for confirmation before performing actions that may result in potential data loss (eg: destroying Vagrant boxes).
Be less verbose. Pass this option several times to remove all output.
Show usage information and exit.
Show version information and exit.
To perform cleanup in the current working directory:
broom
To perform cleanup in your projects folder:
broom ~/projects
To perform cleanup in your projects folder, with all logging on:
broom -vvv ~/projects
To show what commands would be performed, without running them:
broom -n ~/projects
To perform cleanup only for git and make projects:
broom -t git,make ~/projects
broom allows to define default execution parameters in the ~/.broomrc file. Here is an example of ~/.broomrc file:
# Use dry run mode by default.
DRY_RUN=true
# Only show warnings and errors.
LOG_LEVEL=0
# Show statistics.
STATS=true
# Run in projects directory.
DIRECTORY=~/projects
# Only look for some specific kind of projects.
TOOLS=(make python ant git)
System | Installation instructions |
---|---|
Debian / Ubuntu | broom repository |
Fedora / CentOS / RHEL / Scientific Linux | broom repository |
OpenSUSE / SLE | broom repository |
Arch Linux | AUR |
git clone https://github.com/nicoulaj/broom.git cd broom make sudo make install
R语言使用broom包将回归模型(线性回归、逻辑回归、比例风险回归)的结果整理成dataframe并导出到excel等文件中:基于mtcars和colon数据集 目录
broom:Convert statistical analysis objects into tidy format 这个软件包提供了三种完成三种不同类型整理的S3方法:GitHub链接 tidy: 构建一个总结模型或检验整洁的统计信息data.frame。这包括回归中coefficients and p-values,聚类中的每个集群信息per-cluster或multtest函数的每个测试信
R语言使用lm函数构建回归模型、使用ggplot2可视化拟合值和残差关系图(broom包的augment参数将残差和其它数据一起放入数据框中方便可视化分析) 目录
R语言使用lm函数构建回归模型、使用broom包的augmented函数将模型结果存入dataframe中、使用ggplot2可视化回归残差图(拟合值和残差值的关系图) 目录