fontawesome icon indicating copy to clipboard operation
fontawesome copied to clipboard

Rpres can't use fontawesome anymore

Open sebastien-foulle opened this issue 4 years ago • 2 comments

The following code doesn't work anymore in .Rpres (I put '' everywhere in order to turn off markdown formatting)

test1 ok '====================================' '{r}' 'iris[1:2,1:2]' ''

test2 ko '====================================' '<'p style="text-align:center">r fontawesome::fa("r-project", fill = "blue", height = "60px")</p'>' '{r}' iris[1:2,1:2] ''

Error message :

Erreur dans if (to %in% c("html", "html4", "html5", "slidy", "revealjs", :

l'argument est de longueur nulle

Appels : knit ... inline_exec -> hook_eval -> knit_print -> knit_print.fontawesome

sebastien-foulle avatar May 18 '21 21:05 sebastien-foulle

Thanks for the report.

Indeed knit_print method does not support Rpres output for now. And the error message is not helpful here - this needs to be improve.

@rich-iannone reach out to me if you need help with if you want to tackle it.

cderv avatar May 19 '21 18:05 cderv

Thanks for reporting @sebastien-foulle and thanks @cderv for the offer of help . This package is on my radar again and so I'll be getting to this soon.

rich-iannone avatar Nov 08 '21 19:11 rich-iannone