[BlindRUG] Good tip: Playing an auditory error sound in R
JooYoung Seo
jooyoung at psu.edu
Wed Apr 7 03:19:07 UTC 2021
Hello,
I hope that everyone is doing well.
I am sharing a good tip to play a unique sound whenever an error occurs in R.
That could help us quickly pick up an error using an auditory sound,
improving accessibility for users with and without visual impairments.
Do the following in R session:
``` r
# Make sure to install required packages:
if(!require(usethis)) {
install.packages("usethis")
}
if(!require(beepr)) {
install.packages("beepr")
}
# Open your Rprofile:
usethis::edit_r_profile()
# When .Rprofile is open copy and paste the following line at the end,
and then save.
options(error = beepr::beep)
# Restart yR session, and test whether you hear jingle sound per error:
stop("foo")
```
Hope this helps.
Best regards,
JooYoung
--
--------------------
JooYoung Seo, CPACC
Ph.D. Candidate (ABD),
RStudio's Trusted Data-Science Instructor
Learning, Design, and Technology
Learning and Performance Systems
The Pennsylvania State University
Site: https://jooyoungseo.com/
Phone: +1 (814) 777-5825
E-mail: jzs323 at psu.edu
More information about the BlindRUG
mailing list