I am working on an Rcpp-enabled R-package as a project in RStudio (version 1.0.136, Ubuntu 16.04 64 bit) and have recently started receiving an error message after creating the package using Tools> Build and Reboot. Error dialog box:
Save File No such file or directory
The error occurs immediately after the build and reboot. Rather, this happens some time later, making changes to files that seem random, and not necessarily when trying to save. However, after closing the dialog box, the files cannot be saved without generating another error, this time with the message:
Error Saving File No such file or directory
After that, the only way forward is to restart RStudio without saving any files, thereby losing all changes.
The problem does not seem to be related to either roxygen2 or devtools, since I tried to build using the Generate documentation using the Roxygen and Use devtools functions in Tools> Project Settings> Build Tools. I also tried uninstalling and installing RStudio, as well as updating devtools, etc., but the problem persists. I am wondering if this is a problem in one of the package files such as NAMESPACE or DESCRIPTION. The package repository is available at https://github.com/shaunpwilkinson/insect .
source share