Title: | A Wrapper for the Node.js 'Jdenticon' Library |
Version: | 0.1.1 |
Description: | A Wrapper for the Node.js 'Jdenticon' https://jdenticon.com/ Library. Uses 'esbuild' https://esbuild.github.io/ to reduce user dependencies. |
License: | MIT + file LICENSE |
Encoding: | UTF-8 |
RoxygenNote: | 7.2.1 |
Suggests: | testthat (≥ 3.0.0) |
Config/testthat/edition: | 3 |
Imports: | fs, processx, yesno, magick, glue, jsonlite |
NeedsCompilation: | no |
Packaged: | 2023-04-24 12:55:33 UTC; matthewroumaya |
Author: | Matt Roumaya |
Maintainer: | Matt Roumaya <matthewroumaya@gmail.com> |
Repository: | CRAN |
Date/Publication: | 2023-04-24 17:10:02 UTC |
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 |
|
filePath |
|
fileName |
|
size |
|
config |
list of jdenticon configuration options (see the jdenticon documentation) |
type |
Image type (default 'png', or 'svg') |
preview |
|
return_list |
|
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)
Install jdenticon npm dependency.
Description
Install jdenticon npm dependency.
Usage
jdenticon_npm_install(force = FALSE)
Arguments
force |
|
Value
Updated inst/node_modules
folder.
Examples
## Not run:
jdenticon_npm_install(force = TRUE)
## End(Not run)