Skip to content

Split ark from positron R modules? #979

@lionel-

Description

@lionel-

Extracted from #977 (comment)

It's currently a bit confusing that files in https://github.com/posit-dev/ark/tree/main/crates/ark/src/modules/positron get sourced even when Ark is used outside Positron.

We could split an ark folder containing essential functionality used with other frontends (such as error handling). positron would only contain functionality used by the Positron frontend.

To further disambiguate, we could introduce .ark. as a prefix for stuff living in ark. For instance .ark.version() instead of .ps.ark.version().

Finally, to decide whether to load Positron functionality, we could introduce a new flag to the ark binary. This would be a bit more precise than the current approach of detecting the POSITRON environment variable, which could also be set even when Positron is not the frontend, for example when running jupyter-console in the terminal. Note we can't use any Jupyter information for this (such as when the UI comm is connected) because that would be racy.

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