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
0
votes
0 answers

How can i have the COMPLETE Outtput of the summary-function of an intercept onlymodel (gls-function) in R?

right now I'm computing a multilevel Model in RStudio and would like to store my outputs. But I can't find any working solution for this. I used already the sink-function. The problem is that the sink function just stores the first of three outputs…
chris_uibk
  • 21
  • 5
0
votes
1 answer

Automatically sink() when exiting function when there is a error

I want to write a error log for one of my functions (see below). However, when the function fails, the sink won't get closed properly. Is there a way to always close the sinks() upon exiting the function? some_function <- function(){ con <-…
tafelplankje
  • 563
  • 1
  • 7
  • 21
0
votes
0 answers

How to use "sink" in a R function in order to get a text file?

I'm trying to use "sink" in a function in order to export my data in a text file but I'm struggling: I get an error message saying "argument "filename" is missing, with no default". Could you help me? :) That's my function: Fonction_desc <-…
0
votes
1 answer

Kafka Mongo Sink connector , how to use SMT timestampconverter for the date filed inside a JSON array

"transforms": "TimestampConverter", "transforms.TimestampConverter.type": "org.apache.kafka.connect.transforms.TimestampConverter$Value", "transforms.TimestampConverter.format": "yyyy-MM-dd", "transforms.TimestampConverter.target.type":…
0
votes
1 answer

Dart Flutter: Why use getter instead of setter for Stream Sink?

To my basic understanding of Stream and sink we add data to sink in order to pass it through the stream but to add it we use a getter instead of setter, which I find counter-intuitive (see example below), could you please explain in simple words why…
user13848261
0
votes
0 answers

save console output in different files with sink in R

Similar to this question How to save all console output to file in R? Though i want the output in two different logs. con <- file("test.log") sink(con, append=TRUE) sink(con, append=TRUE, type="message") print(1+1) #clc <- function()…
Dutschke
  • 277
  • 2
  • 15
0
votes
1 answer

How to load data into sql sink using azure?

I am trying to load data into the Azure SQL database using azure data flow. But for some reason, I cannot connect to my sink database. I have tried everything, but no luck. I am able to connect to the SQL database when I create a dataset, but why…
user86907
  • 817
  • 9
  • 21
0
votes
1 answer

Google Cloud - creating sink

Im trying to export logs in to bigquery using sink from the cloud shell. I did the following steps: bq mk dataset gcloud beta logging sinks create my-bq-sink \ bigquery.googleapis.com/projects/my-project/datasets/\ my_dataset…
0
votes
1 answer

Apply gather function to multiple csv files, converting each input to an output file with a corresponding name in R

I have a great number of csv files I have made into a list using the "list.files" function: list.files("C:/Users/gyero/Documents/daphnia/SUMMARY_CHIMP") I want to use the gather() function on each file and then sink() to produce a separate output…
Ganon
  • 27
  • 2
0
votes
1 answer

Export data from Kafka to Oracle

I am trying to export data from Kafka to Oracle db. I've searched related questions and web but could not understand that we need a platform (confluent etc.. ) or not. I'd been read the link below but it's not clear…
0
votes
1 answer

Spring Cloud Data Flow Add TimeStamp to File Name

I am trying to use the out of the box file Source and Sink stream applications with Spring Cloud data flow. I am trying to move a file from one folder to another. When the file arrives at the sink I would like to rename it and append a date or…
0
votes
1 answer

Print latex code to .tex file using cat() or print()

I want to print a chunk of latex code using R. I've previously used cat() to do this, my problem is that it quickly becomes a cumbersome task when I have a large body of text including tables written in latex as I have to include additional…
Tordir
  • 191
  • 6
0
votes
1 answer

Will buffer in sink miss when flink sink failed?

I'm using flink to process a lot of data and add into HBase.To improve the speed of sink to hbase, i buffered some data on flink sink operate.When the batch threshold is reached,the data will send to HBase. But if the sink operate failed before the…
manyu1026
  • 3
  • 1
0
votes
1 answer

R: sink package (for making log files) no longer available?

I am using R version 3.6.0 and tried installing "sink" but it says it is no longer available. Is this package no longer used? I am looking for a way of making log files for a .Rnw script which uses knitr. I have seen that some people use just cat()…
mf94
  • 439
  • 4
  • 19
0
votes
1 answer

How to add sink from one data stream to different paths depending on the specific key in json?

I have jsons like, { "name":"someone", "job":"doctor", "etc":"etc" } in every json there is different value for "job" like doctor, pilot, driver, watchman etc. i want to separte each json based on the "job" value and store it in diffrent…
Gaurav
  • 173
  • 1
  • 13