Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .rs.api.versionInfo to describe the mode where Positron is running an R session #4081

Closed
Tracked by #1617
petetronic opened this issue Jul 19, 2024 · 4 comments
Assignees
Labels
area: workbench Issues related to Workbench category. enhancement New feature or request lang: r

Comments

@petetronic
Copy link
Collaborator

Some R packages today depend on metadata from .rs.api.versionInfo() to determine whether a session is running in desktop or server, and whether it is a professional edition product. Positron will need to offer a compatible way to determine this information.

@petetronic petetronic added the enhancement New feature or request label Jul 19, 2024
@petetronic petetronic added this to the 2024.10.0 Pre-Release milestone Jul 19, 2024
@petetronic petetronic added area: workbench Issues related to Workbench category. lang: r labels Jul 19, 2024
@petetronic
Copy link
Collaborator Author

petetronic commented Jul 19, 2024

Example output from Workbench + RStudio session:

> .rs.api.versionInfo()

$citation
To cite RStudio in publications use:

  Posit team (2024). RStudio: Integrated Development Environment for R. Posit Software, PBC, Boston, MA. URL http://www.posit.co/.

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {RStudio: Integrated Development Environment for R},
    author = {{Posit team}},
    organization = {Posit Software, PBC},
    address = {Boston, MA},
    year = {2024},
    url = {http://www.posit.co/},
  }

$mode
[1] "server"

$edition
[1] "Professional"

$version
[1] ‘2024.4.1.748.2’

$long_version
[1] "2024.04.1+748.pro2"

$release_name
[1] "Chocolate Cosmos"

@petetronic petetronic changed the title Update versionInfo to describe the mode where Positron is running an R session Update .rs.api.versionInfo to describe the mode where Positron is running an R session Jul 19, 2024
@petetronic
Copy link
Collaborator Author

Note: Positron also currently passes information to a kernel to describe if the session is supporting a notebook. We should be careful to reconcile terminology here.

@petetronic
Copy link
Collaborator Author

A stub for this appears to be here, but is currently stale: https://github.com/posit-dev/ark/blob/0.1.117/crates/ark/src/modules/rstudio/rstudioapi.R

@testlabauto
Copy link
Contributor

Verified Fixed

Positron Version(s) : 2024.09.0-69
OS Version          : OSX

Test scenario(s)

.rs.api.versionInfo()

Link(s) to TestRail test cases run or created:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: workbench Issues related to Workbench category. enhancement New feature or request lang: r
Projects
None yet
Development

No branches or pull requests

3 participants