vol: Control volume from R

Description Usage Arguments Author(s) Examples

Description

This function alters the computer speaker volume, by making a call to amixer. The value ‘mag' is the percent change you’d like, so a 5

Usage

1
vol(x = 50)

Arguments

x

this value is either the factor with which to increase or decrease the speaker volume, or is an absolute volume. If x = "5+", it will increase volume by 5 the difference in inputs. Incremental increases to volume are specified with character arguments, absolute values (between 0 and 100) are given as numeric values.

Author(s)

Tad Dallas

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
#pump up the jams!!
vol(100)
#mute your garbage music when your advisor walks in
vol(0)
#increase your speaker volume by 10%
vol("10+")

## End(Not run)

taddallas/rSpotify documentation built on May 31, 2019, 1:44 a.m.