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

Add support for the thematic package for Rshiny dynamic themes for plots #1283

Closed
ml-koch opened this issue Dec 19, 2022 · 4 comments
Closed

Comments

@ml-koch
Copy link

ml-koch commented Dec 19, 2022

Is your feature request related to a problem? Please describe.
I switched from RStudio to VScode and am working on an Rshiny app that includes a ggplotly object as output. When loading the package thematic via thematic_shiny() the shiny app displays "Warning: Error in getThemeInfo: This {rstudioapi} function is not currently implemented for VSCode".

It works fine without the dynamic theming but I would like users to be able to select themes that also change for plots.

Describe the solution you'd like
If i understand the message correctly it could work but needs support from the rstudioapi in vscode.

Describe alternatives you've considered
I considered adding theme arguments to the ggplot object but that would give them one static look.
Its fine but its more convenient in Rstudio

Additional context

thematic_explanation.mp4
@renkun-ken
Copy link
Member

rstudioapi::getThemeInfo() is not yet implemented in VS Code. In RStudio, the function returns a list like the following:

$editor
[1] "Textmate (default)"

$global
[1] "Modern"

$dark
[1] FALSE

$foreground
[1] "rgb(0, 0, 0)"

$background
[1] "rgb(255, 255, 255)"

The information could be obtained via VS Code Extension API:

@ElianHugh
Copy link
Collaborator

Also see issue #547

Copy link

github-actions bot commented Feb 4, 2024

This issue is stale because it has been open for 365 days with no activity.

@github-actions github-actions bot added the stale label Feb 4, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants