Skip to content

ark: Access the R API from a single thread #1516

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

Closed
lionel- opened this issue Oct 6, 2023 · 2 comments
Closed

ark: Access the R API from a single thread #1516

lionel- opened this issue Oct 6, 2023 · 2 comments
Assignees
Labels
Milestone

Comments

@lionel-
Copy link
Contributor

lionel- commented Oct 6, 2023

Extracted from #1420.

Currently auxiliary threads like the LSP and the environment threads access the R API from their own thread, different from the one where R is running. This is causing stability issues with reticulate (see discussion in #1420 and #1419) and Shiny (see #431).

To fix this, we should package up accesses to the R API as tasks run on the R thread at interrupt/yield time.

See also different approach outlined in #802

@lionel-
Copy link
Contributor Author

lionel- commented Oct 13, 2023

With posit-dev/ark#109 we now have infrastructure in place to run R code from a single thread.

@lionel- lionel- closed this as completed Oct 13, 2023
@jennybc
Copy link
Member

jennybc commented Oct 13, 2023

🎉

@wesm wesm added the lang: r label Feb 29, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants