easystats / easystats/performance

incorrect warning with old `ggplot2`/failure to load `see`

Open
#692 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Docs :books:
Dominant language
R
Stars
1.2k
Forks
109
Avg merge
6h 34m
Merged PRs (30d)
8

Description

In dealing with the ggplot2 version 3.5 mess (see https://github.com/easystats/performance/issues/691), I accidentally reverted to version 3.4.0 instead of 3.4.4. If I then library("see") directly I get

> library(see)
Error: package or namespace load failed for ‘see’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 namespace ‘ggplot2’ 3.4.0 is being loaded, but >= 3.4.4 is required

but if I run performance::check_model(), it encounters the failure and assumes that the cause is that I don't have see installed.

performance::check_model(g1)
Package `see` required for model diagnostic plots.
Would you like to install it? [y/n] 

it then re-installs, fails to show the plot (as expected), and returns the raw object.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure through performance::check_model() with ggplot2 3.4.0 and see unavailable or failing to load. Trace how the diagnostic-plot dependency check handles the namespace error; done when an installed but incompatible see/ggplot2 setup is not reported as missing or prompted for reinstallation.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.