{"id":34985474,"url":"https://github.com/jumpingrivers/flu.dashboard","last_synced_at":"2026-05-19T13:37:44.846Z","repository":{"id":328017733,"uuid":"1002920656","full_name":"jumpingrivers/flu.dashboard","owner":"jumpingrivers","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-26T13:05:10.000Z","size":852,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T04:27:09.834Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jumpingrivers.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-16T10:52:05.000Z","updated_at":"2026-03-26T13:05:15.000Z","dependencies_parsed_at":"2025-12-11T07:02:01.983Z","dependency_job_id":null,"html_url":"https://github.com/jumpingrivers/flu.dashboard","commit_stats":null,"previous_names":["jumpingrivers/flu.dashboard"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/jumpingrivers/flu.dashboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jumpingrivers%2Fflu.dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jumpingrivers%2Fflu.dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jumpingrivers%2Fflu.dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jumpingrivers%2Fflu.dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jumpingrivers","download_url":"https://codeload.github.com/jumpingrivers/flu.dashboard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jumpingrivers%2Fflu.dashboard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33218956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:54:09.561Z","status":"ssl_error","status_checked_at":"2026-05-19T07:54:08.508Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-27T01:30:55.811Z","updated_at":"2026-05-19T13:37:44.840Z","avatar_url":"https://github.com/jumpingrivers.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flu Dashboard\n\nThe {flu.dashboard} R package contains:\n\n- A Shiny application for viewing the information provided in the application.\n\nFor information about the content and purpose of the application, read the file at [_inst/about/about_main.md_](inst/about/about_main.md).\n\nA version of this app is deployed to [gallery-flu.jmpr.io](https://gallery-flu.jmpr.io/).\nYou can also view some of the other apps, dashboards and widgets from Jumping Rivers in our [gallery](https://www.jumpingrivers.com/data-science/gallery/).\n\n## Environment variables\n\nThe app stores data using pins.\nThe current pin location used in the code is for a Posit Connect server.\nIf this is where your pins will be stored, you'll need to [create an API key](https://docs.posit.co/connect/user/api-keys/#api-keys-creating), or know what your existing one is.\n\nThen you'll need to add these details to an _.Renviron_ file, which contains the following details:\n\n```\nCONNECT_SERVER=https://your.connect.server\nCONNECT_API_KEY=AbCdE123456f\n```\n\nReplacing the placeholders with the value for your server address and API key.\n\nYou should not upload the .Renviron file as part of your bundle when deploying the application.\n\nIf the dashboard and the pre-processed data pins are deployed to the same Posit Connect server by the same user, these environment variables do not need to be configured for the application.\nPosit Connect will handle the authentication automatically.\n\n## Pins username\n\nThe file at *inst/data-processing/config.yml* is used to set the filename where pins are stored and the Posit Connect username that hosts the pin.\n\nIn order to load pins from the correct account name, you need to set your Posit Connect username in the `pins_username` variable.\nThe default setting is\n\n```yaml\ndefault:\n  pins_username: !expr Sys.getenv(\"PINS_USERNAME\", unset = \"your_username\")\n```\n\nThis allows you to define your username either as (in order of priority):\n\n- An environment variable called `PINS_USERNAME`\n- By replacing the `your_username` placeholder in the *inst/data-processing/config.yml* file.\n\n## For application users\n\nTo install the application, use:\n\n```r\nremotes::install_github(\"jumpingrivers/flu.dashboard\")\n```\n\nWith any necessary [environment variables](#environment-variables) set to connect to the data sources through {pins}, you can start the Shiny application using:\n\n```r\nflu.dashboard::run()\n```\n\n## For application developers\n\n### Restoring {renv}\n\nIf you are forking the repository to develop, note this uses {renv} to manage R package dependencies.\nTo install the R packages from the {renv} lockfile, run `renv::restore()` or read [documentation from the {renv} website](https://rstudio.github.io/renv/#workflow).\n\n### Running the application\n\nFrom the root directory of the repository, you can start the application in the normal way for a Shiny application.\n\n```r\nshiny::runApp()\n```\n\n### Deploying the application\n\n1. If you have introduced or updated packages for the application, update the {renv} lockfile\n\n    ```r\n    renv::snapshot(dev = TRUE)\n    ```\n\n1. If performing a git-backed deployment from Posit Connect, update the _manifest.json_ file:\n\n    ```r\n    rsconnect::write_manifest()\n    ```\n\n1. Deploy to your hosting service from the *app.R* file at the root of the repository, or allow Posit Connect's git-backed deployment to perform the deployment and automatically check for updates to the manifest.json file by pushing changes to the git repository.\n\n## Authors and acknowledgment\n\nThis has been created by the Data Science team at Jumping Rivers.\nYou can get in touch with us at [hello@jumpingrivers.com](mailto:hello@jumpingrivers.com).\n\nWe'd like to thank Andy McCann and the DS Team within NUCT at NHS ML who created the original inspiration inspiration for this app with their ['flu-tracker Shiny application](https://nhsml-nuct.shinyapps.io/NationalFlu/) ([source code](https://github.com/MLCSU/NationalFlu)).\n\n## License\n\nThis R package has a [GNU GPL v3 license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjumpingrivers%2Fflu.dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjumpingrivers%2Fflu.dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjumpingrivers%2Fflu.dashboard/lists"}