to me, restarting R didn't do the trick because that was not the issue. so, in case someone else run into this problem, i found that filenames that are too long (as in too many characters) seem to affect the svg file generation. if that is the case, try to shorten the filenames and export the svg.