Skip to content

Commit

Permalink
Disable R.NET AutoPrint (fix fslaborg#161 and perhaps fslaborg#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpetricek committed Nov 14, 2015
1 parent 257930c commit 278388a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 278388a

Please sign in to comment.