Hi,
Thank you for this very useful package.
I am trying to display the image generated by r3dmol using the m_png() function, but can't get it to work.
I tried the example given in the manual, but it produced a blank image with a question mark (see screenshot below).
The issue is specific to Rstudio server running on Linux, because native RStudio can display the image.
Also, I would like to programmatically generate the png objects and embed in a pdf document. However, I cannot seem to use any PNG processing function in R on the image object. For example, writePNG() throws an error saying, "image must be a matrix or array of raw or real numbers".
I saw a message from 2 years back saying, saving PNG to file can't be done. I was wondering if its possible now and if not, is there a workaround?

Hi,
Thank you for this very useful package.
I am trying to display the image generated by r3dmol using the m_png() function, but can't get it to work.
I tried the example given in the manual, but it produced a blank image with a question mark (see screenshot below).
The issue is specific to Rstudio server running on Linux, because native RStudio can display the image.
Also, I would like to programmatically generate the png objects and embed in a pdf document. However, I cannot seem to use any PNG processing function in R on the image object. For example, writePNG() throws an error saying, "image must be a matrix or array of raw or real numbers".
I saw a message from 2 years back saying, saving PNG to file can't be done. I was wondering if its possible now and if not, is there a workaround?