Examples for 'utils::readRegistry'


Read a Windows Registry Hive

Aliases: readRegistry

Keywords: utilities

### ** Examples
## No test: 
if(.Platform$OS.type == "windows") withAutoprint({
  ## only in HLM if set in an admin-mode install.
  try(readRegistry("SOFTWARE\\R-core", maxdepth = 3))

  gmt <- file.path("SOFTWARE", "Microsoft", "Windows NT",
                   "CurrentVersion", "Time Zones",
                   "GMT Standard Time", fsep = "\\")
  readRegistry(gmt, "HLM")
})
## End(No test)
## Not run: 
##D ## on a 64-bit R need this to find 32-bit JAGS
##D readRegistry("SOFTWARE\\JAGS", maxdepth = 3, view = "32")
##D 
##D ## See if there is a 64-bit user install
##D readRegistry("SOFTWARE\\R-core\\R64", "HCU", maxdepth = 2)
## End(Not run)

[Package utils version 4.2.3 Index]