expandEnvironmentStrings: Expand symbolic strings containing environment parameters

View source: R/utilities.S

expandEnvironmentStringsR Documentation

Expand symbolic strings containing environment parameters

Description

This is used to translate or expand the environment parameters in a string into their current values. Strings of this form are often stored in the registry using the REG_EXPAND_SZ type.

This is an interface to the Windows C-level API routine ExpandEnvironmentStrings.

Usage

expandEnvironmentStrings(x)

Arguments

x

a character vector containing the strings to be expanded.

Value

A character vector of the same length as the input argument (x) with the values expanded.

Author(s)

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

References

http://www.omegahat.org/SWinRegistry

See Also

getRegistryKeyValues

.resolveToplevelRegistryKey

Examples

  els <- getRegistryKeyValues("Environment", "HKEY_CURRENT_USER")
  expandEnvironmentStrings(els)

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