Questions tagged [sink]

Command in the programming language R. Sends R Output to a connection.

Command in the R programming language. Sends R Output to a connection.

Related tags:

187 questions
4
votes
1 answer

How can I use sink and still get messages printed in R?

I am trying to save the log of a boosting using sink function, as following code: require(xgboost) require(R.utils) data(iris) train.model <- model.matrix(Sepal.Length~., iris) dtrain <- xgb.DMatrix(data=train.model,…
patL
  • 2,259
  • 1
  • 17
  • 38
4
votes
3 answers

spark 2.2 struct streaming foreach writer jdbc sink lag

i'm in a project using spark 2.2 struct streaming to read kafka msg into oracle database. the message flow into kafka is about 4000-6000 messages per second . when using hdfs file system as sink destination ,it just works fine. when using foreach…
dalin qin
  • 126
  • 2
  • 10
4
votes
1 answer

R - Automatically create daily file to log everything from RStudio console

I typically work in one script.R file for each project (which each last a few weeks). I'd like to set up a process such that every day when I open RStudio I can start a file that stores everything I see in the console (input, output, warnings) to a…
cparmstrong
  • 799
  • 6
  • 23
4
votes
1 answer

C# Serilog only receive an e-mail after an error

I am using Serilog Sink Serilog.Sinks.Email. I get the email. Unfortunately also with the "information". I would like to receive emails first if it is a warning error or fatal. Is there a way to set this? The "information" should no longer be sent…
user7725461
4
votes
0 answers

Android Record audio from Bluetooth A2DP source

I have a custom bluetooth wearable that essentially has two microphones, streams A2DP and handles AVRCP commands. I would like to connect this device to an Android phone and record audio either with AudioRecord or in native code. I need to do some…
Rob Petit
  • 81
  • 2
4
votes
2 answers

Save the output of an r script including its commands

I want to save a part of my r script output including the commands into a text file. I know sink() but it does not include the commands or I could not find a specific option to do that. Is there any possibility to capture the commands and its…
Markus Graf
  • 533
  • 3
  • 16
4
votes
2 answers

Switching writing from file to stdout using "sink()" in R

I implemented the following procedure that aims to write some files and print a message in the end of each file when the writing is done: # Print one file per piaf output_dir_piafs <- "OUTPUT_dataset_piafs" unlink(output_dir_piafs, recursive = TRUE,…
Gauthier Boaglio
  • 10,054
  • 5
  • 48
  • 85
3
votes
1 answer

What exactly does split do in the sink() function?

What exactly does split do in the sink() function? No website or video seems to explain it explicitly.
AS_392
  • 43
  • 2
3
votes
2 answers

Issue with StreamBuilder and streams in Flutter (receiving duplicated data)

today I have faced a problem with streams and StreamBuilder. The problem is the following: If you have multiple StreamBuilder widgets listening to the same stream, and you add data into its sink, this data will go out through the stream the amount…
Gonzalo Sosa
  • 33
  • 1
  • 3
3
votes
3 answers

How to use the `sink` function within another function in R?

I have a function fun that relies on an external function external (i.e., from some package). How can I collect all the warnings that come out of external in a character vector? This is a minimal setup: # External function from another…
Mihai
  • 2,807
  • 4
  • 28
  • 53
3
votes
2 answers

Flutter: Stream is allowed?

Sometimes, when I´m watching some projects that work with streams, I see something like: final controller = StreamController(); and then: controller.sink.add(null); So, is allowed to pass null in streams? Why?
Little Monkey
  • 5,395
  • 14
  • 45
  • 83
3
votes
0 answers

Serilog SqlServer Sinks Multiple Tables

I'm using Serilog SQL Server Sink for .NET Core, and just wondering if it's possible to write logs to multiple data tables. To write to a single table the configuration would be like: "Serilog": { "MinimumLevel": "Information", "WriteTo": [ …
Azaz ul Haq
  • 1,635
  • 2
  • 18
  • 46
3
votes
0 answers

Instant messaging with kafka

I'm trying to design an instant messaging or more precisely I'm doing turn based game whose mechanism is the following: Player "A" doing something and send information about his steps to player "B". Player "B" receive this information also doing…
victor.chicu
  • 106
  • 1
  • 2
  • 14
3
votes
1 answer

Serilog Configurable SQL Server Sink

I'm trying to set up a Serilog logger with a SQL Server Sink that is configurable in the web.config. Is there a way to do this in a manner like, for example, with the rolling file sink? Example:
aghost
  • 192
  • 2
  • 8
3
votes
1 answer

sink() while simultaneously show ouput in console

How can I redirect output to some txt file but in such a way so that i can see that output simultaneously in console while generating step by step?
Al Guy
  • 191
  • 11
1
2
3
12 13