ShinyConf 2024
Canadian scientific consulting firm specializing in human behavior in the airline industry
Learn more: https://presagegroup.com/
Randall Boyes (Director of Analytics)
Amy Ecclestone (Junior Data Analyst)
Brooke Linden (Director of Research)
Umair Durrani (Junior Data Scientist)
Accidents directly caused by pilot errors account for about 70% of the total accidents
Sources: Unstable approach; Statistics
A novel assessment tool to optimize learning opportunities and performance outcomes for trainee pilots.
{firebase} is great but with limited UI customization
Requirement: Register and sign in with ID instead of email
Meet a new package {frbs} by Kennedy Mwavu
Useful functions:
frbs_sign_up(email, password)
frbs_sign_in(email, password)
Customize UI as you like. For example, {frbs-examples} also by Kennedy Mwavu:
With bslib::bs_theme
:
Student UI
Instructor UI
Cloud Firestore is a scalable NoSQL database
We developed our own
frstore_create_document
frstore_patch
frstore_get
Requirement: Compare a pilot with average pilot
Example: Average skill by homeworld and starships:
GitHub actions
on:
workflow_dispatch:
schedule:
- cron: "00 00 * * *"
name: calculate average
jobs:
run-r-script:
runs-on: ubuntu-latest
env:
FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }}
PASSWORD: ${{ secrets.PASSWORD }}
GH_PAT: ${{ secrets.GH_PAT }} # Add the GitHub PAT secret
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 2
packages:
any::remotes
- name: Install R packages
run: |
Rscript -e 'remotes::install_version("dplyr", version = "1.1.4")'
Rscript -e 'remotes::install_version("jsonlite", version = "1.8.7")'
Rscript -e 'remotes::install_version("httr2", version = "1.0.0")'
Rscript -e 'remotes::install_version("tidyr", version = "1.3.1")'
Rscript -e 'remotes::install_version("stringr", version = "1.5.1")'
Rscript -e 'remotes::install_version("lubridate", version = "1.9.3")'
Rscript -e 'remotes::install_version("purrr", version = "1.0.2")'
Rscript -e 'remotes::install_version("tibble", version = "3.2.1")'
Rscript -e 'remotes::install_github("kennedymwavu/frbs", auth_token = Sys.getenv("GH_PAT"))'
- name: run-script
run: Rscript process_data_to_create_averages.R
{bslib} makes UI customization easy
β
Online, fast and reliable
β
Take data from student pilots
β
Personal dashboard for students
β
Separate student and instructor user interfaces
β
Accessible on desktop, iPad and cellphone