Skip to content

m_png() does not produce output in RStudio Server #59

Description

@sup27606

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?

Image Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions