I am trying to save a table created in the Kable package in R Markdown. This has always worked for me in the past, but today when I try, using 'save_kable("X.pdf")' on any of my tables, I get the following error message:
Error in magick_image_readpath(enc2native(path), density, depth, strip) : rsession: FailedToExecuteCommand `'gs' -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' '-sOutputFile=/var/folders/qc/xs3g8dsx4g11rjbt0rf35dj00000gq/T//RtmpaRzbJq/magick-43640eHHAxmi4Z6n5%d' '-f/var/folders/qc/xs3g8dsx4g11rjbt0rf35dj00000gq/T//RtmpaRzbJq/magick-436404K7X59eUrjJR' '-f/var/folders/qc/xs3g8dsx4g11rjbt0rf35dj00000gq/T//RtmpaRzbJq/magick-43640Xy025Mi88F3t'' (1) @ error/pdf.c/InvokePDFDelegate/292
I have restarted R Studio and tried again but it doesn't change anything. Does anyone know what this error message means or how to solve it?