[英]Turning RData file into script files
是否有一种直接的方法将.RData文件的功能转换为普通代码文件(.R)?
Check out ?dump
. 退房?dump
。 For example: 例如:
newEnv <- new.env()
load("myFunctions.Rdata", newEnv)
dump(c(lsf.str(newEnv)), file="normalCodeFile.R", envir=newEnv)
You may also be interested in ?prompt
(which creates documentation files for objects) and / or ?package.skeleton
. 您可能还对?prompt
(为对象创建文档文件)和/或?package.skeleton
感兴趣。
This recent blog post addresses a basically the same problem: 这篇最近的博客文章解决了一个基本相同的问题:
http://www.r-statistics.com/2010/09/dumping-functions-from-the-global-environment-into-an-r-script-file/ http://www.r-statistics.com/2010/09/dumping-functions-from-the-global-environment-into-an-r-script-file/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.