Search code examples
rplotrstudio-server

When I plot a graph in R all the characters get transformed in strange characters


Since this morning, every graph that I've generated get all the numbers and characters transformed in strange characters (like a squared zero).

After ggplot, I tried with plot and get the same error.

The reproductible example is : plot(c(1,2,3)). I get this graph :

enter image description here

I use a session connected to RStudio Server.

I tried to restart my session, to use another session (another profile without any packages), to restart RStudio Server and to restart the server. I also tried to reinstall R. I still get the same problem.

How can I solve this problem ?


Solution

  • My colleague finally solved the problem.

    The problem was a missing libpango1.0-0 library (that was removed when upgrading a bunch of packages to their debian stretch version on a debian jessie system to have an up-to-date libgdal library so that the r-gdal package could be used).