Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/aleksanderbl29/aleksander

Package of personal functions
https://github.com/aleksanderbl29/aleksander

Last synced: about 1 month ago
JSON representation

Package of personal functions

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%"
)
```

# aleksandeR

[![R-CMD-check](https://github.com/aleksanderbl29/aleksandeR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/aleksanderbl29/aleksandeR/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/aleksanderbl29/aleksandeR/graph/badge.svg?token=FIXGM13TQF)](https://codecov.io/gh/aleksanderbl29/aleksandeR)

This package exists to make my personal convenience functions portable and easy to share.

## Installation

You can install the development version of aleksandeR from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("aleksanderbl29/aleksandeR")
library(aleksandeR)
```

## Functions

The functions of this package all belong to one of the following types:

1. Formatting/output (great for Quarto or Rmarkdown)
2. ggplot themes
3. Misc. functions

### Formatting and output

I currently have `format_num()` that formats numbers in a way that conforms to nothern european number presentation standards.

### Themes for ggplot2

All my custom themes are very close to either `ggplot2::theme_minimal()` or `cowplot::theme_cowplot()` but have my own twists and personal defaults integrated. The themes are created for each type of plot and can be called individually or through the aptly named `theme_aleksander()`.

### Misc.

This includes `pkg_bib()`.

## Development

This package is built with the instructions from the great package-book [R Packages (2e)](https://r-pkgs.org).

For the themes I try to do test-driven development. It was first introduced to me in the great video series by [Pat Schloss](https://www.schlosslab.org/labbies/schloss.html). Take a look if you're interested. [Video link](https://www.youtube.com/watch?v=TaNvqwMmHus)