Skip to content

Commit

Permalink
Merge pull request #162 from tpetricek/master
Browse files Browse the repository at this point in the history
 Disable R.NET AutoPrint
  • Loading branch information
tpetricek committed Nov 14, 2015
2 parents 257930c + 9a58b83 commit 04997e5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@
* 1.1.11 - Update to R.NET 1.6.4 (support R version 2.14.1)
* 1.1.12 - Include transitive dependency on DynamicInterop
* 1.1.13 - Skip assembly resolution for mscorlib.resources (avoids recursive lookup error)
* 1.1.14 - Improve Liinux compatibility - try searching for libR.so (#157)
* 1.1.14 - Improve Linux compatibility - try searching for libR.so (#157)
* 1.1.15 - Disable R.NET AutoPrint (fix #161 and perhaps #160)
4 changes: 2 additions & 2 deletions src/Common/AssemblyInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open System.Reflection
[<assembly: AssemblyCompanyAttribute("BlueMountain Capital")>]
[<assembly: AssemblyProductAttribute("RProvider")>]
[<assembly: AssemblyDescriptionAttribute("An F# Type Provider providing strongly typed access to the R statistical package.")>]
[<assembly: AssemblyVersionAttribute("1.1.14")>]
[<assembly: AssemblyFileVersionAttribute("1.1.14")>]
[<assembly: AssemblyVersionAttribute("1.1.15")>]
[<assembly: AssemblyFileVersionAttribute("1.1.15")>]
do ()

2 changes: 1 addition & 1 deletion src/RProvider/RInit.fs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ let internal engine = Lazy<_>(fun () ->
try
Logging.logf "engine: Creating and initializing instance (sizeof<IntPtr>=%d)" IntPtr.Size
initResult.Force() |> ignore
let engine = REngine.GetInstance(null, true, null, characterDevice)
let engine = REngine.GetInstance(null, true, null, characterDevice, AutoPrint=false)
System.AppDomain.CurrentDomain.DomainUnload.Add(fun _ -> engine.Dispose())
Logging.logf "engine: Created & initialized instance"
engine
Expand Down
4 changes: 2 additions & 2 deletions src/RProvider/RInterop.fs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ module RInterop =
| "double" | "character" | "list" | "logical" ->
RValue.Value
| something ->
printfn "Ignoring name %s of type %s" name something
Logging.logf "Ignoring name %s of type %s" name something
RValue.Value

let getPackages() : string[] =
Expand Down Expand Up @@ -429,7 +429,7 @@ module RInterop =
| "double" | "character" | "list" | "logical" ->
RValue.Value
| something ->
printfn "Ignoring name %s of type %s" name something
Logging.logf "Ignoring name %s of type %s" name something
RValue.Value
name, serializeRValue value

Expand Down

0 comments on commit 04997e5

Please sign in to comment.