LoadRegTypeLib | R Documentation |
Like LoadTypeLib
, this function
loads a type library into R and returns a reference/handle
to it. However, how it finds the type library is different.
LoadTypeLib
is given the fully qualified
location of the file that contains the type library.
This function however consults the Window's registry
to find the type library file and then load its.
It uses the UUID that identifies the
type library, along with version information
and the locale identifier to determine which specific type
library to load.
LoadRegTypeLib(guid, version, lcid = 0)
guid |
the UUID . Currently, this is a string/character vector rather than an object of class UUID. |
version |
an integer vector giving the major and minor version number in that order. |
lcid |
a numeric/real value identifying the locale for the type library. |
This calls the C-level routine LoadRegTypeLib
.
It consults the registry. We do not.
An object of class ITypeLib-class
.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://msdn.microsoft.com/library http://www.omegahat.org/RWinTypeLibs
LoadTypeLib
getTypeLib
getTypeLibInfo
(unexported from SWinTypeLibs)
retrieves the UUID, version and locale information from
a IContainingTypeLib
object derived from a ITypeInfo
.
# Get the excel type library.
try(lib <- LoadRegTypeLib("{00020813-0000-0000-C000-000000000046}", c(1, 1)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.