Skip to content

Fix CellGraph layout validation and PNA examples - #154

Open
ludvigla wants to merge 4 commits into
mainfrom
cursor/fix-cellgraph-layouts-0ba5
Open

Fix CellGraph layout validation and PNA examples#154
ludvigla wants to merge 4 commits into
mainfrom
cursor/fix-cellgraph-layouts-0ba5

Conversation

@ludvigla

@ludvigla ludvigla commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Description

Fix CreateCellGraphObject() so its layout argument accepts a named list of tibble layout tables and validates each table. Update all examples in R/CellGraph.R to use the PNA example dataset, qualify the cli call, replace percent-based section separators with dashed separators, and synchronize the generated documentation.

Fixes: PNA-3326

Type of change

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • This change requires a documentation update.

How Has This Been Tested?

  • Added coverage for valid named layout lists, invalid layout table classes, and unnamed layout lists.
  • git diff --check passes.
  • Runtime R tests and roxygen regeneration could not run because R is not installed in the Cloud Agent environment; generated documentation was synchronized manually.

PR checklist:

  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have documented any significant changes in CHANGELOG.md.
Open in Web Open in Cursor 

cursoragent and others added 3 commits August 14, 2026 12:27
Co-authored-by: ludvigla <ludvigla@users.noreply.github.com>
Co-authored-by: ludvigla <ludvigla@users.noreply.github.com>
Co-authored-by: ludvigla <ludvigla@users.noreply.github.com>
@ludvigla
ludvigla marked this pull request as ready for review August 14, 2026 12:33

@maxkarlsson maxkarlsson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment thread CHANGELOG.md Outdated

### Fixes

- `CreateCellGraphObject()` now correctly validates the `layout` argument as a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should put this under unreleased? Because 0.19.0 is already out?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah IDK why the cursor cloud agent thought that was a good idea :-O

@vincent-van-hoef vincent-van-hoef left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Looks good to me.

Co-authored-by: ludvigla <ludvigla@users.noreply.github.com>
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.

4 participants