找回密码
 注册
查看: 1963|回复: 0

R语言:getDLLRegisteredRoutines()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 17:40:05 | 显示全部楼层 |阅读模式
getDLLRegisteredRoutines(base)
getDLLRegisteredRoutines()所属R语言包:base

                                        Reflectance Information for C/Fortran routines in a DLL
                                         在DLL中的C / Fortran例程的反射信息

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

This function allows us to query the set of routines in a DLL that are registered with R to enhance dynamic lookup, error handling when calling native routines, and potentially security in the future. This function provides a description of each of the registered routines in the DLL for the different interfaces, i.e. .C, .Call, .Fortran and .External.
此功能允许我们在加强动态查找,错误处理时调用本地例程,并可能在未来的安全与R注册的DLL的例程集查询。此功能提供每个注册DLL中的例程的描述了不同的接口,即.C,.Call,.Fortran和.External。


用法----------Usage----------


getDLLRegisteredRoutines(dll, addNames = TRUE)



参数----------Arguments----------

参数:dll
a character string or DLLInfo object. The character string specifies the file name of the DLL of interest, and is given without the file name extension (e.g., the ".dll" or ".so") and with no directory/path information. So a file "MyPackage/libs/MyPackage.so" would be specified as MyPackage.  The DLLInfo objects can be obtained directly in calls to dyn.load and  library.dynam, or can be found after the DLL has been loaded using getLoadedDLLs, which returns a list of DLLInfo objects (index-able by DLL file name).  The DLLInfo approach avoids any ambiguities related to two DLLs having the same name but corresponding to files in different directories.  
字符串或DLLInfo对象。该字符串指定利益的DLL文件名,没有文件扩展名(例如,.dll或.so),并没有目录/路径信息。这样一个文件MyPackage/libs/MyPackage.so将被指定为MyPackage。 DLLInfo对象可以直接获得在调用dyn.load和library.dynam,或可发现后已加载的DLL使用getLoadedDLLs,返回一个列表DLLInfo对象(DLL文件的名称指数能够)。 DLLInfo方法避免了两个DLL具有相同的名称,但相应的在不同的目录中的文件有关的任何含糊。


参数:addNames
a logical value.  If this is TRUE, the elements of the returned lists are named using the names of the routines (as seen by R via registration or raw name).  If FALSE, these names are not computed and assigned to the lists.  As a result, the call should be quicker.  The name information is also available in the NativeSymbolInfo objects in the lists.  
一个逻辑值。如果这是TRUE,在返回的列表中的元素被命名为使用的例程的名称(由R通过登记或原料名称)。如果FALSE,这些名字都没有计算和分配名单。因此,呼叫应该更快。也可以在NativeSymbolInfo对象名单的名称信息。


Details

详情----------Details----------

This takes the registration information after it has been registered and processed by the R internals.  In other words, it uses the extended information
这需要的注册信息后,已登记和ř内部处理。换句话说,它采用了扩展信息


值----------Value----------

A list with four elements corresponding to the routines registered for the .C, .Call, .Fortran and .External interfaces. Each element is a list with as many elements as there were routines registered for that interface. Each element identifies a routine and is an object of class NativeSymbolInfo. An object of this class has the following fields:
与四大元素,C注册的例程对应的列表,呼叫,Fortran和外部接口。每个元素都是一个与尽可能多的元素,因为该接口注册的例程的列表。每个元素标识了一个常规对象是一个类NativeSymbolInfo。这个类的对象有以下领域:


参数:name
the registered name of the routine (not necessarily the name in the C code).
例行的注册名称(不一定在C代码中的名称)。


参数:address
the memory address of the routine as resolved in the loaded DLL. This may be NULL if the symbol has not yet been resolved.
解决加载的DLL例程的内存地址。这可能是NULL如果符号尚未解决。


参数:dll
an object of class DLLInfo describing the DLL. This is same for all elements returned.
类DLLInfo描述DLL的对象。所有返回的元素,这是相同的。


参数:numParameters
the number of arguments the native routine is to be called with.  In the future, we will provide information about the types of the parameters also.  
是被称为本地常规参数的数量。在未来,我们将提供有关参数也类型的信息。


作者(S)----------Author(s)----------


Duncan Temple Lang <a href="mailto:duncan@wald.ucdavis.edu">duncan@wald.ucdavis.edu</a>



参考文献----------References----------

R News, Volume 1/3, September 2001.   &quot;In search of C/C++ &amp; Fortran Symbols&quot;

参见----------See Also----------

getLoadedDLLs
getLoadedDLLs


举例----------Examples----------


dlls <- getLoadedDLLs()
getDLLRegisteredRoutines(dlls[["base"]])

getDLLRegisteredRoutines("stats")

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-2 20:07 , Processed in 0.019501 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表