R crashes upon exporting ggplot objects with unicode in axis expression
问题 This code data = data.frame(A=c(1:100), B=runif(100)) library(ggplot2) ggplot(data, aes(A, B)) + geom_point() + ylab(expression(paste(delta^{13}~"C"~"VDPB (\u2030/)"))) + xlab("Time (Days)") ggsave("test.pdf", width=4, height=4, dpi=300, device=cairo_pdf) crashes my R-Session with Error in grid.Call.graphics(L_text, as.graphicsAnnot(x$label), x$x, x$y, : Metric information not available for this family/device although the expression is drawn correctly on the R-Studio graphical device. After