Create a Lazy Loading Database for Package Data Files
包数据文件创建一个延迟加载数据库
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function processes the *.rda files in a package's data subdirectory and replaces them with a lazy load database.
此功能处理一个包的数据子目录*.rda文件和延迟加载数据库替换它们。
用法----------Usage----------
makeLLDB(packageDir, compress = TRUE)
参数----------Arguments----------
参数:packageDir
Path to the package source directory
包源目录的路径
参数:compress
If TRUE, compress the resulting lazy database.
如果TRUE,压缩产生的懒惰数据库。
Details
详情----------Details----------
The purpose is to create a lazy load database before INSTALL time. This makes installation of source packages much faster because the lazy database has been precomputed.
目的是创建一个安装前的时间延迟加载数据库。这使得源代码包的安装更快,因为懒惰的数据库已预先计算。
We needed this because we want the meta data packages to have lazy load symantics for the data objects. Users should be able to load a data package using require and then ask for any of the data environments by name. We want lazy loading of these data sets because they tend to contain large environments which would take a long time to load if we did it at attach time.
我们需要这个,因为我们希望元数据包,数据对象的延迟加载symantics。用户应该能够加载一个数据包,使用require然后问任何名称的数据环境。我们希望这些数据集的延迟加载,因为它们往往含有大量的环境,这需要很长的时间来载入,如果我们不重视时间。
值----------Value----------
This function is called for its side-effect: creating a lazy loading database for a package's data files.
此功能称为其副作用:创建一个包的数据文件的延迟加载数据库。
Note that this function is destructive in that it removed the data files (the *.rda files) after creating the lazy database.
请注意,此功能是破坏性的,它删除后创建懒惰数据库的数据文件(*.rda文件)。
参考文献----------References----------
assembling annotation for genomic data.Bioinformatics 19(1), 155-156.
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。