Playing multiple mp3 files from R
<p>I want to play multiple mp3 (sound) files one after the other. I have tried the following code and works fine except I have to manually close the windows media player (WMP) window after playing the first mp3 file so that the second mp3 file is played. Again I have to manually close WMP for the third mp3 file to be played. <em>Is there a way that I can automate the process without me having to manually close WMP windows now and then?</em> I am running the code in Windows 7 machine. Thanks!</p>

<pre><code>library(tuneR)

File1&lt;- readMP3("File1.mp3") # reading the mp3 files
File2&lt;- readMP3("File2.mp3")
File3&lt;- readMP3("File3.mp3")

play(File1) # playing the mp3 files
play(File2)
play(File3)
</code></pre>