Seeking advice (Windows Registry key 'SOFTWARE\R-core' not found in HKEY_LOCAL_MACHINE nor HKEY_CURRENT_USER)

460 views
Skip to first unread message

Nelson Mok

unread,
Apr 3, 2015, 2:23:12 AM4/3/15
to fsharp-o...@googlegroups.com
When I execute in interactive, I got the following error 

Please advise me how to fix the error (Seeking advice (Windows Registry key 'SOFTWARE\R-core' not found in HKEY_LOCAL_MACHINE nor HKEY_CURRENT_USER))

System configuration

1. Visual Studio Express 2013 version 12.0.21005.1 REL
2. Windows 8.1
3. RProvider.1.1.8
4. R.NET.Community.1.5.16
5. R.NET.Community.FSharp.0.1.9

========================================
#I @"..\packages\RProvider.1.1.8"
#load "RProvider.fsx"
#r "RDotNet.dll"
#r "RDotNet.FSharp.dll"
#r "RDotNet.NativeLibrary.dll"
#r "RProvider.dll"

open System
open RDotNet
open RProvider
open RProvider.``base``
open RProvider.graphics
open RProvider.stats

// Random number generator
let rng = Random()
let rand () = rng.NextDouble()

// Generate fake X1 and X2 
let X1s = [ for i in 0 .. 9 -> 10. * rand () ]
let X2s = [ for i in 0 .. 9 -> 5. * rand () ]

// Build Ys, following the "true" model
let Ys = [ for i in 0 .. 9 -> 5. + 3. * X1s.[i] - 2. * X2s.[i] + rand () ]

let dataset =
    namedParams [
        "Y", box Ys;
        "X1", box X1s;
        "X2", box X2s; ]
    |> R.data_frame


Taha Hachana

unread,
Apr 3, 2015, 2:26:11 AM4/3/15
to fsharp-o...@googlegroups.com
Is R isn't installed on your machine?

Nelson Mok

unread,
Apr 3, 2015, 3:04:13 AM4/3/15
to fsharp-o...@googlegroups.com
Yes, it is. R x64 3.1.3

Tomas Petricek (Info)

unread,
Apr 3, 2015, 12:44:34 PM4/3/15
to fsharp-o...@googlegroups.com

I’m not 100% sure, but I think that the R provider looks for 32bit version of R by default (on Windows).

Could you try installing 32bit R and see if that works?

 

If it does work with 32bit but does not work with 64bit, then I think we need to do some work to make it compatible with both.

Could you please open an issue for this on GitHub: https://github.com/BlueMountainCapital/FSharpRProvider

 

Thanks,

Tomas

--
--
To post, send email to fsharp-o...@googlegroups.com
To unsubscribe, send email to
fsharp-opensou...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/fsharp-opensource
---
You received this message because you are subscribed to the Google Groups "F# Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fsharp-opensou...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nelson Mok

unread,
Apr 3, 2015, 9:16:28 PM4/3/15
to fsharp-o...@googlegroups.com
Hi Tomas,
After uninstall R x64 3.1.3 and install R x32 3.1.3, visual studio cannot recognize namespace(RProvider.``base``, graphics and stats).

With  R x64 3.1.3 , namespace can be recognized, but cannot not be compile and got error message ( Windows Registry key 'SOFTWARE\R-core' not found in HKEY_LOCAL_MACHINE nor HKEY_CURRENT_USER)

Regards,
Nelson.

Tomas Petricek (Info)

unread,
Apr 4, 2015, 12:38:29 PM4/4/15
to fsharp-o...@googlegroups.com

Hi Nelson,

Hmm, that is odd – you need to check some option during R installation to write version to the registry, but AFAIK, it is checked by default – so unless you uncheck it, that should work.

 

Can you please produce a log file using the instructions from here: http://bluemountaincapital.github.io/FSharpRProvider/diagnostics.html

And then report the issue here:

https://github.com/BlueMountainCapital/FSharpRProvider/issues

Nelson Mok

unread,
Apr 4, 2015, 8:44:07 PM4/4/15
to fsharp-o...@googlegroups.com
Hi Tomas,

   The issue has been reported. Thanks.

Regards,
Nelson.

On Saturday, April 4, 2015 at 12:44:34 AM UTC+8, Tomas Petricek wrote:

Nelson Mok

unread,
Apr 10, 2015, 10:31:38 PM4/10/15
to fsharp-o...@googlegroups.com
It works, install both 32 and 64 R binaries in the windows 8.1. Thanks
Reply all
Reply to author
Forward
0 new messages