For some reason, tuneR_loader on this line in the wavelet code resulted in a could not find function error.
This line failed:
wav <- tuneR_loader("resources/chaffinch.wav")
The solution was to call the tuneR_loader function with ::::
wav <- torchaudio:::tuneR_loader("resources/chaffinch.wav")