createRegistryPath | R Documentation |
This allows one to create an identifier for an entry in the Windows registry, identifying the entry as either a simple value or a regular key which potentially has sub-keys.
createRegistryPath(path, top, isValue)
path |
a character vector giving the path or sequence
of entries identifying the hierarchical entry
in the Windows registry. This is resolved relative
to the |
top |
the top-level key of the root of the registry |
isValue |
a logical value indicating whether the path identifies a key or a value |
An object of class
or depending
on the value of isValue
.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://www.omegahat.org/SWinRegistry
createRegistryPath("SOFTWARE", "HKEY_LOCAL_MACHINE", FALSE) # Partial matching for the top argument createRegistryPath("SOFTWARE", "HKEY_LOC", FALSE) # Using integers based on the index in the .BuiltinKeys createRegistryPath("SOFTWARE", 4, FALSE) # Nested path using a single string. createRegistryPath("SOFTWARE\\R-core\\R", 4, FALSE) # Nested path and a Value reference. createRegistryPath("SOFTWARE\\R-core\\R\\InstallPath", 4, TRUE) # Mixing the forms in which we specify the path, elements and # a single string with \ createRegistryPath(c("a", "b", "c", "x\\y\\z"), "HKEY_LOCAL_MACHINE", TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.