AD: Audio url/path to HTML Audio Tag

Description Usage Arguments Value References Examples

Description

Converts a url/path to an HTML audio tag. AD attempts to determine the location of the audio file if it is not a path or url.

Usage

1
2
AD(audio = "clipboard", is_url = is.url(audio), copy2clip = interactive(),
  print = FALSE)

Arguments

audio

A url, path or file located in the audio directory which is an audio file.

is_url

logical. If TRUEaudio’ is located in the ‘~audio’ or ‘../audio’ directory of ‘REPORTS’ or ‘PRESENTATION’ directories.

copy2clip

If TRUE attempts to copy the output to the clipboard.

print

logical. If TRUE cat prints the output to the console. If FALSE returns to the console.

Value

Returns a character vector of an HTML source tag that embeds an audio file.

References

http://www.w3schools.com/html/html5_audio.asp

Examples

1
2
3
4
## Not run: 
AD("foo.mp4")

## End(Not run)

trinker/reports documentation built on May 31, 2019, 9:51 p.m.