jrnold/ggthemes

theme_excel_new() error

Opened this issue · 1 comments

The theme_excel_new function started throwing an error for me this morning. The error I'm seeing is shown below. Thank you!

p <- ggplot(mtcars) +
geom_point(aes(x = wt, y = mpg, colour = factor(gear))) +
facet_wrap(~am)
p + theme_excel_new()

Error in list2():
! Argument 1 can't be empty.
Run rlang::last_trace() to see where the error occurred.

rlang::last_trace()
<error/rlang_error>
Error in list2():
! Argument 1 can't be empty.

Backtrace:

  1. ├─ggthemes::theme_excel_new()
  2. │ └─ggplot2::theme(...)
  3. │ └─ggplot2:::find_args(..., complete = NULL, validate = NULL)
  4. │ ├─ggplot2:::modify_list(vals, list2(..., ... = NULL))
  5. │ └─rlang::list2(..., ... = NULL)
  6. └─rlang::abort(message = message)

Hey. Commenting since I offered some changes to excel_new(), however your error didnt reproduce for me.
d640da8e-cbd2-4245-90a1-c7b31796f236

It generated the expected plot (shown as img)