By running runShinyApp() a user interface for the function AFfunction is started in RStudio. The app is also available online https://afheritability.shinyapps.io/afheritability/ (Note that the app is usually faster in the web browser Google Chrome or Firefox).