Could not find any X11 fonts error

前端 未结 2 1167
名媛妹妹
名媛妹妹 2021-02-15 17:49

I am starting to get into R development and I was following a tutorial that in a certain point opens the \"X11\" to display graphics but when that window opens I get the followi

2条回答
  •  日久生厌
    2021-02-15 17:52

    What does this return:

    capabilities("X11")
    

    If you are on .Platform$OS.type == "windows" then you may need to do some further research. I doubt that X11 is installed there by default. But your edit shows that you are on a mac so try this:

    names(X11Fonts())
    # results on my device 
    [1] "serif"        "sans"         "mono"         "Times"       
    [5] "Helvetica"    "CyrTimes"     "CyrHelvetica" "Arial"       
    [9] "Mincho" 
    

    When I execute X11() at the R command console in the Mac-GUI I get an X11 window and choosing X11/About X11' I see that I have "XQuartz 2.1.6 (xorg-server 1.4.2-apple33)". I am using Leopard (still), but I thought that recent version of Macs installed X11 support by default and I don't remember needing to point R in the right direction to find it either.

提交回复
热议问题