{"id":46973468,"url":"https://github.com/sol-eng/accesstocare","last_synced_at":"2026-03-11T12:05:35.000Z","repository":{"id":101027841,"uuid":"400257260","full_name":"sol-eng/accesstocare","owner":"sol-eng","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-18T03:18:33.000Z","size":21660,"stargazers_count":1,"open_issues_count":12,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-18T06:46:46.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sol-eng.github.io/accesstocare","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sol-eng.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-08-26T17:47:41.000Z","updated_at":"2026-02-18T03:16:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8ef5b12-514e-4977-b82e-1f61e6e1238d","html_url":"https://github.com/sol-eng/accesstocare","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sol-eng/accesstocare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sol-eng%2Faccesstocare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sol-eng%2Faccesstocare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sol-eng%2Faccesstocare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sol-eng%2Faccesstocare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sol-eng","download_url":"https://codeload.github.com/sol-eng/accesstocare/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sol-eng%2Faccesstocare/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30380935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"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":"2026-03-11T12:05:34.279Z","updated_at":"2026-03-11T12:05:34.994Z","avatar_url":"https://github.com/sol-eng.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\"\n)\n```\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/sol-eng/accesstocare/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/sol-eng/accesstocare/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/sol-eng/accesstocare/graph/badge.svg)](https://app.codecov.io/gh/sol-eng/accesstocare)\n\u003c!-- badges: end --\u003e\n\n## Introduction\n\nAn R package to make it easy to view, copy, interact and publish the data\nproducts resulting from the Access to Care analysis.  It also contains handy\nutility functions, and the data needed to create a consistent set of examples\nacross the multiple data product types.\n\n## Analysis Background\n\nThis project combines US Census population data with hospital data provided by\nMedicare. The Census data is as of 2024, and the hospital Medicare data is as of\n2025. The analysis uses individual counties as the unit of measurement. A county\nis considered underserved based on a linear model that compares the number of hospitals\nto the population.\n\n## Quick Start: Deploy to Posit Connect\n\nThe fastest way to get started is to deploy the pre-built content collection directly to your Posit Connect instance.\n\n### Programmatic deployment\n\n1. Clone the [sol-eng/access-to-care](https://github.com/sol-eng/access-to-care) repository:\n\n```bash\ngit clone https://github.com/sol-eng/access-to-care.git\ncd access-to-care\n```\n\n2. Install the `accesstocare` package:\n\n```{r, eval = FALSE}\npak::pak(\"sol-eng/accesstocare\")\n```\n\n3. Deploy all content to Posit Connect:\n\n```{r, eval = FALSE}\nlibrary(accesstocare)\ndeploy_content()\n```\n\nThis will automatically deploy all example data products to your Posit Connect instance. The function will:\n\n- Deploy most content using Git-backed deployment for version control and easy updates\n- Set custom [thumbnails](https://docs.posit.co/connect/user/content-settings/#content-image) for each content item\n- Configure [vanity URLs](https://docs.posit.co/connect/user/content-settings/#vanity-url) for easy access\n\n**Note:** The [pins](https://pins.rstudio.com/) content (pins-data and pins-model) will be deployed directly from your local machine rather than using Git-backed deployment, as they leverage [Posit Connect's pins board](https://docs.posit.co/connect/user/pins/) infrastructure. Additionally, a [Vetiver](https://vetiver.rstudio.com/) API endpoint will be created for the model pin, enabling model serving and predictions through a REST API.\n\n### Manual deployment\n\nIf you prefer not to deploy programmatically, you can deploy the content manually through the Posit Connect interface:\n\n1. Clone the [sol-eng/access-to-care](https://github.com/sol-eng/access-to-care) repository\n2. Follow the instructions for [linking Git to Posit Connect](https://docs.posit.co/connect/user/git-backed/#linking-git-to-posit-connect) to deploy the content\n\n### Customizing content\n\nIf you want to customize the example content:\n\n1. Fork the [sol-eng/access-to-care](https://github.com/sol-eng/access-to-care) repository\n2. Clone your fork locally\n3. Install the package:\n\n```{r, eval = FALSE}\npak::pak(\"sol-eng/accesstocare\")\nlibrary(accesstocare)\n```\n\n4. Generate fresh content:\n\n```{r, eval = FALSE}\ncreate_content()\n```\n\n5. Make your edits to the content folders\n\n6. Ensure the manifests for Connect are still current\n\n```{r, eval = FALSE}\ncreate_manifests()\n```\n\n7. Deploy to Posit Connect:\n\n```{r, eval = FALSE}\ndeploy_content()\n```\n\nThis will update any needed manifests and deploy your customized content\n\n## Available Content\n\nThe package includes 15 example data products demonstrating different ways to visualize and present the Access to Care analysis across multiple frameworks and languages:\n\n- `\"api-python\"` - REST API using FastAPI and Python\n- `\"api-r\"` - REST API using Plumber and R\n- `\"app-python\"` - Python Dash application\n- `\"app-r\"` - Shiny application\n- `\"connectwidgets\"` - Overview application listing all related content\n- `\"dashboard-r\"` - Quarto dashboard with R\n- `\"htmlwidgets-r\"` - Interactive county-level plot\n- `\"pdf-r\"` - PDF report\n- `\"pins-data\"` - Data file for pins deployment\n- `\"pins-model\"` - Model file for pins deployment (linear regression for hospital/population analysis)\n- `\"plot-r\"` - Static ggplot2 map of entire country\n- `\"presentation-python\"` - Quarto presentation (Python)\n- `\"presentation-r\"` - Quarto presentation (R)\n- `\"report-python\"` - Quarto HTML document with Python, Polars, Plotnine, and Great Tables\n- `\"report-r\"` - R Markdown HTML report with email template\n\nIf you wish to create individual content locally, you can use these values with `create_content()`:\n\n```{r, eval = FALSE}\n# Create a specific content type\ncreate_content(content = \"app-r\")\n\n# Or create all content\ncreate_content(content = \"all\")\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsol-eng%2Faccesstocare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsol-eng%2Faccesstocare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsol-eng%2Faccesstocare/lists"}