jdenticon {jdenticon}R Documentation

Create a Jdenticon.

Description

Create a Jdenticon.

Usage

jdenticon(
  value = NULL,
  filePath = tempdir(),
  fileName = glue::glue("jdenticon_{size}_{value}"),
  size = "100",
  config = NULL,
  type = "png",
  preview = interactive() && Sys.getenv("RSTUDIO") == "1",
  return_list = FALSE
)

Arguments

value

character Value to be converted to hexadecimal hash to render Jdenticon. Cannot contain characters that are reserved for filepaths:

filePath

character File path to save Jdenticon .png to. If NULL, defaults to current working directory.

fileName

character File name to save Jdenticon .png as. If NULL, defaults to ⁠temp_jdenticon_{value}⁠.

size

numeric Size of Jdenticon. Default == 100.

config

list of jdenticon configuration options (see the jdenticon documentation)

type

Image type (default 'png', or 'svg')

preview

boolean Preview Jdenticon in viewer pane?

return_list

boolean Return full list object with all settings?

Value

Path to Jdenticon icon file, or (if return_list is true) a list with all parameters (including path).

Examples

## Not run: 
jdenticon(value = 'mango')

## End(Not run)


[Package jdenticon version 0.1.1 Index]