SOLVED: So it turns out the packages 'sound' and 'tuneR' both use the setWavePlayer() function. I was able to solve this pretty easily with this quick fix
I'm trying to play a sound file using seewave's listen option, and getting a 'permission denied' error
library(seewave) v.sound <-sin(2*pi*440 * seq(0,1,length.out = 8000)) f <- 8000 seewave::listen(v.sound, f= f)
sh: /var/folders/gg/5v7wvcts2jg4zm40s7r9fgqc0000gn/T//RtmpDWOqTa/tuneRtemp.wav: Permission denied
I've tried the suggested option linked here, but still get the same error message.
I also receive the exact same error when trying to play a .wav file on tuneR.
I'm operating on a macOS High Sierra 10.13.6