vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

rstudioapi error with thematic_shiny()

Open sardnar opened this issue 1 year ago • 2 comments

Describe the bug using thematic with shiny gives the following error in the browser plots:

error: This {rstudioapi} function is not currently implemented for VSCode.

To Reproduce Steps to reproduce the behavior:

  1. Just in any shiny app add thematic_shiny() call before you server function call.
  2. Run the app using runApp() from console

Can you fix this issue by yourself? (We appreciate the help)

No

Screenshots image

Environment (please complete the following information):

  • OS: windows 10
  • VSCode Version: 1.80.1
  • vscode-R: 2.8.1
  • R Version: 4.3.1

sardnar avatar Jul 27 '23 19:07 sardnar

Good news! This issue is fixed in the latest version of thematic (0.1.3), at least in the sense that you won't get this error anymore. In the future, if vscode-R were to implement rstudioapi::getThemeInfo(), then thematic will automatically start to pick up on the VSCode colors, otherwise they're currently just ignored.

gadenbuie avatar Aug 26 '23 01:08 gadenbuie