Skip to content

Conversation

@h4rvey-g
Copy link

In VS Code, loading correlationfunnel will raise error because of rstudioapi::getThemeInfo()

r$> library(correlationfunnel)
Error: package or namespace load failed forcorrelationfunnel:
 .onAttach failed in attachNamespace() for 'correlationfunnel', details:
  call: rstudioapi::getThemeInfo()
  error: This {rstudioapi} function is not currently implemented for VSCode.

While R extension in VS Code has supported some of rstudioapi functions, getThemeInfo() is not included. Add rstudioapi::hasFun("getThemeInfo") besides rstudioapi::isAvailable() will solve the error

r$> rstudioapi::isAvailable()
[1] TRUE

r$> rstudioapi::hasFun("getThemeInfo")
[1] FALSE

@joelem
Copy link

joelem commented Jan 8, 2025

I'm having the same exact loading issue with Positron, thank you for looking into this. I'm hoping this pull request can solve the issue!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants