Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elipousson/openxlsx2extras

Extra Functions for the openxlsx2 package
https://github.com/elipousson/openxlsx2extras

Last synced: about 5 hours ago
JSON representation

Extra Functions for the openxlsx2 package

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# openxlsx2Extras

[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

The goal of openxlsx2Extras is to extend the functionality of the {openxlsx2} R package.

## Installation

You can install the development version of openxlsx2Extras like so:

``` r
pak::pkg_install("elipousson/openxlsx2Extras")
```

## Example

This is a basic example which shows how to use `wb_save_ext()` to set a filename based on the workbook title:

```{r}
library(openxlsx2)
library(openxlsx2Extras)

withr::with_tempdir({
wb_workbook(
title = "Title used for output file"
) |>
wb_add_worksheet() |>
wb_save_ext()

fs::dir_ls()
})
```