Revisit uses of RPC callMethod
that (inappropriately) require kernel to be idle
#4641
Labels
area: core
Issues related to Core category.
Milestone
While working on #4606 on passing env vars from the R session, @lionel- pointed out that our uses of
callMethod()
in the R extension do not resolve when the kernel is busy. This may look broken to users who, for example, may have a Shiny app running while they are trying to run some command. As of today, the uses we have are:'get_locale'
to get the R locale for package testing'is_installed'
to check if an R package is installed'get_env_vars'
for passing env vars into a package development "task"'setConsoleWidth'
,'isPackageAttached'
,'showHelpTopic'
,'showVignetteTopic'
)Here are details on possible different approaches to mitigate this:
Originally posted by @lionel- in #4606 (comment)
We don't think this is likely to come up for people doing R package development, but it likely will come up for people who want to create their own tasks.
For the specific application of env vars, we might consider language agnostic infrastructure, since certainly this doesn't only apply to R. From @jmcphers:
The text was updated successfully, but these errors were encountered: