Skip to content

rstudio$.rs.isDesktop() fails on very old versions of RStudio #326

@guslipkin

Description

@guslipkin

I am using a very old environment that cannot be upgraded to a newer version of RStudio. Some other packages I'm using use the rstudioapi package which attempts to reference rstudio$.rs.isDesktop() which is not available in that old version of RStudio. I believe the minimum version argument should be passed to verifyAvailable() to ensure the function is available.

rstudioapi/R/code.R

Lines 91 to 93 in 15347e9

verifyAvailable()
rstudio <- as.environment("tools:rstudio")
if (rstudio$.rs.isDesktop()) "desktop" else "server"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions