Skip to content
Prev 177417 / 398506 Next

R on Windows and RMySQL

On 4/17/2009 6:48 AM, silv at access.unizh.ch wrote:
That's what it looks like.  I'm not sure why it is reporting 'S' as a 
problem, but when I execute that line I see

 > readRegistry("SOFTWARE\\MySQL AB", hive = "HLM", maxdepth = 2)
$`MySQL Server 5.0`
$`MySQL Server 5.0`$Location
[1] "F:\\Program Files\\MySQL\\MySQL Server 5.0\\"

$`MySQL Server 5.0`$Version
[1] "5.0.22"


and when I change the key to a nonexistent one I see

 > readRegistry("SOFTWARE\\foobar", hive = "HLM", maxdepth = 2)
Error in readRegistry("SOFTWARE\\foobar", hive = "HLM", maxdepth = 2) :
   Registry key 'S' not found

I'll take a look at readRegistry and try to improve the error message.

Duncan Murdoch