getCOMClassDefFileName: Find name of file containing centralized COM class...

View source: R/management.S

getCOMClassDefFileNameR Documentation

Find name of file containing centralized COM class definitions

Description

When we register an S COM class definition, the default approach is to store it in an S list indexed by its UUID and serialize this list of know classes to a file. When R is asked to create an instance of such a class, it consults this list and finds the definition using the specified UUID. This function provides a way to find the name of the file containing the serialized list of definitions. To allow the user provide some control over where this file is stored, we look first for an environment variable named R_COM_CLASS_FILE. If this is set, we assume its value is the name of the file. Otherwise, we check if there is a setting for the option named RCOMClassFile. If there is, we use that. And if neither of these is set, we use the default file name which is RCOMClasses.rda in the top directory of the installed RDCOMServer package.

Usage

getCOMClassDefFileName()

Value

A string giving the default name of the file to use for serializing and deserializing class definitions.

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

http://www.omegahat.org/RDCOMServer http://www.omegahat.org/SWinRegistry

See Also

registerCOMClass unregisterCOMClass GetCOMClassDef loadCOMClassDefs saveCOMClassDefs

Examples

  getCOMClassDefFileName()

  options(RCOMClassFile="c:\R\COMClassDefs.rda")
  getCOMClassDefFileName()

  Sys.putenv("R_COM_CLASS_FILE" = "c:\R\COMClassDefs.rda")
  getCOMClassDefFileName()

omegahat/RDCOMServer documentation built on July 17, 2022, 7:25 p.m.