Skip to content

Examples fail with the new version of farver #3712

Closed

Description

@yutannihilation

My recent commit (320cf27) failed on v3.3.0-rc branch, but the failure doesn't seem related to the change. This is probably due to the recent update of farver on CRAN.

I guess the fix would be very simple as replacing "NA" with NA, but I'm afraid the CRAN check will fail as well if this example is not skipped (I don't remember if the CRAN CI installs suggested dependencies). If so, we might need to do a patch release?

* checking examples ... ERROR
Running examples in ‘ggplot2-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: annotation_map
> ### Title: Annotation: a maps
> ### Aliases: annotation_map
> 
> ### ** Examples
> 
> if (require("maps")) {
+ usamap <- map_data("state")
+ 
+ seal.sub <- subset(seals, long > -130 & lat < 45 & lat > 40)
+ ggplot(seal.sub, aes(x = long, y = lat)) +
+   annotation_map(usamap, fill = "NA", colour = "grey50") +
+   geom_segment(aes(xend = long + delta_long, yend = lat + delta_lat))
+ }
Loading required package: maps
Error: Unknown colour name: NA
Execution halted
** found \donttest examples: check also with --run-donttest
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ...
  Running ‘testthat.R’ [56s/56s]
 OK
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes in ‘inst/doc’ ... OK
* checking re-building of vignette outputs ... OK
* checking PDF version of manual ... OK
* checking for detritus in the temp directory ... OK
* DONE

Status: 1 ERROR, 1 NOTE
See
  ‘/home/travis/build/tidyverse/ggplot2/ggplot2.Rcheck/00check.log’
for details.

(https://api.travis-ci.org/v3/job/634672782/log.txt)

Activity

  1. QuLogic commented on Jan 10, 2020

    @QuLogic

    The automated rebuild in Fedora also picked this up. I tested locally and it's definitely farver 2.0.1 -> 2.0.2 that causes it. The news mentions:

    • decode_colour() now allows you to specify how NA should get interpreted

    which may be related.

  2. yutannihilation commented on Jan 10, 2020

    @yutannihilation
    MemberAuthor

    Ah, thanks for the information, but this is already fixed by #3713!

  3. yutannihilation commented on Jan 10, 2020

    @yutannihilation
    MemberAuthor

    @thomasp85
    Let me confirm. The CRAN check is now broken with this error. Is it that CRAN is tolerant for this and we don't need to prepare a patch release?

    https://cran.r-project.org/web/checks/check_results_ggplot2.html

  4. thomasp85 commented on Jan 10, 2020

    @thomasp85
    Member

    I think it would be easier to prepare a patch release of farver that treats "NA" as NA... But it was def an error in ggplot2's example code that surfaced...

    Haven't heard from CRAN about it. I hope they will be lenient as we are already in the release process

  5. yutannihilation commented on Jan 10, 2020

    @yutannihilation
    MemberAuthor

    I see. I believe in CRAN's leniency :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions