I am not used to answer my own question. However, I thought the solution could benefice someone in the future (see answer). It was not possible to post this issue on the package's github (a read-only mirror).
I had a lot of trouble to install the xkcd font in R on windows, especially for recent version of R (4.1.1). There is this solution on OS, which do not work on windows. It needed this answer and this answer (two unrelated questions) to be able to use the font in R.