R-Lum/Luminescence

CRAN error ... plot_AbanicoPlot()

Closed this issue · 0 comments

CRAN error related to the Abanico plot function: https://cran.r-project.org/web/checks/check_results_Luminescence.html

Deadline 2022-01-07

Update

Caused by the definition in get_Layout() where normal is expected, instead of plain:

Luminescence/R/get_Layout.R

Lines 484 to 499 in f2b4c58

font.deco = list(
main = "bold",
xlab1 = "normal",
xlab2 = "normal",
xlab3 = "normal",
ylab = "normal",
zlab = "normal",
xtck1 = "normal",
xtck2 = "normal",
xtck3 = "normal",
ytck = "normal",
ztck = "normal",
mtext = "normal",
summary = "normal", # optionally vector
stats = "normal", # optionally vector
legend = "normal" # optionally vector

font = (1:4)[c("plain", "bold", "italic", "bold italic") ==
layout$abanico$font.deco$ylab],

It is unlikely that this code ever worked before in the way it was intended to work.

The lines should be replaced by

  font = which(c("normal", "bold", "italic", "bold italic") ==
                          layout$abanico$font.deco$xtck3)[1]