After my Dropbox folder was moved to ~/Library/CloudStorage, I'm having trouble with applications that rely on having a physical working directory.
A lot of my R code is in Dropbox but the orginal file locations don't exist anymore now. However, if I set my working directory in R as ~/Library/CloudStorage/Dropbox/MyFolder, R can't find any files in that folder either. If I then run getwd() to get the current working directory, it says /Users/myusername. The same happens in Stata.
Similarly, when I try to compile a LaTeX file that is stored in Dropbox, it doesn't do anything presumably because it doesn't know what the actual working directory is, because the CloudStorage folder is pointing back to the virtual Dropbox location.
Any suggestions to fix this problem are appreciated.