简体   繁体   English

如何加载实际的.RData 文件,即称为.RData(从会话中保存的压缩文件)

[英]How to load the actual .RData file, that is just called .RData (the compressed file that gets saved from a session)

Similar questions, but not the question I have, were around loading a file that someone saved as somefilename.RData .类似的问题,但不是我的问题,是关于加载某人保存为somefilename.RData的文件。 I am trying to do something different.我正在尝试做一些不同的事情。

What I am trying to do is load the actual .RData file that gets saved from an R session.我要做的是加载从 R session 保存的实际.RData文件。 The context is that I am using 2 different computers and am trying to download the.RData file from one computer and then load this same.RData file on a different computer in RStudio.上下文是我正在使用 2 台不同的计算机并尝试从一台计算机下载 .RData 文件,然后在 RStudio 中的另一台计算机上加载相同的 .RData 文件。

When I download the.RData file it shows up without the “.”当我下载 .RData 文件时,它显示时没有“。” (eg, it shows up as RData). (例如,它显示为 RData)。 When I try to rename it “.RData”, Windows will not allow me to do so.当我尝试将其重命名为“.RData”时,Windows 不允许我这样做。

Is there a way to do what I am trying to do?有没有办法做我想做的事?

Thanks!谢谢!

After playing around with this, I was able to load the file (even though it was called “RData“ and not called “.RData”, by using RStudio by going to Session > Load Workspace... and then navigating to that file. I had used File > Open File... which did not work在玩了这个之后,我能够加载文件(即使它被称为“RData”而不是“.RData”,通过使用 RStudio 转到 Session > Load Workspace... 然后导航到该文件。我用过文件>打开文件...这不起作用

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

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