Inserting an icon contained in a package in a Quarto document #13011
Replies: 4 comments 1 reply
-
Regarding fontawesome: Have a look at the Font Awesome Extension for Quarto. |
Beta Was this translation helpful? Give feedback.
-
The only way to work around this would be for your functions to emit URLs using GitHub raw paths.
|
Beta Was this translation helpful? Give feedback.
-
And to comment on this: this is indeed the other way when online resources is not an option. It is usually either disk (and quarto expect local to project for reproducibility) or online. So it would work if you offer a kind of install function that your user would use when starting a project with Plume. Otherwise, you could also consider a companion Quarto Extension to your package, possibly that could live in your package, as installing from a local path is ok. But this would be worth it if you need more than just shipping resources to the user. So it is either
|
Beta Was this translation helpful? Give feedback.
-
Awesome, thanks everyone for the super helpful answers! Will try all these solutions and see which one is the easiest to implement. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I've an R package that generates author information (author lists, contributions, etc.) for scientific writing. There's a feature to add ORCID icons after authors' name. The ORCID icon is shipped with the package and imported in a document via
system.file()
(https://github.com/arnaudgallou/plume/blob/main/R/icon.R#L101). This feature is now broken since Quarto 1.5 because all paths must now be relative to Quarto documents (see arnaudgallou/plume#109).This is definitely not an essential feature of my package but since the architecture is there, I was wondering what are my options to keep that feature alive. Ideally, I'd prefer not to write the icon onto the disk, although that's probably what you would recommend. Is there any alternative?
I was initially thinking of using
fontawesome::fa()
. Unfortunately I don't think there's a way to make it work for pdf because it seems thatfontawesome::fa()
needs to be evaluated in its own code chunk to generate an icon that can then be used in a markdown link (and later appended to authors via a function likepaste()
).Beta Was this translation helpful? Give feedback.
All reactions