We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a75613b commit 4837e7dCopy full SHA for 4837e7d
NEWS.md
@@ -9,6 +9,7 @@
9
10
## BUG FIXES
11
12
+Fixed algorithm for coercing the proposed layout to the plot schema (see #1156).
13
14
# 4.7.1
15
R/utils.R
@@ -369,7 +369,7 @@ verify_attr_spec <- function(p) {
369
370
verify_attr <- function(proposed, schema) {
371
for (attr in names(proposed)) {
372
- attrSchema <- schema[[sub("[2-9]+$", "", attr)]]
+ attrSchema <- schema[[attr]] %||% schema[[sub("[0-9]+$", "", attr)]]
373
# if schema is missing (i.e., this is an un-official attr), move along
374
if (is.null(attrSchema)) next
375
0 commit comments