[R] Playing a music file in R
Jim Lemon
drj|m|emon @end|ng |rom gm@||@com
Tue Jul 21 23:14:49 CEST 2020
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.borji65 using 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 using 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.
More information about the R-help
mailing list