Learn R Programming

fame (version 1.13)

fameCustomization: Local Customization of the Fame Interface

Description

You can define two local functions, fameLocalInit and fameLocalPath, to customize some aspects of the FAME interface. fameLocalInit: The first time one of the functions that interfaces with a Fame database is called, the internal function fameStart is called to initialize the HLI (Host Language Interface) and open a work database. After accomplishing that, fameStart checks to see if a function named fameLocalInit exists. If so, it is called with no arguments immediately after opening the work database.

fameLocalPath: The functions getfame, putfame, fameWhats and fameWildlist all take a string db argument to specify the database to open. The string is fed to the internal function getFamePath to find the database. If a function called fameLocalPath exists, dbString is checked against the value returned by fameLocalPath(dbString). If they are not the same, the latter is returned. Otherwise, the function returns dbString if it is a valid path to an existing readable file, or NULL if it is not.

Arguments