Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
madeinquant opened this issue Apr 5, 2015 · 11 comments
Labels
Type: Bug Something is broken!

Comments

@madeinquant
Copy link

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
  6. R x64 3.1.3

[4/5/2015 8:30:48 AM] [Pid:6160, Tid:5, Apid:1] initAndGenerate: starting
[4/5/2015 8:30:48 AM] [Pid:6160, Tid:5, Apid:1] Starting server 'C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40\RProvider.Server.exe' with arguments 'RInteropServer_6160_468002062_16654449 "C:\Users\nelson\AppData\Local\Temp\tmp251C.tmp"' (exists=true)
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:1, Apid:1] Starting 'RProvider.Server' with arguments '[|"RInteropServer_6160_468002062_16654449";
"C:\Users\nelson\AppData\Local\Temp\tmp251C.tmp"|]'
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:1, Apid:1] Registering RInteropServer at channel 'RInteropServer_6160_468002062_16654449'
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:1, Apid:1] Ready for connections..
[4/5/2015 8:30:48 AM] [Pid:6160, Tid:5, Apid:1] Attempting to connect via IPC
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:1, Apid:1] Waiting for parent process pid=6160 (System.Diagnostics.Process (WDExpress))
[4/5/2015 8:30:48 AM] [Pid:6160, Tid:5, Apid:1] Got some server
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:1, Apid:1] Server started, running event loop
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:1, Apid:1] server event loop: starting
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:5, Apid:1] Probing locations: C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\Deedle.1.0.7\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\DynamicInterop.0.7.1.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Charting.0.90.9\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Core.3.1.2.1\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Data.2.2.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Core.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Linq.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Metadata.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Parallel.Seq.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\MathNet.Numerics.3.6.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\MathNet.Numerics.FSharp.3.6.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.1.5.16\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.FSharp.0.1.9\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\RProvider.1.1.8\lib\net40
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:5, Apid:1] Found assembly, checking version! (C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.1.5.16\lib\net40\RDotNet.dll)
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:5, Apid:1] ...version matches, returning!
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:5, Apid:1] setupPathVariable
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:5, Apid:1] getRLocation
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:5, Apid:1] Scanning the registry
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:5, Apid:1] setupPathVariable: path='C:\Program Files\R\R-3.1.3\bin\x64', home='C:\Program Files\R\R-3.1.3'
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:5, Apid:1] setupPathVariable completed
[4/5/2015 8:30:48 AM] [Pid:6160, Tid:5, Apid:1] generateTypes: getting packages
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:1, Apid:1] eval(.packages(all.available=T))
[4/5/2015 8:30:48 AM] [Pid:4784, Tid:1, Apid:1] engine: Creating and initializing instance (sizeof=8)
[4/5/2015 8:30:49 AM] [Pid:4784, Tid:1, Apid:1] engine: Created & initialized instance
[4/5/2015 8:30:49 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:30:49 AM] [Pid:4784, Tid:1, Apid:1] Probing locations: C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\Deedle.1.0.7\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\DynamicInterop.0.7.1.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Charting.0.90.9\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Core.3.1.2.1\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Data.2.2.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Core.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Linq.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Metadata.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Parallel.Seq.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\MathNet.Numerics.3.6.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\MathNet.Numerics.FSharp.3.6.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.1.5.16\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.FSharp.0.1.9\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\RProvider.1.1.8\lib\net40
[4/5/2015 8:30:49 AM] [Pid:4784, Tid:1, Apid:1] Found assembly, checking version! (C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.FSharp.0.1.9\lib\net40\RDotNet.FSharp.dll)
[4/5/2015 8:30:49 AM] [Pid:4784, Tid:1, Apid:1] ...version matches, returning!
[4/5/2015 8:30:49 AM] [Pid:6160, Tid:5, Apid:1] initAndGenerate: finished
[4/5/2015 8:30:49 AM] [Pid:6160, Tid:5, Apid:1] Probing locations: C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\Deedle.1.0.7\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\DynamicInterop.0.7.1.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Charting.0.90.9\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Core.3.1.2.1\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Data.2.2.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Core.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Linq.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Metadata.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Parallel.Seq.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\MathNet.Numerics.3.6.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\MathNet.Numerics.FSharp.3.6.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.1.5.16\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.FSharp.0.1.9\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\RProvider.1.1.8\lib\net40
[4/5/2015 8:30:49 AM] [Pid:6160, Tid:5, Apid:1] Found assembly, checking version! (C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.1.5.16\lib\net40\RDotNet.dll)
[4/5/2015 8:30:49 AM] [Pid:6160, Tid:5, Apid:1] ...version matches, returning!
[4/5/2015 8:30:49 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:49 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:49 AM] [Pid:4784, Tid:1, Apid:1] eval(require(caret))
[4/5/2015 8:30:52 AM] [Pid:4784, Tid:1, Apid:1] Output: Loading required package: caret
Loading required package: lattice
Loading required package: ggplot2

[4/5/2015 8:30:52 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:52 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:52 AM] [Pid:4784, Tid:1, Apid:1] evalto(function (pkgName) {
require(pkgName, character.only=TRUE)
pkgListing <- ls(paste("package:",pkgName,sep=""))
lapply(
pkgListing,
function (pname) {
pval <- get(pname)
ptype <- typeof(pval)
if (ptype == "closure") {
list(name=pname, type=ptype, params=list(names(formals(pname))))
} else {
list(name=pname, type=ptype, params=NA)
}
}
)
}, fsr_4784_1)
[4/5/2015 8:30:52 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:30:52 AM] [Pid:4784, Tid:1, Apid:1] eval(fsr_4784_1('caret'))
[4/5/2015 8:30:52 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:30:52 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:52 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:52 AM] [Pid:4784, Tid:1, Apid:1] eval(require(neuralnet))
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] Output: Loading required package: neuralnet
Loading required package: grid
Loading required package: MASS

[4/5/2015 8:30:53 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] eval(fsr_4784_1('neuralnet'))
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] eval(require(datasets))
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] eval(fsr_4784_1('datasets'))
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] eval(require(base))
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] eval(fsr_4784_1('base'))
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] eval(fsr_4784_1('base'))
[4/5/2015 8:30:53 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:30:54 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:54 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:54 AM] [Pid:4784, Tid:1, Apid:1] eval(require(utils))
[4/5/2015 8:30:54 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:30:54 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:54 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:54 AM] [Pid:4784, Tid:1, Apid:1] eval(fsr_4784_1('utils'))
[4/5/2015 8:30:54 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:30:54 AM] [Pid:2932, Tid:1, Apid:1] initAndGenerate: starting
[4/5/2015 8:30:54 AM] [Pid:2932, Tid:1, Apid:1] Starting server 'C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40\RProvider.Server.exe' with arguments 'RInteropServer_2932_468008593_2077652421 "C:\Users\nelson\AppData\Local\Temp\tmp3EA1.tmp"' (exists=true)
[4/5/2015 8:30:54 AM] [Pid:3040, Tid:1, Apid:1] Starting 'RProvider.Server' with arguments '[|"RInteropServer_2932_468008593_2077652421";
"C:\Users\nelson\AppData\Local\Temp\tmp3EA1.tmp"|]'
[4/5/2015 8:30:54 AM] [Pid:3040, Tid:1, Apid:1] Registering RInteropServer at channel 'RInteropServer_2932_468008593_2077652421'
[4/5/2015 8:30:54 AM] [Pid:3040, Tid:1, Apid:1] Ready for connections..
[4/5/2015 8:30:54 AM] [Pid:2932, Tid:1, Apid:1] Attempting to connect via IPC
[4/5/2015 8:30:54 AM] [Pid:2932, Tid:1, Apid:1] Got some server
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:1, Apid:1] Waiting for parent process pid=2932 (System.Diagnostics.Process (Fsi))
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:1, Apid:1] Server started, running event loop
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:1, Apid:1] server event loop: starting
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:5, Apid:1] Probing locations: C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\Deedle.1.0.7\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\DynamicInterop.0.7.1.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Charting.0.90.9\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Core.3.1.2.1\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Data.2.2.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Core.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Linq.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Metadata.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Parallel.Seq.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\MathNet.Numerics.3.6.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\MathNet.Numerics.FSharp.3.6.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.1.5.16\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.FSharp.0.1.9\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\RProvider.1.1.8\lib\net40
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:5, Apid:1] Found assembly, checking version! (C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.1.5.16\lib\net40\RDotNet.dll)
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:5, Apid:1] ...version matches, returning!
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:5, Apid:1] setupPathVariable
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:5, Apid:1] getRLocation
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:5, Apid:1] Scanning the registry
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:5, Apid:1] setupPathVariable: path='C:\Program Files\R\R-3.1.3\bin\x64', home='C:\Program Files\R\R-3.1.3'
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:5, Apid:1] setupPathVariable completed
[4/5/2015 8:30:55 AM] [Pid:2932, Tid:1, Apid:1] generateTypes: getting packages
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:1, Apid:1] eval(.packages(all.available=T))
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:1, Apid:1] engine: Creating and initializing instance (sizeof=8)
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:1, Apid:1] engine: Created & initialized instance
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:1, Apid:1] Probing locations: C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\Deedle.1.0.7\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\DynamicInterop.0.7.1.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Charting.0.90.9\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Core.3.1.2.1\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Data.2.2.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Core.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Linq.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Metadata.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Parallel.Seq.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\MathNet.Numerics.3.6.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\MathNet.Numerics.FSharp.3.6.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.1.5.16\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.FSharp.0.1.9\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\RProvider.1.1.8\lib\net40
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:1, Apid:1] Found assembly, checking version! (C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.FSharp.0.1.9\lib\net40\RDotNet.FSharp.dll)
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:1, Apid:1] ...version matches, returning!
[4/5/2015 8:30:55 AM] [Pid:2932, Tid:1, Apid:1] initAndGenerate: finished
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:55 AM] [Pid:3040, Tid:1, Apid:1] eval(require(caret))
[4/5/2015 8:30:58 AM] [Pid:3040, Tid:1, Apid:1] Output: Loading required package: caret
Loading required package: lattice
Loading required package: ggplot2

[4/5/2015 8:30:58 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:58 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:58 AM] [Pid:3040, Tid:1, Apid:1] evalto(function (pkgName) {
require(pkgName, character.only=TRUE)
pkgListing <- ls(paste("package:",pkgName,sep=""))
lapply(
pkgListing,
function (pname) {
pval <- get(pname)
ptype <- typeof(pval)
if (ptype == "closure") {
list(name=pname, type=ptype, params=list(names(formals(pname))))
} else {
list(name=pname, type=ptype, params=NA)
}
}
)
}, fsr_3040_1)
[4/5/2015 8:30:58 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:30:58 AM] [Pid:3040, Tid:1, Apid:1] eval(fsr_3040_1('caret'))
[4/5/2015 8:30:58 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:30:58 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:58 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:58 AM] [Pid:3040, Tid:1, Apid:1] eval(require(neuralnet))
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] Output: Loading required package: neuralnet
Loading required package: grid
Loading required package: MASS

[4/5/2015 8:30:59 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] eval(fsr_3040_1('neuralnet'))
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] eval(require(datasets))
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] eval(fsr_3040_1('datasets'))
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] eval(require(base))
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] eval(fsr_3040_1('base'))
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] eval(fsr_3040_1('base'))
[4/5/2015 8:30:59 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:31:00 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:00 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:00 AM] [Pid:3040, Tid:1, Apid:1] eval(require(utils))
[4/5/2015 8:31:00 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:31:00 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:00 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:00 AM] [Pid:3040, Tid:1, Apid:1] eval(fsr_3040_1('utils'))
[4/5/2015 8:31:00 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:31:00 AM] [Pid:2932, Tid:1, Apid:1] eval(datasets::iris)
[4/5/2015 8:31:00 AM] [Pid:2932, Tid:1, Apid:1] engine: Creating and initializing instance (sizeof=4)
[4/5/2015 8:31:00 AM] [Pid:2932, Tid:1, Apid:1] setupPathVariable
[4/5/2015 8:31:00 AM] [Pid:2932, Tid:1, Apid:1] getRLocation
[4/5/2015 8:31:00 AM] [Pid:2932, Tid:1, Apid:1] Scanning the registry
[4/5/2015 8:31:00 AM] [Pid:2932, Tid:1, Apid:1] engine: Creating instance failed:
System.ApplicationException: Windows Registry key 'SOFTWARE\R-core' not found in HKEY_LOCAL_MACHINE nor HKEY_CURRENT_USER
at RDotNet.NativeLibrary.NativeUtility.GetRCoreRegistryKeyWin32()
at RDotNet.NativeLibrary.NativeUtility.FindRPathFromRegistry()
at RDotNet.NativeLibrary.NativeUtility.FindRPath()
at RDotNet.NativeLibrary.NativeUtility.SetEnvironmentVariables(String rPath, String rHome)
at RDotNet.REngine.SetEnvironmentVariables(String rPath, String rHome)
at RDotNet.REngine.GetInstance(String dll, Boolean initialize, StartupParameter parameter, ICharacterDevice device)
at [email protected]() in c:\Tomas\Public\FSharp.RProvider\src\RProvider\RInit.fs:line 116
[4/5/2015 8:31:00 AM] [Pid:2932, Tid:1, Apid:1] Output:
[4/5/2015 8:31:00 AM] [Pid:2932, Tid:1, Apid:1] Operation failed:
System.Exception: Initialization of R.NET failed ---> System.ApplicationException: Windows Registry key 'SOFTWARE\R-core' not found in HKEY_LOCAL_MACHINE nor HKEY_CURRENT_USER
at RDotNet.NativeLibrary.NativeUtility.GetRCoreRegistryKeyWin32()
at RDotNet.NativeLibrary.NativeUtility.FindRPathFromRegistry()
at RDotNet.NativeLibrary.NativeUtility.FindRPath()
at RDotNet.NativeLibrary.NativeUtility.SetEnvironmentVariables(String rPath, String rHome)
at RDotNet.REngine.SetEnvironmentVariables(String rPath, String rHome)
at RDotNet.REngine.GetInstance(String dll, Boolean initialize, StartupParameter parameter, ICharacterDevice device)
at [email protected]() in c:\Tomas\Public\FSharp.RProvider\src\RProvider\RInit.fs:line 116
--- End of inner exception stack trace ---
at [email protected]() in c:\Tomas\Public\FSharp.RProvider\src\RProvider\RInit.fs:line 124
at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue()
at System.Lazy1.get_Value() at [email protected](Unit unitVar0) in c:\Tomas\Public\FSharp.RProvider\src\RProvider\RInterop.fs:line 293 at RProvider.Internal.Logging.logWithOutput[a](CharacterDeviceInterceptor characterDevice, FSharpFunc2 f) in c:\Tomas\Public\FSharp.RProvider\src\RProvider\Logging.fs:line 57
[4/5/2015 8:31:02 AM] [Pid:6160, Tid:1, Apid:1] Probing locations: C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\Deedle.1.0.7\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\DynamicInterop.0.7.1.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Charting.0.90.9\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Core.3.1.2.1\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSharp.Data.2.2.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Core.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Linq.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Metadata.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\FSPowerPack.Parallel.Seq.Community.3.0.0.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\MathNet.Numerics.3.6.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\MathNet.Numerics.FSharp.3.6.0\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.1.5.16\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\R.NET.Community.FSharp.0.1.9\lib\net40;C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib\net40......\RProvider.1.1.8\lib\net40
[4/5/2015 8:31:02 AM] [Pid:6160, Tid:1, Apid:1] Assembly not found!
[4/5/2015 8:31:07 AM] [Pid:6160, Tid:19, Apid:1] initAndGenerate: starting
[4/5/2015 8:31:07 AM] [Pid:6160, Tid:19, Apid:1] generateTypes: getting packages
[4/5/2015 8:31:07 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:07 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:07 AM] [Pid:4784, Tid:1, Apid:1] eval(.packages(all.available=T))
[4/5/2015 8:31:07 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:31:07 AM] [Pid:6160, Tid:19, Apid:1] initAndGenerate: finished
[4/5/2015 8:31:07 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:07 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:07 AM] [Pid:4784, Tid:1, Apid:1] eval(require(stats))
[4/5/2015 8:31:07 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:31:07 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:07 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:07 AM] [Pid:4784, Tid:1, Apid:1] eval(fsr_4784_1('stats'))
[4/5/2015 8:31:07 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] eval(require(graphics))
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] eval(fsr_4784_1('graphics'))
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] eval(fsr_4784_1('base'))
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] eval(fsr_4784_1('base'))
[4/5/2015 8:31:08 AM] [Pid:4784, Tid:1, Apid:1] Output:
[4/5/2015 8:31:12 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:12 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:12 AM] [Pid:3040, Tid:1, Apid:1] eval(require(stats))
[4/5/2015 8:31:12 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:31:12 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:12 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:12 AM] [Pid:3040, Tid:1, Apid:1] eval(fsr_3040_1('stats'))
[4/5/2015 8:31:12 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:31:13 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:13 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:13 AM] [Pid:3040, Tid:1, Apid:1] eval(require(graphics))
[4/5/2015 8:31:13 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:31:13 AM] [Pid:3040, Tid:5, Apid:1] Adding work item to queue
[4/5/2015 8:31:13 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got work item
[4/5/2015 8:31:13 AM] [Pid:3040, Tid:1, Apid:1] eval(fsr_3040_1('graphics'))
[4/5/2015 8:31:13 AM] [Pid:3040, Tid:1, Apid:1] Output:
[4/5/2015 8:31:27 AM] [Pid:3040, Tid:8, Apid:1] Posting Stop command
[4/5/2015 8:31:27 AM] [Pid:3040, Tid:1, Apid:1] server event loop: got stop command
[4/5/2015 8:31:27 AM] [Pid:3040, Tid:1, Apid:1] Event loop finished, shutting down
[4/5/2015 8:31:27 AM] [Pid:4784, Tid:9, Apid:1] Posting Stop command
[4/5/2015 8:31:27 AM] [Pid:4784, Tid:1, Apid:1] server event loop: got stop command
[4/5/2015 8:31:27 AM] [Pid:4784, Tid:1, Apid:1] Event loop finished, shutting down

@luminescent
Copy link

I have a similar error with R 3.1.1, the code below fails. I am running this as an Administrator.

#I @"..\packages\Deedle.1.0.7"
#I @"..\packages\RProvider.1.1.8"
#load "RProvider.fsx"
#load "Deedle.fsx"

open RProvider.utils

Here's the exception (on the last line):

System.Exception: Initialization of R.NET failed ---> System.ApplicationException: Windows Registry key 'SOFTWARE\R-core' not found in HKEY_LOCAL_MACHINE nor HKEY_CURRENT_USER
at RDotNet.NativeLibrary.NativeUtility.GetRCoreRegistryKeyWin32()
at RDotNet.NativeLibrary.NativeUtility.FindRPathFromRegistry()
at RDotNet.NativeLibrary.NativeUtility.FindRPath()
at RDotNet.NativeLibrary.NativeUtility.SetEnvironmentVariables(String rPath, String rHome)
at RDotNet.REngine.SetEnvironmentVariables(String rPath, String rHome)
at RDotNet.REngine.GetInstance(String dll, Boolean initialize, StartupParameter parameter, ICharacterDevice device)
at [email protected]() in c:\Tomas\Public\FSharp.RProvider\src\RProvider\RInit.fs:line 116
--- End of inner exception stack trace ---
at [email protected]() in c:\Tomas\Public\FSharp.RProvider\src\RProvider\RInit.fs:line 124
at System.Lazy1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Lazy1.get_Value()
at RProvider.RInteropInternal.toR(Object value) in c:\Tomas\Public\FSharp.RProvider\src\RProvider\RInterop.fs:line 287
at RProvider.RInterop.passArg@447(List1 tempSymbols, Object arg) in c:\Tomas\Public\FSharp.RProvider\src\RProvider\RInterop.fs:line 461 at [email protected](IEnumerable1& next) in c:\Tomas\Public\FSharp.RProvider\src\RProvider\RInterop.fs:line 469
at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase1.MoveNextImpl() at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase1.System-Collections-IEnumerator-MoveNext()
at Microsoft.FSharp.Collections.SeqModule.ToArray[T](IEnumerable1 source) at RProvider.RInterop.callFunc(String packageName, String funcName, IEnumerable1 argsByName, Object[] varArgs) in c:\Tomas\Public\FSharp.RProvider\src\RProvider\RInterop.fs:line 466
at <StartupCode$FSI_0007>.$FSI_0007.main@() in C:\Users\christina\Documents\Visual Studio 2013\Projects\tryNN\tryNN\NN.fsx:line 9
Stopped due to error

@luminescent
Copy link

On further analysis, I was able to make this work by installing the 32 bits version of R alongside the 64 bits. I was running the coded I quoted in FSI, which is 32 bits. So I am presuming it was falling over due to my missing 32 bits R engine version.

@madeinquant
Copy link
Author

It works, install both 32 and 64 R binaries in the windows 8.1. Thanks

@madeinquant
Copy link
Author

Thanks. I installed both 32 and 64 version, it works. BUT, I got a new error

Binding session to
'C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8\lib/net40\RProvider.Runtime.dll'...
Binding session to
'C:\sync\fsharp\AlgTrade\AlgTrade\packages\RProvider.1.1.8../R.NET.Community.FSharp.0.1.9/lib/net40\RDotNet.FSharp.dll'...
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options,
NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style,
NumberFormatInfo info)

On Tue, Apr 7, 2015 at 5:10 AM, luminescent [email protected]
wrote:

On further analysis, I was able to make this work by installing the 32
bits version of R alongside the 64 bits. I was running the coded I quoted
in FSI, which is 32 bits. So I am presuming it was falling over due to my
missing 32 bits R engine version.


Reply to this email directly or view it on GitHub
#147 (comment)
.

@jmp75
Copy link
Contributor

jmp75 commented Apr 12, 2015

You will need to provide more information; looking at the codebase of RProvider and R.NET it is not clear where this parsing of a string as an integer occurs, and even if it where it would help to know more about the top level input (R or F#) that you provide.

@luminescent
Copy link

Just something that could be added to the error message issue 148 will produce: if one has installed just R x64, everything works in FSI once it is changed to a 64 bits process in Tools/Options/F# Tools. So this could spare some users having to go back and install R 32 bits alongside their 64 bits version.

@marktab
Copy link

marktab commented Jul 2, 2015

Thanks @luminescent: "if one has installed just R x64, everything works in FSI once it is changed to a 64 bits process in Tools/Options/F# Tools"

On my machine, I'm running F# in Visual Studio 2013, and my R version is the 64-bit download from Revolution Analytics. In larger scope, I have been commenting that ever since Visual Studio has become more than just a coding environment (instead requiring to often load data) that we are suffering in the x32 architecture. In the case of the RProvider, I have been recommending that people install the 64-bit version and skip 32-bit altogether. For this application, the F# environment is more appropriate to set to 64-bit as a default data science setting.
2015-07-02_17-21-56

@luminescent
Copy link

You're welcome. Glad my comment saved you some time!

@chivandikwa
Copy link

I had the same process and problems as explained by madeinquant.
The following fixed my problem:

        Environment.SetEnvironmentVariable("R_HOME", "C:\\Program Files\\R\\R-3.2.4revised");

        using (RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\R-core\R"))
        {
            var envPath = Environment.GetEnvironmentVariable("PATH");
            string rBinPath = (string)registryKey.GetValue("InstallPath");
            string rVersion = (string)registryKey.GetValue("Current Version");
            rBinPath = System.Environment.Is64BitProcess ? rBinPath + "\\bin\\x64" :
                                                             rBinPath + "\\bin\\i386";
            Environment.SetEnvironmentVariable("PATH",
                                  envPath + Path.PathSeparator + rBinPath);
        }

@drcrook1
Copy link

I've got the same issue. Running Windows 10, I have R Open, Microsoft R Open and Revo R Enterprise installed...

Binding session to 'C:\projects\deleteme\ASPNet5Test\ConsoleApplication1\packages\FsLab.0.3.19../DynamicInterop.0.7.4/lib/net40\DynamicInterop.dll'...
Binding session to 'C:\projects\deleteme\ASPNet5Test\ConsoleApplication1\packages\FsLab.0.3.19../RProvider.1.1.20/lib/net40\RProvider.Runtime.dll'...
System.Exception: Initialization of R.NET failed ---> System.ApplicationException: Windows Registry key 'SOFTWARE\R-core' not found in HKEY_LOCAL_MACHINE nor HKEY_CURRENT_USER
at RDotNet.NativeLibrary.NativeUtility.GetRCoreRegistryKeyWin32(StringBuilder logger)
at RDotNet.NativeLibrary.NativeUtility.FindRHome(String rPath, StringBuilder logger)
at RDotNet.NativeLibrary.NativeUtility.FindRPaths(String& rPath, String& rHome, StringBuilder logSetEnvVar)
at RDotNet.NativeLibrary.NativeUtility.SetEnvironmentVariables(String rPath, String rHome)
at RDotNet.REngine.SetEnvironmentVariables(String rPath, String rHome)
at RDotNet.REngine.GetInstance(String dll, Boolean initialize, StartupParameter parameter, ICharacterDevice device)

at [email protected]() in C:\Tomas\Public\bmc\FSharp.RProvider\src\RProvider\RInit.fs:line 126
--- End of inner exception stack trace ---
at [email protected]() in C:\Tomas\Public\bmc\FSharp.RProvider\src\RProvider\RInit.fs:line 137
at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue()
at System.Lazy`1.get_Value()
at [email protected](Unit unitVar0) in C:\Tomas\Public\bmc\FSharp.RProvider\src\RProvider\RInterop.fs:line 293
at <StartupCode$FSI_0005>.$FSI_0005.main@() in C:\projects\deleteme\ASPNet5Test\ConsoleApplication1\MyWebCharting\Script.fsx:line 10
Stopped due to error

@drcrook1
Copy link

Simply switching F# interactive to x64 worked.

@dsyme dsyme added the Type: Bug Something is broken! label Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something is broken!
Projects
None yet
Development

No branches or pull requests

7 participants