[Rd] readRegistry function (PR#12937)

zivan.karaman at gmail.com zivan.karaman at gmail.com
Fri Sep 19 19:25:07 CEST 2008


Full_Name: Zivan Karaman
Version: 2.7.2
OS: Windows XP
Submission from: (NULL) (195.6.68.214)


I'm puzzled by the readRegistry function.

Shouldn't the "hive" argument be something like 
c("HLM", "HCR", "HCU", "HU", "HCC", "HPD") rather than 
c("HLM", "HCR", "HCU", "HU", "HCC, HPD").

For example,
> readRegistry("Test",  "HCC, HPD")
Error in readRegistry("Test", "HCC, HPD") : invalid 'hive' value

Please note also that only the first character of the 'key' argument value is
printed in case of error (key not found).

> readRegistry("SOFTWARE\\DummyTest",  "HLM")
Error in readRegistry("SOFTWARE\\DummyTest", "HLM") : 
  Registry key 'S' not found

> sessionInfo()
R version 2.7.2 (2008-08-25) 
i386-pc-mingw32 

locale:
LC_COLLATE=French_France.1252;LC_CTYPE=French_France.1252;LC_MONETARY=French_France.1252;LC_NUMERIC=C;LC_TIME=French_France.1252

attached base packages:
[1] stats     graphics  grDevices utils     base



More information about the R-devel mailing list