Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential Case Handling Bug #71

Closed
sophiestrazie opened this issue Feb 18, 2023 · 1 comment
Closed

Potential Case Handling Bug #71

sophiestrazie opened this issue Feb 18, 2023 · 1 comment

Comments

@sophiestrazie
Copy link

Situation: I wanted to integrate a teddy bear (it doesn't have to be this one). This shouldn't be relevant because I'm not knitting yet, but just in case it is, know that I'm working in Xaringan (testing this with RMarkdown chunks).

fontawesome("teddy-bear", style = "regular") produces:

Error in icon_fn$get():
! The teddy-bear icon could not be found in this icon set.
Backtrace:

  1. icons::fontawesome("teddy-bear", style = "regular")
  2. icon_fn$get(c(style, name))

and when I change it to just bear and style regular I get:

Error in icon_fn$get():
! The bear icon could not be found in this icon set.
Backtrace:

  1. icons::fontawesome("bear", style = "regular")
  2. icon_fn$get(c(style, name))

the traceback for bear
Screenshot 2023-02-18 at 6 10 27 PM

While icons::icon_find('bear') produces:

$set
Font Awesome icon set (version 6.3.0)
$path
[1] "bear"

attr(,"class")
[1] "icon_dir" "list"

icons::icon_find('bear') outputs

`named list()

TLDR: Does the bear exist and how can I access it/versions of it?

@mitchelloharawild
Copy link
Owner

Apologies for not getting back to you sooner, for anyone who may be having a similar issue the teddy-bear icon is part of font awesome pro, which is currently not directly supported by the package. If you do have a pro license, you can download the svgs you wish to use, and then create a custom icon set using the icons::icon_set() function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants