I'm trying to use the following sound package in R: http://playitbyr.r-forge.r-project.org/gettingstarted.html
After installing the package and its dependencies, when I try to run
sonify(iris, sonaes(time = Petal.Length, pitch = Petal.Width))
(per the example given on the page), I get this error:
Error in play.default(x, rate, ...) : no audio drivers are available
Anyone know what I should do? I googled around a bit, and it looks like maybe I need to call set.audio.driver(name)
, but I'm not sure what to put as an argument.
(In case it matters, on Mac OS X Snow Leopard.)
On ubuntu, you can get the portaudio headers with
sudo apt-get install portaudio19-dev
Then, reinstall the audio library. Make sure you see
checking portaudio.h usability... yes
checking portaudio.h presence... yes
During compilation of the audio package.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With