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
1
vote
1 answer

r cat command generate output with /t interpreted as /t not tab

I want to use the following commands to generate an output like "I want to test\ttab", but the output is "I want to test tab". I want \t to be there rather than being interpreted as a tab delimiter. Is there a way to do this? Can anyone help?…
1
vote
1 answer

save console output of each run of a for loop in separate files

I want to save console output of each run of a for loop in a separate text file. I am doing the following. for(i in 1:x) { sink(paste0("file", i, ".txt")) ## do something } But with this after sometime I am getting an error Error in sink() :…
user3664020
  • 2,980
  • 6
  • 24
  • 45
1
vote
0 answers

How to set a sink node for a network?

I have been using the following piece of code for setting a node as sink node. Now, with this code only 1st node is set as sink. If I want to set the first node detected in the network, for instance, 3rd node as the sink node, then how to do so?…
1
vote
0 answers

Flume Kafka sink not able to write complete messages to Kafka Broker

I have written a process where I'm generating messages thru custom flume source and Flume Kafka sink provided by Hortonworks to write into Kafka brokers. During this process i have noticed that if KAFKA broker is already running and then i start my…
1
vote
1 answer

how to specify the output path in R

I am new to R language. I am writing a program in spark with R. I want to save the output to the hdfs path.I tried the sink method sink("/user/new/output/test.txt") but it throws an error. Any help will be appreciated. The exact error message…
sharon paul
  • 93
  • 2
  • 9
1
vote
1 answer

Why isn't the R function sink() writing a summary output to my results file?

Edit: This problem doesn't seem to be reproducible at this point, but I've updated this question to a more concise example that illustrates what the behavior was, in case anyone encounters a similar issue. sink("res4.txt") cat("Here are my…
Mako212
  • 6,787
  • 1
  • 18
  • 37
1
vote
2 answers

R sink: Output with time

I am currently using sink to save my output to some text file: sink('out.txt', append=TRUE, split=TRUE) I would like to add to each output/message the date time at wich it was given out. sink seems not to support that. What would be the simplest…
FooBar
  • 15,724
  • 19
  • 82
  • 171
1
vote
2 answers

Gstreamer example sink

Is there a template for video sink in gstreamer, just like for plugin element ? I have the idea for something very simple: one init function, render (display) function and deinit function. Nothing more.
1
vote
1 answer

Sink (Headset) Application in CSR BlueCore5, ADK 2.5

Does anyone have experience with CSR's BlueCore5-Multimedia and the ADK 2.5 Sink Application. I am working on CSR's CNS09010v3 development board and am using their Audio Development Kit (ADK 2.5). I do not modify anything on their example Sink…
todorkr
  • 11
  • 3
1
vote
1 answer

R, sink/cat: Output something else than numbers?

I'm rather new to R and I guess there's more than one thing inadequate practice in my code (like, using a for loop). I think in this example, it could be solved better with something from the apply-family, but I would have no idea how to do it in my…
user3804488
  • 109
  • 3
  • 10
1
vote
1 answer

R: Pander sink stack full when printing summary lm

I am in the middle of generating a HTML report in Rstudio via pandoc for a collaborator. However pander is hitting the sink limit in R when trying to generate the output for the following summary of a lm() object. My R instance: version …
nfaux
  • 13
  • 4
1
vote
1 answer

pull-sample signal using appsink

I am writing a simple application using gstreamer-1.0 and I want to receive the buffers that have flowed through the pipeline back into my application. To do so, I use the appsink plugin at the end of the pipeline. Until now, everything is…
MatheuGrondin
  • 107
  • 1
  • 8
1
vote
1 answer

Spring XD - JDBC Sink configuration | columns: option named 'columns' is not supported

I am using spring-xd-1.0.0.M6. I try to configure mysql DB as a sink for the Spring-xd I follow -http://theblasfrompas.blogspot.in/2014/01/springxd-filetail-input-ingestion-jdbc.html I put my jdbc.properties file - in the 1)…
user3575226
  • 111
  • 5
  • 15
1
vote
0 answers

How to implement kitchen sink's twitter window

I'm very new to Titanium developer and i'm building an app in which I'm trying to implement Kitchen Sink's Twitter window, I already figured out that you can easily change the username from which it picks up the tweets, but I can't seem to get that…
0
votes
0 answers

sink function with future.callr

I have this R script: test.R library(future.callr) plan(callr) executeInternalActivity<-function(){ sink(file = "output.txt",append = TRUE) print(Sys.time()) Sys.sleep(3) print(Sys.time()) sink() } executeInternalActivity() …
Lev
  • 693
  • 1
  • 8
  • 24