Skip to content

Don't attach plotly in landscapes vignette - #203

Closed
ms609 wants to merge 1 commit into
mainfrom
claude/ubuntu22-r41-vignette-failure-3c837b
Closed

Don't attach plotly in landscapes vignette#203
ms609 wants to merge 1 commit into
mainfrom
claude/ubuntu22-r41-vignette-failure-3c837b

Conversation

@ms609

@ms609 ms609 commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Fixes the ubuntu-22.04 / R 4.1 vignette build failure in run 33400859706.

library("plotly") in landscapes.Rmd put plotly::layout() on the search path. Where vignettes are re-built in a shared R session (as on that runner), it masked graphics::layout() in the subsequently built treespace.Rmd, so the plot-mapping-5d chunk died with:

Error in `UseMethod()`:
! no applicable method for 'layout' applied to an object of class "c('double', 'numeric')"
  • landscapes.Rmd: use plotly::plot_ly() / plotly::add_surface() instead of attaching the package.
  • treespace.Rmd: qualify graphics::layout() so the chunk is robust to any future masking.

Rendered output of both vignettes is unchanged.

Note: opened under @ms609 because ms609-agent has no write seat on this repository (PR creation returned Resource not accessible by personal access token); the commit itself is attributed to ms609-agent.

🤖 Generated with Claude Code

`library("plotly")` in landscapes.Rmd put `plotly::layout()` on the search
path.  Where vignettes are re-built in a shared R session, this masked
`graphics::layout()` in the subsequently built treespace.Rmd, whose
`plot-mapping-5d` chunk failed with

    no applicable method for 'layout' applied to an object of
    class "c('double', 'numeric')"

Use `plotly::` prefixes instead, and qualify `graphics::layout()` in
treespace.Rmd so the chunk is robust to any future masking.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ms609
ms609 marked this pull request as draft September 2, 2026 09:13
@ms609 ms609 closed this Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants