Learn R Programming

Rmoji (version 0.1.0)

insert_emoji: 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)

Value

The emoji used (invisibly).

Arguments

name

The name of the emoji (case-insensitive).

default

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

Examples

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

Run the code above in your browser using DataLab