rasmusab / beepr

The package that sounds as it is called.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Library doesn't fully load from command line (Linux Mint)

wmay opened this issue · comments

The ping command does not work for me when running R at the Linux command line. It does work in RStudio.

After exploring a bit, I found that, while the function 'ping' loads after I call 'library(pingr)', none of the other functions are loaded into the session. So 'ping()' fails to make any sounds.

This is in R v3.1.0 beta (2014-03-28 r65330) -- "Spring Dance"
in Linux Mint 14.

I don't' think that the problem is that the other function do not get loaded. Only ping is supposed to be loaded the rest of the functions are "hidden" in the namespace pingr. Though that does not explain why it doesn't work... If you have a wav file downloaded somewhere (for example http://www.villagegeek.com/downloads/webwavs/hero.wav) could you try to play it with the pingr:::play_vlc like

pingr:::play_vlc("my_wav_file.wav")

does that still not work? Do then any of the following work?:

pingr:::play_aplay("my_wav_file.wav")
pingr:::play_paplay("my_wav_file.wav")

Actually, ping() is working today from the command line. I'm totally mystified about why it works today, but not yesterday. I don't believe I've made any changes to it.