play_song: Rchestra

Description Usage Arguments Details See Also Examples

Description

play_song Plays a song from your web browser

Usage

1
2
play_song(songName = "Never Gonna Give You Up Rick Astley", url = NULL,
  print = FALSE, site = "youtube.com")

Arguments

songName

string used for google search. Typically including the song name and artist should be enough

url

a string with a specific url to be launched. If left null, the function searches google instead

print

boolean which tells whether to print the song being played to the console

site

string which specifies which site to play from. By default it is www.youtube.com, but www.vevo.com (or any other site of choice) can be used as well

Details

The function launches a new page in your web browser with the top hit from the google search for the given string. By default, it selects the top result from www.youtube.com, but other options (such as vevo, etc) can also be used

See Also

error_songs

Examples

1
play_song(songName = "Never Gonna Give You Up Rick Astley")

ysamwang/Rchestra documentation built on May 4, 2019, 5:33 p.m.