{"id":14066241,"url":"https://github.com/rstudio/demo-co-quarto-report","last_synced_at":"2025-04-25T19:31:23.000Z","repository":{"id":192103397,"uuid":"677467534","full_name":"rstudio/demo-co-quarto-report","owner":"rstudio","description":"Example Quarto report on customer churn","archived":false,"fork":false,"pushed_at":"2024-10-07T21:37:22.000Z","size":8682,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-04T02:34:32.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://colorado.posit.co/rsc/demoCo-churn/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rstudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-08-11T16:38:33.000Z","updated_at":"2024-10-22T14:57:26.000Z","dependencies_parsed_at":"2024-08-13T07:10:44.895Z","dependency_job_id":"c8b0bc8b-98d2-48a8-a1e9-344bc888fb05","html_url":"https://github.com/rstudio/demo-co-quarto-report","commit_stats":null,"previous_names":["rstudio/demo-co-quarto-report"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fdemo-co-quarto-report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fdemo-co-quarto-report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fdemo-co-quarto-report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fdemo-co-quarto-report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rstudio","download_url":"https://codeload.github.com/rstudio/demo-co-quarto-report/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250882591,"owners_count":21502332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-08-13T07:05:00.262Z","updated_at":"2025-04-25T19:31:22.078Z","avatar_url":"https://github.com/rstudio.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# DemoCo Customer Churn Quarto Report\n\n![](images/report.png)\n\nThis Quarto report summarizes customer churn for DemoCo, an example company.\n\n-   View the report on [Posit Connect](https://pub.current.posit.team/churn-report/)\n-   Play with the code on [Posit Cloud](https://posit.cloud/content/6644960)\n\n## Build the reports\n\nYou can build the reports yourself on [Posit Cloud](https://posit.cloud/content/6644960).\n\n1.  **Render the HTML report:** Open `churn_report.qmd` and click on the drop-down arrow next to the *Render* button. Click *Render* *democo-html*.\n2.  **Render the PDF report:** Open `churn_report.qmd` and click on the drop-down arrow next to the *Render* button. Click *Render* *democo-pdf*.\n\n![](images/diagram.png)\n\n### Change the product type\n\n`churn_report.qmd` includes a [parameter](https://quarto.org/docs/computations/parameters.html#knitr), `product`, that controls which product type the report displays. There are three product types in the data: Standard, Premium, Professional.\n\n**To change the product type:**\n\nIn the YAML header of `churn_report.qmd`, update the `value` field of the `product` parameter to \"Premium\" or \"Professional\", then click *Render*.\n\n---\nparams: \n  product:\n    label: \"Product type\"\n    value: Professional\n    input: select\n    choices: [Standard, Premium, Professional]\n---\n\n### Publish to Posit Connect\n\nWe've published the HTML report to [Connect](https://pub.current.posit.team/churn-report/). The report is set to run once a week. You can publish the report to your own Connect account using the *Publish* button ![](images/publish-button.png) in the RStudio IDE, found in the upper-right corner of the Editor pane. Click ![](images/publish-button.png) \\\u003e *Posit Connect* \\\u003e *Publish document with source code* \\\u003e Add the URL of your Connect server \\\u003e *Publish*.\n\nSee this [guide](https://quarto.org/docs/publishing/rstudio-connect.html) for publishing Quarto documents for more details.\n\n## Themes\n\nBoth the HTML and PDF reports use a [custom Quarto format](https://quarto.org/docs/extensions/formats.html). You can find the custom format in the `_extensions` directory.\n\n## Customize the reports\n\nYou can also use this project as a template for your own reports.\n\nHere are some ways to modify the reports:\n\n-   Change the color scheme of the plots by changing the [color palette object](https://github.com/rstudio/demo-co-quarto-report/blob/6a62b3d699ecf2614745d373631cf7f54e6d844e/churn_report.qmd#L20), defined in the first chunk of `churn_report.qmd`.\n-   Read in different data in `churn_report.qmd`, and create your own plots.\n-   Modify the theme by editing the Quarto extension located in `_extensions/democo`. For more information about custom Quarto HTML themes, see [this guide](https://quarto.org/docs/output-formats/html-themes.html).\n    -   Change `logo-with-slogan.png` to change the logo image used in the HTML report.\n    -   Change `logo.png` to change the logo image used in the PDF report.\n-   Update the PDF [extension color scheme](https://github.com/rstudio/demo-co-quarto-report/blob/587c5eb6c543aaf9e7702ec3f0ab6ce2fb77476e/_extensions/demopdf/demopdf.tex#L15) in `demopdf.tex`. `light` defines the side panel color and `dark` defines the title and heading font color\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstudio%2Fdemo-co-quarto-report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frstudio%2Fdemo-co-quarto-report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstudio%2Fdemo-co-quarto-report/lists"}