Skip to content

Rendering book fails at scales-other.qmd #5991

Closed
@py9mrg

Description

@py9mrg

Hello,

When rendering the book (quarto render --to pdf) there is a failure in scales-other.qmd as per:

Error in `discrete_scale()`:
! formal argument "palette" matched by multiple actual arguments
Backtrace:
 1. ggplot2::scale_linetype(palette = linetypes)



Quitting from lines 259-266 [unnamed-chunk-18] (scales-other.qmd)
Execution halted

The offending lines are:

linetypes <- function(n) {
  types <- c("55",  "75", "95", "1115", "111115", "11111115",
             "5158", "9198", "c1c8")
  return(types[seq_len(n)])
}

base + scale_linetype(palette = linetypes)

I guess this is due to some of the changes in discrete_scale()?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions