waitForFreeDiskSpace: Checks if there is enough free disk space

View source: R/01classes.R

waitForFreeDiskSpaceR Documentation

Checks if there is enough free disk space

Description

Checks if there is enough free disk space. If there is not enough disk space, an e-mail will be sent and the job will be put on hold for up to two hours.

Usage

waitForFreeDiskSpace(param)

getGigabyteFree(dirPath)

Arguments

param

a list of parameters:

  • scratch the required disk space in gigabytes.

  • mail the e-mail address of the recipient.

dirPath

a character specifying the path of the directory to check the disk space in.

Functions

  • getGigabyteFree: Gets the number of free gigabytes.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

param = list()
param[['mail']] = ''
param[['scratch']] = '100'
waitForFreeDiskSpace(param)
getGigabyteFree(".")
getGigabyteFree("/")

uzh/ezRun documentation built on Dec. 26, 2024, 9:53 a.m.