[R-pkg-devel] Trouble with greek letter in figure title in R-devel

Ulrike Grömping u|r|ke@groemp|ng @end|ng |rom bht-ber||n@de
Tue Nov 14 17:29:59 CET 2023


Thank you for spotting this, I should have found it myself :-(
I suppose I don't get this error even from latest R-devel because of the 
settings of my Windows system?

Best, Ulrike

Am 14.11.2023 um 17:16 schrieb Uwe Ligges:
>
>
> On 14.11.2023 15:45, Ulrike Groemping wrote:
>> Dear package developers,
>>
>> I am struggling with an error on R devel (all flavors) that I cannot 
>> reproduce with a freshly installed R-devel on my machine: Function 
>> halfnormal in package DoE.base places the greek letter alpha in the 
>> title of a figure. I changed the code to using plotmath about a month 
>> ago (on CRAN request), and everything seemed fine then. Now, however, 
>> R-devel produces an error message 
>> (https://www.r-project.org/nosvn/R.check/r-devel-windows-x86_64/DoE.base-00check.html):
>>
>> Error in title(...) :
>>    conversion failure on 'Plot for rnorm.12., method = Lenth, α = 
>> 0.05' in 'mbcsToSbcs': for α (U+03B1)
>
> Yes, and your code contains
>
>      titel <- bquote(paste("Plot for ", paste(xnam), ", method = ", 
> .(method),
>      ", \U03B1 = ", .(alpha), sep=""))
>
>
> So please change this to plotmath as in the instance further above in 
> your code where you already wrote
>
>     titel <- as.expression(bquote("Plot for "*.(xnam)*", "*alpha == 
> .(alpha)))
>
>
> Best,
> Uwe Ligges
>
>
>
>> Calls: halfnormal ... <Anonymous> -> plot -> plot.default -> 
>> localTitle -> title
>> Execution halted
>>
>> CRAN threaten to archive the package because of that error - so I 
>> would really appreciate help on finding out what I should do (apart 
>> from nasty things like writing alpha instead of using the greek letter).
>>
>> The code in function halfnormal that creates the title in question 
>> looks as follows:
>>
>>    ## added August 1 5 2014, modified Oct 17 2023
>>    if (is.null(titel)){
>>       titel <- as.expression(bquote("Plot for "*.(xnam)*", "*alpha == 
>> .(alpha)))
>>       dots$main <- titel
>>    }
>>
>> The list dots is later used in "do.call(plotfun, dots)".
>>
>> Any recommendations?
>>
>> Thanks and regards,
>> Ulrike
>>
>> ______________________________________________
>> R-package-devel using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-package-devel


-- 
##############################################
## Prof. Ulrike Groemping
## FB II
## BHT
##############################################
## prof.bht-berlin.de/groemping
## Phone: +49(0)30 4504 5127
## Fax:   +49(0)30 4504 66 5127
## Home office: +49(0)30 394 04 863
##############################################



More information about the R-package-devel mailing list