Skip to content

Add ark view connection method registration#21

Open
dfalbel wants to merge 1 commit intorstudio:mainfrom
dfalbel:feature/ark-view-connection
Open

Add ark view connection method registration#21
dfalbel wants to merge 1 commit intorstudio:mainfrom
dfalbel:feature/ark-view-connection

Conversation

@dfalbel
Copy link
Member

@dfalbel dfalbel commented Jan 27, 2026

Summary

  • Adds zzz.R with .onLoad() to register S3 methods with Positron's ark
  • Enables viewing connConnection objects from the Variables pane via the Connections pane
  • Registers three methods: ark_positron_variable_has_viewer, ark_positron_variable_kind, ark_positron_variable_view

Requires posit-dev/ark#1014 before merging.

🤖 Generated with Claude Code

Register S3 methods with Positron's ark to enable viewing
connections from the Variables pane:
- ark_positron_variable_has_viewer: returns TRUE
- ark_positron_variable_kind: returns "connection"
- ark_positron_variable_view: opens connection in Connections pane

Uses protected pattern with tryCatch and early exit when
.ark.register_method is not available.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.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.

1 participant