I have downloaded the minimal example, set up an Rstudio session, and without making any changes I have attemped to Build the book. However, I received the following error messages:
Quitting from lines 20-28 (bookdown.Rmd)
Error in dev.control(displaylist = if (record) "enable" else "inhibit") :
dev.control() called without an open graphics device
Calls: local ... call_block -> block_exec -> chunk_device -> dev.control
In addition: Warning messages:
1: In grSoftVersion() :
unable to load shared object '/Library/Frameworks/R.framework/Resources/modules//R_X11.so':
dlopen(/Library/Frameworks/R.framework/Resources/modules//R_X11.so, 6): Library not loaded: /opt/X11/lib/libSM.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/modules/R_X11.so
Reason: image not found
2: In cairoVersion() :
unable to load shared object '/Library/Frameworks/R.framework/Resources/library/grDevices/libs//cairo.so':
dlopen(/Library/Frameworks/R.framework/Resources/library/grDevices/libs//cairo.so, 6): Library not loaded: /opt/X11/lib/libXrender.1.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/grDevices/libs/cairo.so
Reason: image not found
3: In (function (filename = if (onefile) "Rplots.pdf" else "Rplot%03d.pdf", :
failed to load cairo DLL
Execution halted
Error: Failed to run 'render_book' in a new R session.
Execution halted
Need to install the following software because this form of Bookdown requires a Windows framework in the background: https://kb.rice.edu/page.php?id=74034
Hi there,
I have downloaded the minimal example, set up an Rstudio session, and without making any changes I have attemped to Build the book. However, I received the following error messages:
Quitting from lines 20-28 (bookdown.Rmd) Error in dev.control(displaylist = if (record) "enable" else "inhibit") : dev.control() called without an open graphics device Calls: local ... call_block -> block_exec -> chunk_device -> dev.control In addition: Warning messages: 1: In grSoftVersion() : unable to load shared object '/Library/Frameworks/R.framework/Resources/modules//R_X11.so': dlopen(/Library/Frameworks/R.framework/Resources/modules//R_X11.so, 6): Library not loaded: /opt/X11/lib/libSM.6.dylib Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/modules/R_X11.so Reason: image not found 2: In cairoVersion() : unable to load shared object '/Library/Frameworks/R.framework/Resources/library/grDevices/libs//cairo.so': dlopen(/Library/Frameworks/R.framework/Resources/library/grDevices/libs//cairo.so, 6): Library not loaded: /opt/X11/lib/libXrender.1.dylib Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/grDevices/libs/cairo.so Reason: image not found 3: In (function (filename = if (onefile) "Rplots.pdf" else "Rplot%03d.pdf", : failed to load cairo DLL Execution halted Error: Failed to run 'render_book' in a new R session. Execution halted
Exited with status 1.
Any clues as to why it is failing?