Hi all
I have been encountering a problem with my Rstudio lately. I run Rstudio on my Macbook and the Rprojects are located on my Onedrive (that syncs the file). However, since a couple of months, it keeps deleting the content of the file (not the file itself) so I lose all the information I have spent hours working on. My problem is similar these three posts: Content of .R file deleted - not the file, but the content and RStudio and Microsoft OneDrive and sometimes I have this problem How to remove a script from RStudio. I saw in one of the post that you recommended running an diagnostic report and it looks like there are a lot of errors. See a few here:
15 Jul 2021 01:48:45 [rsession-username] ERROR Unexpected exception: boost: mutex lock failed in pthread_mutex_lock: Invalid argument; LOGGED FROM: void rstudio::core::(anonymous namespace)::LockRegistration::refreshLocks() /Users/vagrant/workspace/IDE/macos-v1.2/src/cpp/core/file_lock/LinkBasedFileLock.cpp:227
16 Jul 2021 14:44:34 [rsession-username] ERROR system error 2 (No such file or directory) [path=/Users/.../.Rproj.user/B7E2B17A/sources/s-15EC60DB/A55EC61A-contents]; OCCURRED AT: rstudio::core::Error rstudio::core::FilePath::open_r(boost::shared_ptrstd::istream *) const /Users/vagrant/workspace/IDE/macos-v1.2/src/cpp/core/FilePath.cpp:1107; LOGGED FROM: rstudio::core::Error rstudio::session::source_database::get(const std::string &, bool, boost::shared_ptr) /Users/vagrant/workspace/IDE/macos-v1.2/src/cpp/session/SessionSourceDatabase.cpp:656
16 Jul 2021 14:44:34 [rsession-username] ERROR system error 2 (No such file or directory) [path=/Users/.../.Rproj.user/B7E2B17A/sources/s-15EC60DB/4102FD5-contents]; OCCURRED AT: rstudio::core::Error rstudio::core::FilePath::open_r(boost::shared_ptrstd::istream *) const /Users/vagrant/workspace/IDE/macos-v1.2/src/cpp/core/FilePath.cpp:1107; LOGGED FROM: rstudio::core::Error rstudio::session::source_database::get(const std::string &, bool, boost::shared_ptr) /Users/vagrant/workspace/IDE/macos-v1.2/src/cpp/session/SessionSourceDatabase.cpp:656
16 Jul 2021 14:44:34 [rsession-username] ERROR system error 2 (No such file or directory) [path=/Users/.../.Rproj.user/B7E2B17A/sources/s-15EC60DB/51BE6FC4-contents]; OCCURRED AT: rstudio::core::Error rstudio::core::FilePath::open_r(boost::shared_ptrstd::istream *) const /Users/vagrant/workspace/IDE/macos-v1.2/src/cpp/core/FilePath.cpp:1107; LOGGED FROM: rstudio::core::Error rstudio::session::source_database::get(const std::string &, bool, boost::shared_ptr) /Users/vagrant/workspace/IDE/macos-v1.2/src/cpp/session/SessionSourceDatabase.cpp:656
What is worst is that my onedrive keeps warning me that I have recently deleted several files. It sends me a constant reminder whenever I am working on R.
Any help would be greatly appreciated it. Thank you so much