Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_pan_genome_plots.R - X11 font problem #230

Closed
miguelpmachado opened this issue Feb 4, 2016 · 3 comments
Closed

create_pan_genome_plots.R - X11 font problem #230

miguelpmachado opened this issue Feb 4, 2016 · 3 comments

Comments

@miguelpmachado
Copy link

Hi,

I'm trying to create the pan genome plots using create_pan_genome_plots.R, but I keep getting the following error that I cannot fix:

Saving 7 x 7 in image
Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
X11 font -adobe-helvetica-%s-%s---%d-------*, face 1 at size 16 could not be loaded
Calls: ggsave ... -> widthDetails -> widthDetails.text -> grid.Call
Execution halted

Do you have any idea what should I do to solve this?

Best regards,

Miguel Machado

@tseemann
Copy link
Contributor

Are you running this on a remote server that doesn't have X11 login, or on a machine with a GUI ?

They may not have the X11-fonts packages installed.

@miguelpmachado
Copy link
Author

Hi,
I'm running it in a remote server with X11 (xeyes works fine).
In R if I do capabilities() I get:

       jpeg         png        tiff       tcltk         X11        aqua 
       TRUE        TRUE       FALSE       FALSE        TRUE       FALSE 
   http/ftp     sockets      libxml        fifo      cledit       iconv 
       TRUE        TRUE        TRUE        TRUE        TRUE        TRUE 
        NLS     profmem       cairo         ICU long.double     libcurl 
       TRUE       FALSE        TRUE       FALSE        TRUE       FALSE 

I also thought it might be a problem with X11-fonts packages installation, but I tried to install them in many different ways and recompile R afterwards, but it didn't solve the problem. Maybe I missed the correct way of doing it... Do you have any suggestion?
Best regards,
Miguel Machado

@tseemann
Copy link
Contributor

It appears someone else has a similar problem within R Studio:

https://support.rstudio.com/hc/en-us/community/posts/202491007-Plot-is-throwing-error-not-displaying-output-properly-

(but no solution)

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

No branches or pull requests

3 participants