简体   繁体   English

.R文件无法在anaconda上突然打开

[英].R files not opening suddenly on anaconda

I use Anaconda for both python and R, I updated today, after that none of my R files are opening. 我将Anaconda用于python和R,今天更新了,此后我的R文件都没有打开。 I wrote a block of code, saved and tried to open, but after it opens, the entire file is empty. 我写了一段代码,保存并尝试打开,但是打开之后,整个文件为空。 I tried uninstalling and installing again, but its the same. 我尝试再次卸载和安装,但相同。 Can anyone help me out with this please, my college project work is struck in between and I see all my developed codes gone suddenly. 任何人都可以帮我这个忙,我的大学项目工作介于两者之间,我发现我开发的所有代码突然消失了。

Thank You in Advance 先感谢您

I've had this happen to me a few times. 我已经发生过几次这种情况。 My work around is the navigate to the file in file explorer, right click on it, and open in a text editor. 我的解决方法是导航到文件资源管理器中的文件,右键单击它,然后在文本编辑器中打开。 This should provide you your code. 这应该为您提供代码。 From there copy and paste back into your IDE. 从那里复制并粘贴回您的IDE。 Further, saving the file with UTF-8 encoding supposedly helps as well, but I have yet to determine if this is a full workaround. 此外,使用UTF-8编码保存文件也有帮助,但是我还没有确定这是否是完整的解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM