garthtarr / sydney_xaringan

University of Sydney theme for xaringan (remark.js)
http://garthtarr.github.io/sydney_xaringan
81 stars 47 forks source link

Error when opening index #7

Closed drfurtado closed 2 years ago

drfurtado commented 2 years ago

I have followed the instructions to clone this repo, which is awesome btw.

But I am getting the following error when knit the index file.

Quitting from lines 40-86 (index.Rmd) 
Error in icon_find(name, "fontawesome")[[1]] : subscript out of bounds
Calls: <Anonymous> ... eval -> eval -> top_icon -> <Anonymous> -> <Anonymous>
Execution halted

Any help is appreciated.

garthtarr commented 2 years ago

I think the issue is that installing the icons package isn't enough, you also need to initialise the fontawesome library:

icons::download_fontawesome()
drfurtado commented 2 years ago

It did the trick. Thanks for putting this together; very useful.