https://github.com/Harrison4192/presenter
Export Data with Style
https://github.com/Harrison4192/presenter
excel powerpoint r
Last synced: 3 months ago
JSON representation
Export Data with Style
- Host: GitHub
- URL: https://github.com/Harrison4192/presenter
- Owner: Harrison4192
- License: other
- Created: 2021-01-27T23:25:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-12T20:00:45.000Z (about 1 year ago)
- Last Synced: 2024-11-25T13:44:27.949Z (3 months ago)
- Topics: excel, powerpoint, r
- Language: R
- Homepage: https://harrison4192.github.io/presenter/
- Size: 2.13 MB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - Harrison4192/presenter - Export Data with Style (R)
README
---
output: github_document
---```{r, include = FALSE}
library(badger)knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# presenter
[](https://lifecycle.r-lib.org/articles/stages.html)
[](https://CRAN.R-project.org/package=presenter)
[](https://github.com/Harrison4192/presenter/actions)`r badger::badge_cran_download("presenter", "grand-total", "blue")`
`r badger::badge_code_size("Harrison4192/presenter")`
`r badger::badge_last_commit("Harrison4192/presenter")`
## InstallationYou can Install the released version of presenter from [CRAN](https://CRAN.R-project.org) with:
``` r
install.packages("presenter")
```And the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("Harrison4192/presenter")
```
## Package DescriptionThis package consists of custom wrapper functions using packages [openxlsx](https://ycphs.github.io/openxlsx/index.html), [flextable](https://davidgohel.github.io/flextable/), and [officer](https://davidgohel.github.io/officer/) to create highly formatted MS office friendly output of your data frames. This should be useful to anyone who relies on sharing information in excel or powerpoint in business and consulting scenarios. The functions are opinionated in the sense that they expect the input data frame to have certain properties in order to take advantage of the automated formatting. Certain novel features of this package include:
* **Supports Lists:** `make_simple_excel` and `make_powerpoint` can accept single tables or lists of tables, which will be given separate sheets
* **Automatic Naming:** You can pipe your data frame, list, or flextable directly into the function. An excel or powerpoint will be generated with no further arguments necessary, named after your table. In order to avoid name clashing, a random string is appended to the name so files will not be overwritten. In the case of a multi-pipe operation piped into your function, a generic name will be randomly generated.
* **Automatic Opening:** Files are automatically opened upon generation so you can inspect your output.
* **header words:** By supplying a character vector to the "header_word" argument, you can automatically merge or color adjacent column headers based off a common key word. This functionality relies on word separation with "." or "_" and will not work properly in other cases like snakeCase. Can be left blank for no special formatting.
* **last id col:** This package is optimized for tables that begin with their "id" or "group" columns and then followed by "value" columns. By supplying an integer position of the last id column, you can apply special formatting for the id cols. Can be left blank for no special formatting.