All Projects → davidgohel → Officer

davidgohel / Officer

👮 officer: office documents from R

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Officer

Mschart
📊 mschart: office charts from R
Stars: ✭ 94 (-76.79%)
Mutual labels:  powerpoint, word, cran
Docxtemplater
Generate docx pptx and xlsx (Microsoft Word, Powerpoint, Excel documents) from templates, from Node.js, the Browser and the command line / Demo: https://www.docxtemplater.com/demo
Stars: ✭ 1,990 (+391.36%)
Mutual labels:  powerpoint, word
Gotenberg Php Client
PHP client for the Gotenberg API
Stars: ✭ 80 (-80.25%)
Mutual labels:  powerpoint, word
Unioffice
Pure go library for creating and processing Office Word (.docx), Excel (.xlsx) and Powerpoint (.pptx) documents
Stars: ✭ 3,111 (+668.15%)
Mutual labels:  powerpoint, word
Huxtable
An R package to create styled tables in multiple output formats, with a friendly, modern interface.
Stars: ✭ 277 (-31.6%)
Mutual labels:  powerpoint, cran
Gotenberg Go Client
Go client for the Gotenberg API
Stars: ✭ 35 (-91.36%)
Mutual labels:  powerpoint, word
Vbasync
Cross-platform tool to synchronize macros from an Office VBA-enabled file with a version-controlled folder
Stars: ✭ 98 (-75.8%)
Mutual labels:  powerpoint, word
Rage
Rage allows you to execute any file in a Microsoft Office document.
Stars: ✭ 68 (-83.21%)
Mutual labels:  word, powerpoint
OfficeExtractor
Extracts embedded OLE objects from Word, Excel, PowerPoint, Open Office and RTF files without needing the original programs
Stars: ✭ 67 (-83.46%)
Mutual labels:  word, powerpoint
Office365FiddlerExtension
This Fiddler Extension is an Office 365 centric parser to efficiently troubleshoot Office 365 client application connectivity and functionality.
Stars: ✭ 23 (-94.32%)
Mutual labels:  word, powerpoint
Office Ribbonx Editor
An overhauled fork of the original Custom UI Editor for Microsoft Office, built with WPF
Stars: ✭ 205 (-49.38%)
Mutual labels:  powerpoint, word
craXcel-cli
Command line application to unlock Microsoft Office password protected files.
Stars: ✭ 44 (-89.14%)
Mutual labels:  word, powerpoint
Docs2Pdf
Bulk convert word/powerpoint/excel file to pdf.
Stars: ✭ 27 (-93.33%)
Mutual labels:  word, powerpoint
rgpipe
lesspipe for ripgrep for common new filetypes using few dependencies
Stars: ✭ 21 (-94.81%)
Mutual labels:  word, powerpoint
GDINA
GDINA
Stars: ✭ 23 (-94.32%)
Mutual labels:  cran
digest
R package to create compact hash digests of R objects
Stars: ✭ 94 (-76.79%)
Mutual labels:  cran
rsoi
Import Climate Indices into R
Stars: ✭ 14 (-96.54%)
Mutual labels:  cran
Sensitive
敏感词查找,验证,过滤和替换 🤓 FindAll, Validate, Filter and Replace words.
Stars: ✭ 292 (-27.9%)
Mutual labels:  word
Heatmaply
Interactive Heat Maps for R Using plotly
Stars: ✭ 275 (-32.1%)
Mutual labels:  cran
rcppgsl
Rcpp integration for GNU GSL vectors and matrices
Stars: ✭ 28 (-93.09%)
Mutual labels:  cran

officer R package

Make corporate reporting with minimum hassle

R build status version codecov test coverage

flextable logo The officer package lets R users manipulate Word (.docx) and PowerPoint (*.pptx) documents. In short, one can add images, tables and text into documents from R. An initial document can be provided; contents, styles and properties of the original document will then be available.

Ressources

The help pages are in a bookdown located at:

https://ardata-fr.github.io/officeverse/

Manuals are available at:

https://davidgohel.github.io/officer/.

Word documents

The read_docx() function will read an initial Word document (an empty one by default) and lets you modify its content later.

The package provides functions to add R outputs into a Word document:

  • images: produce your plot in png or emf files and add them into the document, as a whole paragraph or inside a paragraph.
  • tables: add data.frames as tables, format is defined by the associated Word table style.
  • text: add text as paragraphs or inside an existing paragraph, format is defined by the associated Word paragraph and text styles.
  • field codes: add Word field codes inside paragraphs. Field codes is an old feature of MS Word to create calculated elements such as tables of contents, automatic numbering and hyperlinks.

In a Word document, one can use cursor functions to reach the beginning or end of a document, or a particular paragraph containing a given text. This cursor concept has been implemented to make the post processing of files easier.

File generation is performed with the print function.

import Word document in a data.frame

The function docx_summary() reads and imports content of a Word document into a data.frame. The function handles paragraphs, tables and section breaks.

PowerPoint documents

The function read_pptx() will read an initial PowerPoint document (an empty one by default) and let you modify its content later.

The package provides functions to add R outputs into existing or new PowerPoint slides:

  • images: produce your plot in png or emf files and add them in a slide.
  • tables: add data.frames as tables, format is defined by the associated PowerPoint table style.
  • text: add text as paragraphs or inside an existing paragraph, format is defined in the corresponding layout of the slide.

In a PowerPoint document, one can set a slide as selected and reach a particular shape (and remove it or add text).

File generation is performed with the print() function.

import PowerPoint document in a data.frame

The pptx_summary() function reads and imports content of a PowerPoint document into a data.frame. The function handles paragraphs, tables and images.

Extensions

Tables and package flextable

The package flextable brings a full API to produce nice tables and use them with packages officer and rmarkdown.

Vector graphics with package rvg

The package rvg brings an API to produce nice vector graphics that can be embedded in PowerPoint documents or Excel workbooks with officer.

Native office charts with package mschart

The package mschart combined with officer can produce native office charts in PowerPoint and Word documents.

Installation

You can get the development version from GitHub:

devtools::install_github("davidgohel/officer")

Or the latest version on CRAN:

install.packages("officer")

Getting help

If you have questions about how to use the package, visit Stack Overflow’s officer tag and post your question there. I usually read them and answer when possible.

Contributing to the package

Code of Conduct

Anyone getting involved in this package agrees to our Code of Conduct.

Bug reports

When you file a bug report, 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.

Contributing to the package development

A great way to start is to contribute an example or improve the documentation.

If you want to submit a Pull Request to integrate functions of yours, please provide:

  • the new function(s) with code and roxygen tags (with examples)
  • a new section in the appropriate vignette that describes how to use the new function
  • add corresponding tests in directory tests/testthat.

By using rhub (run rhub::check_for_cran()), you will see if everything is ok. When submitted, the PR will be evaluated automatically on travis and appveyor and you will be able to see if something broke.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].