{"id":13858098,"url":"https://github.com/davidgohel/officer","last_synced_at":"2025-10-21T20:58:21.838Z","repository":{"id":9440907,"uuid":"62127714","full_name":"davidgohel/officer","owner":"davidgohel","description":":cop: officer: office documents from R","archived":false,"fork":false,"pushed_at":"2025-10-18T15:47:26.000Z","size":31570,"stargazers_count":662,"open_issues_count":18,"forks_count":118,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-10-21T20:58:19.296Z","etag":null,"topics":["cran","ms-office-documents","powerpoint","r","word"],"latest_commit_sha":null,"homepage":"https://ardata-fr.github.io/officeverse/","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/davidgohel.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","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":"2016-06-28T09:22:18.000Z","updated_at":"2025-10-19T05:51:20.000Z","dependencies_parsed_at":"2023-01-13T15:21:30.021Z","dependency_job_id":"cbf56712-8177-4f21-b241-ada460f37eb8","html_url":"https://github.com/davidgohel/officer","commit_stats":{"total_commits":1005,"total_committers":37,"mean_commits":27.16216216216216,"dds":0.08855721393034821,"last_synced_commit":"611328dba65904291ef308ae896b7bd2528df6b4"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/davidgohel/officer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgohel%2Fofficer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgohel%2Fofficer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgohel%2Fofficer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgohel%2Fofficer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidgohel","download_url":"https://codeload.github.com/davidgohel/officer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidgohel%2Fofficer/sbom","scorecard":{"id":326695,"data":{"date":"2025-08-11","repo":{"name":"github.com/davidgohel/officer","commit":"13c8da546632d0ca2ff4d6e86d2a160825cabe3e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 3/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 9 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/R-CMD-check.yaml:1","Warn: no topLevel permission defined: .github/workflows/lock.yaml:1","Warn: no topLevel permission defined: .github/workflows/pkgdown.yaml:1","Info: topLevel permissions set to 'read-all': .github/workflows/test-coverage.yaml:11","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/R-CMD-check.yaml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/R-CMD-check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lock.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/lock.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/pkgdown.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/pkgdown.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/pkgdown.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/pkgdown.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pkgdown.yaml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/pkgdown.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/test-coverage.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/test-coverage.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/test-coverage.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/test-coverage.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-coverage.yaml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/davidgohel/officer/test-coverage.yaml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  12 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T02:38:07.144Z","repository_id":9440907,"created_at":"2025-08-18T02:38:07.144Z","updated_at":"2025-08-18T02:38:07.144Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280333502,"owners_count":26312845,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cran","ms-office-documents","powerpoint","r","word"],"created_at":"2024-08-05T03:01:56.656Z","updated_at":"2025-10-21T20:58:21.821Z","avatar_url":"https://github.com/davidgohel.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\ntitle: \"officer R package\"\noutput:\n  github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  message = FALSE,\n  collapse = TRUE,\n  comment = \"#\u003e\"\n)\n```\n\n\u003e Make corporate reporting with minimum hassle\n\n[![R build status](https://github.com/davidgohel/officer/workflows/R-CMD-check/badge.svg)](https://github.com/davidgohel/officer/actions)\n[![version](https://www.r-pkg.org/badges/version/officer)](https://CRAN.R-project.org/package=officer)\n[![codecov test coverage](https://codecov.io/gh/davidgohel/officer/branch/master/graph/badge.svg)](https://app.codecov.io/gh/davidgohel/officer)\n\nThe officer package lets R users manipulate Word (`.docx`) and \nPowerPoint (`*.pptx`) documents. In short, one can add images, \ntables and text into documents from R. An initial document can \nbe provided; contents, styles and properties of the original \ndocument will then be available. It also supports the writing \nof 'RTF' documents.\n\n## Ressources\n\nThe help pages are in a bookdown located at:\n\nhttps://ardata-fr.github.io/officeverse/ \n\nManuals are available at:\n\nhttps://davidgohel.github.io/officer/.\n\n\n## Word documents\n\nThe `read_docx()` function will read an initial Word document (an \nempty one by default) and lets you modify its content later.\n\nThe package provides functions to add R outputs into a Word document:\n\n* images: produce your plot in png or emf files and add them into the document, \n  as a whole paragraph or inside a paragraph.\n* tables: add data.frames as tables, format is defined by the associated Word table style.\n* text: add text as paragraphs or inside an existing paragraph, format is defined by the associated Word paragraph and text styles.\n* field codes: add Word field codes inside paragraphs. Field codes is an old \n  feature of MS Word to create calculated elements such as tables of contents, \n  automatic numbering and hyperlinks.\n\nFile generation is performed with the `print` function.\n\n### import Word document in a data.frame\n\nThe function `docx_summary()` reads and imports content of a Word \ndocument into a data.frame. The function handles paragraphs, \ntables and section breaks. The function `docx_comments()` \nreads comments of a Word document and organise \nthe results into a data.frame.\n\n\n## PowerPoint documents\n\n\nThe function `read_pptx()` will read an initial PowerPoint document \n(an empty one by default) and let you modify its content later.\n\nThe package provides functions to add R outputs into existing or new PowerPoint slides:\n\n* images: produce your plot in png or emf files and add them in a slide.\n* tables: add data.frames as tables, format is defined by the associated PowerPoint table style.\n* text: add text as paragraphs or inside an existing paragraph, format is defined in the corresponding layout of the slide.\n\nIn a PowerPoint document, one can set a slide as selected and reach a particular shape (and remove it or add text). \n\nFile generation is performed with the `print()` function.\n\n### import PowerPoint document in a data.frame\n\nThe `pptx_summary()` function reads and imports content of a PowerPoint \ndocument into a data.frame. The function handles paragraphs, tables and images.\n\n## Extensions\n\n### Tables and package `flextable`\n\nThe package [flextable](https://ardata-fr.github.io/flextable-book/index.html)\nbrings a full API to produce nice tables and use them with packages officer \nand rmarkdown.\n\n### Vector graphics with package `rvg`\n\nThe package [rvg](https://github.com/davidgohel/rvg) brings an API to produce nice vector graphics that can be embedded in PowerPoint documents or Excel workbooks with `officer`.\n\n### Native office charts with package `mschart`\n\nThe package [mschart](https://github.com/ardata-fr/mschart) combined with `officer` can \nproduce native office charts in PowerPoint and Word documents.\n\n### Advance Word documents with R Markdown with package `officedown`\n\nThe package [officedown](https://ardata-fr.github.io/officeverse/) facilitates the formatting of Microsoft Word documents produced by R Markdown documents.\n\n\n## Installation\n\nYou can get the development version from GitHub:\n\n```{r eval = FALSE}\ndevtools::install_github(\"davidgohel/officer\")\n```\n\nOr the latest version on CRAN:\n\n```{r eval = FALSE}\ninstall.packages(\"officer\")\n```\n\n## Getting help\n\nIf you have questions about how to use the package, visit Stack Overflow's \n`officer` tag and post your question there. I usually read them and answer \nwhen possible. \n\n## Contributing to the package\n\n### Code of Conduct\n\nAnyone getting involved in this package agrees to our [Code of Conduct](https://github.com/davidgohel/officer/blob/master/CONDUCT.md).\n\n### Bug reports\n\nWhen you file a [bug report](https://github.com/davidgohel/officer/discussions/categories/q-a), please spend some time making it easy for me to follow and reproduce. The more time you spend on making the bug report coherent, the more time I can dedicate to investigate the bug as opposed to the bug report.\n\n### Contributing to the package development\n\nA great way to start is to contribute an example or improve the documentation.\n\nIf you want to submit a Pull Request to integrate functions of yours, please provide:\n\n* the new function(s) with code and roxygen tags (with examples)\n* a new section in the appropriate vignette that describes how to use the new function\n* add corresponding tests in directory `tests/testthat`.\n\nBy using rhub (run `rhub::check_for_cran()`), you will see if everything is ok.\nWhen submitted, the PR will be evaluated automatically on travis and appveyor and you will be able to see if something broke.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidgohel%2Fofficer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidgohel%2Fofficer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidgohel%2Fofficer/lists"}