R对象是否使用`dump`转储可读的跨平台? [英] Are R objects dumped using `dump` readable cross-platform?

查看:137
本文介绍了R对象是否使用`dump`转储可读的跨平台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑取代 save 的一些用途,这些用于输出.Rdata文件的 dump R $对象的表示。

假设使用 dump 创建的文件可以被安装的R读取不同的操作系统(例如linux,mac,windows)?解决方案即使那些从 save()在所有平台上都是可读的 - 如果你的目标是跨平台使用而不是使用跨应用程序,我会坚持使用这种格式。你需要一个由所有应用程序读取的格式...)。

I am considering replacing some uses of save, which exports .Rdata files, with dump, which produces text representations of R objects.

Is it safe to assume that files created using dump will be readable by R installed on different operating systems (e.g. linux, mac, windows)?

解决方案

Even those from save() are readable on all platforms -- I would stick with that format if your goal is cross-platform use rather than cross-application use (in which case you need a format read by all applications...).

这篇关于R对象是否使用`dump`转储可读的跨平台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆