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 <vahid.borj...@gmail.com> wrote: > > 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 advance > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.