Skip to content

Rstudio slow to index large site-library on NFS #17758

Closed

Description

@Akra-Numero

System details

RStudio Edition : Desktop
RStudio Version : 2026.04
OS Version      :  Ubuntu 24.04
R Version       :  4.6.0

Steps to reproduce the problem

Type remove() at the command prompt, and then press enter. Cursor does not return, and some users state that the RStudio goes into state 'D' - uninterruptible sleep. rm() does not have the same effect - the prompt returns immediately.

Describe the problem in detail

I run a cluster of ubuntu machines with the site-library of over 20000 packages served from an NFS drive. After the updgrade to RStudio 2026.04 (from 2025.09) and R 4.6.0, users have reported lag when having the word "remove" (even as a comment) in the code. E.g.

I have a similar issue (still persists) and the sleeping is triggered for me everytime the line/block that is run from RStudio contains the word ‘remove’, e.g. calling str_remove_all(…) or even if ‘remove’ is mentioned as a comment.
(t0 <- Sys.time()) # remove mentioned as a comment (output is printed instantly)
Sys.time() - t0 # around 6-8 minutes usually

This happens only when explicitly running the line in RStudio. Does not occur with command line R nor when sourcing a script containing the same code.

When I ran my.string <- "remove" and 2+2 in a single command i get the result for the 2+2 rigth away. But then again RStudio still freezes and there is a lag for any command after this (if running comand separately).

I have also word "remove" in my comment... Other comment has word "delete" and it seems to get stuck after those lines. Weird. I have an Rmd file, and when knitting that, it doesn't take that long to run the whole script with several filter operations..

I have had slowness in R during the past few days. Running a few lines (but not the same lines) of code might take several minutes when the execution time should take only a few seconds or a fraction of a second.
When I see the output of top, my rsession process is in state "D".

Could this be related to the "Posit Assistant"? It somehow recognizes "remove" in the script, and starts doing sometihing? In my case the rsession process goes into "uninterruptible sleep" ("D") state.

To continue ...
I have these lines in the Renviron.site file
RSTUDIO_DISABLE_PACKAGES=1
RSTUDIO_DISABLE_CHECK_FOR_UPDATES=1

The problem is less severe with a site-library of 400 packages, and without a network site-library, the prompt returns immediately.

Describe the behavior you expected

That the prompt returns immediately.

  • [ x] I have read the guide for submitting good bug reports.
  • [ x] I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • [ x] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugnewpackagesperformancesupport

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions