getRegistry: Recursively retrieve registry keys and values

View source: R/walk.S

getRegistryR Documentation

Recursively retrieve registry keys and values

Description

This recursively iterates over the specified key and its sub-keys and returns a list of lists that provide the key-value pairs and the same for the sub-keys.

Usage

getRegistry(path = character(0), top = .BuiltinKeys[1])

Arguments

path

the identifier for a registry key.

top

the top-level key in which the path specification is found.

Value

A list of length 2

values

a list giving the key-value pairs in this key

folders

a list with an element for each of the sub-keys in this key. Each element has the same structure as this return value, i.e. a list of length 2.

Author(s)

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

References

http://www.omegahat.org/SWinRegistry

See Also

getRegistrySubKeyNames getRegistryKeyValues

Examples

 if(registryKeyExists(c("SOFTWARE", "R-core"), 4))
   getRegistry(c("SOFTWARE", "R-core"), top = 4)

omegahat/SWinRegistry documentation built on July 17, 2022, 7:26 p.m.