Skip to contents

This function creates a basic R package logo. The logo has a white background and the package name (with or without curly brackets) in the center. The font size for the package name is scaled such that it fits inside the logo. Type ?oeli to see an example.

Usage

package_logo(package_name, brackets = TRUE, use_logo = FALSE)

Arguments

package_name

[character(1)]
The package name.

brackets

[logical(1)]
Curly brackets around the package name?

[logical(1)]
Run use_logo in the end?

Value

A ggplot object.

Details

The function optionally calls use_logo if use_logo = TRUE to set up the logo for a package.

Examples

package_logo("my_package", brackets = TRUE, use_logo = FALSE)