Re: [R] Playing a music file in R

2020-07-23 Thread bretschr
Dear Vahid, Re: > I have a question regarding the following code: > setWavPlayer("/Library/Frameworks/R.framework/Versions/3.6/Resources/bin/play") ># path depends on your R version etc. > > How can I find the corresponding path on my laptop? This line ... setWavPlayer("/Library/Framewo

Re: [R] Playing a music file in R

2020-07-23 Thread bretschr
Dear Vahid, Re: > I have a question regarding the following code: > setWavPlayer("/Library/Frameworks/R.framework/Versions/3.6/Resources/bin/play") ># path depends on your R version etc. > > How can I find the corresponding path on my laptop? This line ... setWavPlayer("/Library/Framewo

Re: [R] Playing a music file in R

2020-07-23 Thread Jim Lemon
Thie "system" command in R takes the first argument and passes that to the shell in which R is running. 1) I run R in the bash shell under Fedora Linux version 30 2) I have installed "mplayer" as an audio/visual player that can be called from the bash shell 3) The command I pass says "Start the mpl

Re: [R] Playing a music file in R

2020-07-21 Thread David Winsemius
From the package's DESCRIPTION file found as the first hit to a search with rseek.org using strategy "play mp3 files": Package:     ‘tuneR’ July 8, 2018 Version:     1.3.3 Date 2018-07-03 Title:     Analysis of Music and Speech Author:     Uwe Ligges with contributions from Sebastian Krey, Ol

Re: [R] Playing a music file in R

2020-07-21 Thread bretschr
Hello vahid.borji, Re: > How can we call a music file from our laptop (for example from desktop) and > play it in R? Could you please give me an explicit example by writing > commands in R. Is it necessary for our music file to be in a specific > format? If yes, which format it has to be? Wave

Re: [R] Playing a music file in R

2020-07-21 Thread Jim Lemon
Hi Vahid, The following command: system("mplayer /home/jim/songs/bimbo_soul.mp3", wait=FALSE,ignore.stdout=TRUE) works fine for me. Of course you'll have to specify a music player and music file that you have... Jim On Wed, Jul 22, 2020 at 4:02 AM Vahid Borji wrote: > > Hello my R friends, >

Re: [R] Playing a music file in R

2020-07-21 Thread Yousri Fanous
Google search "playing music with r" for example: https://stackoverflow.com/questions/31782580/how-can-i-play-birthday-music-using-r It can be a starting point Yousri On Tue, Jul 21, 2020 at 2:02 PM Vahid Borji wrote: > > Hello my R friends, > > How can we call a music file from our laptop (for

[R] Playing a music file in R

2020-07-21 Thread Vahid Borji
Hello my R friends, How can we call a music file from our laptop (for example from desktop) and play it in R? Could you please give me an explicit example by writing commands in R. Is it necessary for our music file to be in a specific format? If yes, which format it has to be? Thank you in advan