0

as of recently I am noticing that the assets folder of my Xaringan presentations fill up with loads of weird folders, after knitting. I have several useful subfolders (e.g., css, images, js), but there are easily 200 folders created after knitting. All of then have random names like "00e3144c-c556-4b66-b50a-c44d64246b85-9.9.9" (the "-.9.9.9" seems the only non-random repetitive part of the folder names).

Where do these folders come from/what causes their appearance? And: are they strictly necessary or can I prevent them from being created? They are empty, but totally flock the assets folder.

Steve G. Jones
  • 325
  • 2
  • 10
  • **DO NOT post images of code, data, error messages, etc.** - copy or type the text into the question. [ask] – Rob Jul 23 '21 at 11:23
  • You need to provide a reproducible example. Without that, my guess is that you used a certain R package that generates an HTML dependency with a random name. – Yihui Xie Jul 23 '21 at 16:08
  • My slideset is very big and contains some proprietary material, so I am not sure how to turn this into a reprex. That said, I am wondering what (or even: why) packages would create randomly names HTML dependencies? – Steve G. Jones Jul 24 '21 at 15:22

1 Answers1

1

I experienced the same overwhelming empty directory problem.

Yihui gave a possible cause - HTML dependency. I went down that route and discovered it was xaringanExtra which uses htmltools that would lead to empty directories - xaringan alone wouldn't.

It seems Garrick (author of xaringanExtra) has been aware of such issue, hence this PR. I'd wait for it to be merged then try again. Hope this is helpful.