After a lot of trial and error, I was able to get it to work myself. Essentially, you have to copy the downloaded font file to all the folders in font.paths().
On OS X:
for(dirs in font.paths()) {
file.copy(file.path(dirs,"xkcd.ttf"), "~/Library/Fonts/")
}