R script not running and cannot be saved


I am running my Rstudio under version 4.0.4 in windows 10.
The problem I am encountering is for a particular script, the execution of the code will hang and the script itself cannot be save. For example, "library(data.table)" will hang in that script, but it is running totally fine in other script.
Things I tried to do to resolve the issue,

  1. save the script in other location where others scripts in the location do not have this issue.
  2. I copy paste the problematic script into a working script, but right after I paste the script, the same issue will appear.
    The problem mention above only happen in one script, and my colleague are able to run the script without making any changes, and she is using an older version of R on window 10.

Please let me know if you have any recommendation on what I should I to fix the issue.

Thank you!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.