[BlindRUG] [EXTERNAL EMAIL] Good tip: Playing an auditory error sound in R

Robin Williams Robin.Williams at atass-sports.co.uk
Wed Apr 7 08:49:47 UTC 2021


Thanks for this, JooYoung. I have been meaning to set something like this up for some time, and you've saved me the work 😊


-----Original Message-----
From: BlindRUG <blindrug-bounces at nfbnet.org> On Behalf Of JooYoung Seo via BlindRUG
Sent: 07 April 2021 04:19
To: BlindRUG at nfbnet.org
Cc: JooYoung Seo <jooyoung at psu.edu>
Subject: [EXTERNAL EMAIL] [BlindRUG] Good tip: Playing an auditory error sound in R

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

_______________________________________________
BlindRUG mailing list
BlindRUG at nfbnet.org
http://nfbnet.org/mailman/listinfo/blindrug_nfbnet.org
To unsubscribe, change your list options or get your account info for BlindRUG:
http://nfbnet.org/mailman/options/blindrug_nfbnet.org/robin.williams%40atass-sports.co.uk
The list archive can be viewed at:
http://www.nfbnet.org/pipermail/blindrug_nfbnet.org
More information and useful links about using R as a blind person can be obtained at:
http://R-Resources.massey.ac.nz

Look for help using R commands by reading the accessible e-book "Let's Use R Now" compiled by Jonathan Godfrey at:
http://R-Resources.massey.ac.nz/lurn/front.html



More information about the BlindRUG mailing list