从保管箱运行 R
通常在“安全受限”的情况下,程序无法安装在计算机上,我从闪存驱动器运行 R。就像魅力一样。我最近开始使用 dropbox,并认为它可以以与闪存驱动器类似的方式使用。对于尝试过此操作的人来说,它有效吗?
我可以自己测试一下,但如果这是一个死胡同,我不想去打扰。
提前致谢。
PS,这样做的优点是存储 .Rprofile,与您共享 dropbox 文件夹的人可以运行您的 R 代码。这对于不熟悉 R 的人来说特别好。
Often in "restricted security" situations in which programs can't be installed on a computer I run R from a flash drive. Works like a charm. I've recently started using dropbox and was thinking it could be used in a similar fashion to the flash drive. For anyone who has tried this does it work?
I can test it myself but don't want to go to the bother if it's a dead end.
Thanks in advance.
PS this has the advantage of storing an .Rprofile that people whom you share the dropbox folder with can then run your R code. This is particularly nice for people unfamiliar with R.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它应该可以工作。
R 的设置方式使得它的所有文件都相对于给定的顶级目录。无论是闪存驱动器中的 F:\ 或 Z:\ 驱动器,还是 Dropbox 文件夹,都无关紧要。
出于同样的原因,R 可以在共享文件夹上愉快地运行,无论是通过 Samba、NFS 还是其他机制。
It should just work.
R is set up in such a way that all its files are relative to a given top-level directory. Whether that is a F:\ or Z:\ drive from your flashdrive, or your Dropbox folder should not matter.
By the same token, R can run happily off a shared folder, be it via Samba, NFS or another mechanism.
如果您想共享 .Rprofile 或 .Rhistory 也可以。但是,我发现 .Rdata 存在问题,因为它可能很大(例如 4Gb)。对我来说,在 Dropbox 上保存 100 Mb 文件需要几分钟,而 .RData 可能更大。
另一种选择是远程服务器,您可以通过 ssh 连接。
It is fine if you want to share .Rprofile or .Rhistory. However, I see a problem with .Rdata, because it can be big (for example 4Gb). For me to save 100 Mb file on Dropbox takes minutes and .RData can be far bigger.
An alternative would be a remote server, where you could connect through ssh.