createRegistryKey {SWinRegistry} | R Documentation |
These functions allow one to manage the set of keys in a
part of the registry. One can create and delete a key.
Also, flushRegistryKey
can be used
to force any changes to be immediately reflected
in the registry.
createRegistryKey(path, key = character(0), top = .BuiltinKeys[1], recursive = FALSE, check = TRUE) deleteRegistryKey(path, key, top = .BuiltinKeys[1], asKey = FALSE, recursive = FALSE, resolve = TRUE) flushRegistryKey(path, top = .BuiltinKeys[1])
path |
the hierarchical path in the registry that is combined with top
to identify the folder containing the key of interest. |
key |
the name of a key within a folder within the registry. |
top |
if specified, the name of a top-level key in the registry which is combined with path to identify the folder in which the key of interest is to be found |
check |
a logical value indicating whether we should check whether the key exists
or not before attempting to create it. If TRUE and the key exists, we simply
return the path. If the key exists but is merely a value and not a regular
key that can support sub-keys, we raise an error. |
asKey |
a logical value which, if TRUE removes the key
and which if FALSE removes the value of the key. |
recursive |
a logical value which is currently ignored. If this is activated, it would allow one to remove a folder that contains other keys. |
resolve |
a logical value indicating whether to check whether the key exists and whether it is a value or a key. |
createRegistryKey |
A logical value indicating whether the key was created or not.
If the key already existed, this is FALSE . If
the key was created anew, this is TRUE .
|
deleteRegistryKey |
A logical value which is TRUE
or else an error is thrown.
|
flushRegistryKey |
{
A logical value which is TRUE
or else an error is thrown.
}
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://www.omegahat.org/SWinRegistry
getRegistryValue
setRegistryValue
.resolveToplevelRegistryKey
regedit.exe