【发布时间】:2012-06-13 16:53:04
【问题描述】:
如何以独立于操作系统的方式从 R 中打开本地 html 文件?
出于演示目的,假设文件名为 test.html 并且位于工作目录中。
最初的想法
-
system('gnome-open test.html')- 这适用于 Ubuntu
-
browseURL(paste('file://', getwd(),'test.html', sep='/'))- 这适用于 Ubuntu,但感觉有点像 hack,我不确定它是否适用于 Windows。
【问题讨论】:
标签: r