[R] Font problem --- SOLVED.
r.turner at auckland.ac.nz
Sat Oct 8 03:25:40 CEST 2016
> On Mon, Oct 3, 2016 at 7:55 AM, Rolf Turner <r.turner at auckland.ac.nz> wrote:
>> Dunno exactly whom I should ask about this problem, but I thought I'd start
>> with good old r-help.
>> I have recently acquired a new laptop, and have installed Ubuntu 16.04 on
>> it. Still having some teething problems.
>> If I do
>> I get the error:
>> Error in title(...) :
>> X11 font -*-courier-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 5 at size 15 could
>> not be loaded
>> So it would seem that I am missing a font. Fonts have always been a
>> complete mystery to me. Can anyone suggest how I might rectify this
>> deficiency in the fonts on my system? If so, *please* be as explicit as you
>> can in your instructions; I am all at sea here.
>> Rolf Turner
>> P. S. I have also just noticed that if I do:
>> I get an "a" as the y-axis label, rather than the Greek letter alpha.
>> Likewise if I do plot(1:10,ylab=expression(Sigma)) I get a capital "S"
>> rather than an upper case Greek Sigma symbol. No error thrown, but.
>> Any ideas as to how to fix this problem?
>> For what it's worth, here is my sessionInfo():
>> R version 3.3.1 (2016-06-21)
>> Platform: x86_64-pc-linux-gnu (64-bit)
>> Running under: Ubuntu 16.04.1 LTS
>>  LC_CTYPE=en_NZ.UTF-8 LC_NUMERIC=C
>>  LC_TIME=en_NZ.UTF-8 LC_COLLATE=en_NZ.UTF-8
>>  LC_MONETARY=en_NZ.UTF-8 LC_MESSAGES=en_NZ.UTF-8
>>  LC_PAPER=en_NZ.UTF-8 LC_NAME=C
>>  LC_ADDRESS=C LC_TELEPHONE=C
>>  LC_MEASUREMENT=en_NZ.UTF-8 LC_IDENTIFICATION=C
>> attached base packages:
>>  stats graphics grDevices utils datasets methods base
>> other attached packages:
>>  misc_0.0-16
>> loaded via a namespace (and not attached):
>>  deldir_0.1-13 Matrix_1.2-3 mgcv_1.8-12
>>  abind_1.4-3 spatstat_1.46-1.036 rpart_4.1-10
>>  nlme_3.1-128 grid_3.3.1 polyclip_1.5-0
>>  lattice_0.20-33 goftest_1.0-3 tensor_1.5
Turns out that all I had to do was:
sudo apt-get install xfonts-100dpi
sudo-apt-get install xfonts-75dpi
I'd had to do something like this on my old Fedora-running laptop.
Finally figured out the apt-get command analogous to the old yum
command. (Different package name(s); took me a while to find/figure out
what the appropriate names are. I'm *slow*!!!)
Thanks to everyone who tried to help me overcome my stupidity!
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
More information about the R-help