insert_emoji: Insert Emoji into R Script using a function

View source: R/insert_emoji.R

insert_emojiR Documentation

Insert Emoji into R Script using a function

Description

Inserts an emoji by name from the emoji_dict through writing the function in the cursor position of the Rstudio Document.

Usage

insert_emoji(name, default = NULL)

Arguments

name

The name of the emoji (case-insensitive).

default

A default emoji to use if the name is not found.

Value

The emoji used (invisibly).

Examples

if (interactive()) {
  insert_emoji("smile")
  insert_emoji("notarealemoji", default = "?")
}

Rmoji documentation built on June 8, 2025, 12:25 p.m.