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

How to escape quotes inside quotes for a sink defintion for gstreamer command line

How to I use quotes in quotes for gstreamer command line. This is gstreamer version 1.14.4 and ubuntu version 4.9.140-tegra using bash shell all running on Jetson Nano dev system. I tried various escape methods and none worked. The following has…
1
vote
1 answer

R make lots of text files

Sample x <- 1:10 fileConn<-file("file[x.txt") writeLines("hello number", print(x), fileConn) close(fileConn) Here what I have is x which goes from 1 thru 10. I wish to make 10 files called "file1.txt" thru "file10.txt" that says "hello…
bvowe
  • 3,004
  • 3
  • 16
  • 33
1
vote
1 answer

Iterate through all sinks and enrichers registered in Serilog

How can I iterate through all sinks (ILogEventSink objects) or enrichers (ILogEventEnricher objects), respective, registered in Serilog? I'm using Serilog.AspNetCore. Thanks. So, my naive idea is: In Emit operation I must call a third party service…
user3392683
  • 69
  • 2
  • 6
1
vote
1 answer

text_multifile_backend how to set dynamic date for file name

I try to set dynamic date for my boost multi-file logger to separate log files for everyday in different files like this :'log___2018-07-10__172.17.18.199.log'. I don't want to set the date in each functions in my code a…
1
vote
2 answers

How to suppress output from RCurl's curlPerform?

I've been working on this R library for FTP for a while now and my most recent endeavor is trying to make a function that deletes things from an FTP server. However, I've found myself bamboozled for quite a while now by this problem. Here's my code…
1
vote
1 answer

Output File with Sink(): Stop Sink() outputting commands

I should say that I am rather new to R. I am attempting to use the sink() function to write output to a new file. Sink() appears to be returning everything, including all commands, when I just want it to show output. For example: If I run the…
Dan
  • 13
  • 5
1
vote
1 answer

kafka couchbase sink connector getting disconnected after dumping some records

I've installed confluent_3.3.0 and started zookeper, schema-registry and kafka broker . And downloaded couchbase connector from below link https://github.com/couchbase/kafka-connect-couchbase Running sink connector using below…
1
vote
0 answers

Make Fiware-Cygnus storing to Apache-Phoenix database

I'm new to Cygnus and to Phoenix db. I want Cygnus to store data in an Apache Phoenix db, so I have to configure the Phoenix Sink to work with Cygnus. I know that Cygnus is an extension of Apache Flume, so any Flume agent can work with it…
1
vote
1 answer

Using sink() and cat() to write to csv in R

Is there any simple way, when using sink() in R to write to a csv file, to write a row where the first 2 cells are blank, and the third cell has a specific string? It is not all that simple, and I am struggling with it. I've tried the following: #…
Canovice
  • 9,012
  • 22
  • 93
  • 211
1
vote
0 answers

writing file with sink in R

I have this code: data(iris) for (i in 1:5){ max.print <- getOption('max.print') options(max.print=nrow(iris[1:4,]) * ncol(iris[1:4,])) sink('dframe.txt',append=TRUE) iris[1:4,] sink() options(max.print=max.print) write(' …
nhern121
  • 3,831
  • 6
  • 27
  • 40
1
vote
1 answer

append dataframes of different size in same csv file (R)

Wasn't able to find a solution to this. I have a bunch of dataframes (subsets of bigger dataframes), like that. a b c 3,4 good HJJR and cod x c utc country jhh34s 5 HJJR +1 Poland jhh22d 0 JJHE +1 …
1
vote
2 answers

How to make R foreach threads write to same log file

I have a number of lengthy jobs that I want to parallelize with foreach-dopar so that each thread works on a job independent of others. I want to track the status of each thread (some may fail while others succeed) by writing to a log file using…
horaceT
  • 621
  • 13
  • 26
1
vote
1 answer

How to create a text file in R to output results from different variables?

I'm wondering how can I export a text file from an R script. I want to preset some text to be printed regardless of the results, but I also want to add variables that could change in my text file. The only way I know how to do this is by using sink…
M. Beausoleil
  • 3,141
  • 6
  • 29
  • 61
1
vote
0 answers

why using sink function to save to a file returns empty file

I tried to save screen text to a file by using the sink() function. The file was created but without any data inside it.What did I do wrong? Here my toy code: sink("sink3.txt") df <- read.table(text = " color birds wolfs …
mql4beginner
  • 2,193
  • 5
  • 34
  • 73
1
vote
2 answers

Flume: Kafka Sink and control characters

I am trying to use Flume 1.6 to read my source files (pipe delimited text files) and feed them to kafka. All of the plumbing seems to work fine and all the records are getting in to kafka successfully. However, Flume seems to add NUL and STX control…
Pravesh
  • 11
  • 1