disk_free: Report on File System Disk Usage

View source: R/disk_free.R

disk_freeR Documentation

Report on File System Disk Usage

Description

Report on File System Disk Usage

Usage

disk_free(mounts = NULL, local = FALSE)

Arguments

mounts

A character vector of disks (mount points) to query. If NULL, all disks are queried.

local

If TRUE, only local disks are queried.

Details

This function queries df -P (POSIX output format) on the system.

Value

A data.frame (tibble) where each row corresponds to a unique disk.

Examples

## All disks
df <- disk_free()
print(df)

## All local disks
df <- disk_free(local = TRUE)
print(df)

## /tmp 
df <- disk_free(c("/tmp"))
print(df)


ucsf-wynton/wyntonquery documentation built on May 15, 2024, 6:23 a.m.