Skip to content

Implement rstudioapi::readRStudioPreference in RStuduio API emulation. #10325

Description

@MilesMcBain

Hi,

I received this PR for {datapasta} for compatibility with Positron: MilesMcBain/datapasta#145

The issue apparently being Positron does not implement rstudioapi::readRStudioPreference?

Could this be implemented? This function takes a default argument for the case when the preference could not be read. This makes implementation for protocol emulations that do not speak the RStudio preferences a total no-brainer. The VSCode-R extension does:

readRStudioPreference <- function(name, default) {
    ## in future we could map some rstudio preferences to vscode settings.
    ## since the caller must provide a default this should work.
    default
}

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions