{"id":32206728,"url":"https://github.com/unhcr-dataviz/unhcrdown","last_synced_at":"2026-02-21T03:32:33.057Z","repository":{"id":38776304,"uuid":"406894350","full_name":"unhcr-dataviz/unhcrdown","owner":"unhcr-dataviz","description":"UNHCR branded R Markdown templates for reports, presentations, and web documents","archived":false,"fork":false,"pushed_at":"2025-01-17T13:00:53.000Z","size":19170,"stargazers_count":24,"open_issues_count":4,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-22T05:43:54.040Z","etag":null,"topics":["pagedown","rmarkdown","rmarkdown-template","xaringan"],"latest_commit_sha":null,"homepage":"https://unhcr-dataviz.github.io/unhcrdown/","language":"SCSS","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/unhcr-dataviz.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-09-15T19:05:41.000Z","updated_at":"2025-10-06T09:36:57.000Z","dependencies_parsed_at":"2025-01-02T13:22:16.694Z","dependency_job_id":"90b96fc1-e671-4dc2-ab33-8ed86890a66b","html_url":"https://github.com/unhcr-dataviz/unhcrdown","commit_stats":null,"previous_names":["unhcr-dataviz/unhcrdown"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/unhcr-dataviz/unhcrdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unhcr-dataviz%2Funhcrdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unhcr-dataviz%2Funhcrdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unhcr-dataviz%2Funhcrdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unhcr-dataviz%2Funhcrdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unhcr-dataviz","download_url":"https://codeload.github.com/unhcr-dataviz/unhcrdown/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unhcr-dataviz%2Funhcrdown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29672704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T03:11:15.450Z","status":"ssl_error","status_checked_at":"2026-02-21T03:10:34.920Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["pagedown","rmarkdown","rmarkdown-template","xaringan"],"created_at":"2025-10-22T05:35:00.841Z","updated_at":"2026-02-21T03:32:33.048Z","avatar_url":"https://github.com/unhcr-dataviz.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# unhcrdown \u003ca href=\"https://github.com/unhcr-dataviz/unhcrdown\"\u003e\u003cimg src='man/figures/unhcrdown_sticker.png' align=\"right\" width=\"140\" alt=\"unhcrdown package hex sticker\" /\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)\n[![R-CMD-check](https://github.com/unhcr-dataviz/unhcrdown/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/unhcr-dataviz/unhcrdown/actions/workflows/R-CMD-check.yaml)\n[![CRAN status](https://www.r-pkg.org/badges/version/unhcrdown)](https://CRAN.R-project.org/package=unhcrdown)\n\u003c!-- badges: end --\u003e\n\nStreamline your document creation process with the `{unhcrdown}` R package. It provides a comprehensive set of templates designed to align your reports and presentations with **UNHCR's brand guidelines**. This package offers ready-to-use R Markdown templates for various document types, ensuring consistent UNHCR visual identity across your communications.\n\n## Features\n\n- A collection of professional templates following UNHCR brand guidelines\n- Ready-to-use formats for reports, presentations, and websites\n- Easy-to-use functions that work seamlessly with R Markdown\n- Consistent styling across all document types\n\n## Installation\n\nGet started by installing the `{unhcrdown}` package from CRAN with:\n\n```{r install, eval=FALSE}\ninstall.packages(\"unhcrdown\")\n```\n\nOr retrieve the development version from Github using the `{pak}` package:\n\n```{r pak, eval=FALSE}\n# If pak is not yet installed, uncomment the following line:\n# install.packages(\"pak\")\n\npak::pkg_install(\"unhcr-dataviz/unhcrdown\")\n```\n\n## Usage\n\nThe `{unhcrdown}` templates are designed for R Markdown projects, any of the available format can simply be added to `output` parameter of the R Markdown `yaml` header. For example:\n\n```{yaml}\n---\ntitle: \"UNHCR Branded Report\"\nauthor: \"First Last Name\"\ndate: \"`r Sys.Date()`\"\noutput: unhcrdown::paged_report\n---\n```\n\n### Available Formats\n\n- **PDF Reports**: Two HTML to PDF options:\n  ```{yaml}\n  output: unhcrdown::paged_report  # Full template with cover\n  # or\n  output: unhcrdown::paged_simple  # Streamlined version\n  ```\n\n- **Word Documents**: Professional reports using `officedown::rdocx_document`\n  ```{yaml}\n  output: unhcrdown::docx_simple\n  ```\n\n- **PowerPoint**: Presentation slides\n  ```{yaml}\n  output: unhcrdown::pptx_slides\n  ```\n\n- **HTML Slides**: Web presentations\n  ```{yaml}\n  output: unhcrdown::html_slides\n  ```\n\n- **HTML Page**: Web based documents\n  ```{yaml}\n  output: unhcrdown::html_page\n  ```\n\n### RStudio Integration\n\nCreate new documents directly from RStudio:\n\n1. File → New File → R Markdown\n2. Select \"From Template\"\n3. Choose any `{unhcrdown}` template\n\n```{r child=\"man/rmdfragments/unhcr_tools.Rmd\"}\n```\n\n## Acknowledgements\n\nWe extend our gratitude to the creators of the [`pagedown`](https://github.com/rstudio/pagedown) package that influenced the development of `unhcrdown`.\n\n## Contribution and Code of Conduct\n\nContributions to `{unhcrdown}` are highly valued. To ensure a welcoming and inclusive community, we follow our [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). If you have suggestions, uncover bugs, or envision new features, kindly submit an [issue on GitHub](https://github.com/unhcr-dataviz/unhcrdown/issues).\n\n## License\n\nThis package is distributed under the [MIT License](https://github.com/unhcr-dataviz/unhcrdown/blob/master/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funhcr-dataviz%2Funhcrdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funhcr-dataviz%2Funhcrdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funhcr-dataviz%2Funhcrdown/lists"}