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

Is `sink(file="x.Rout", type="both", split= TRUE)` possible?

My question is whether it is possible to log all R output, just as it would appear on my console, simultaneously also to an .Rout log file and to see it also on my console while running. I understand that split=TRUE is not usually possible with…
ivo Welch
  • 2,427
  • 2
  • 23
  • 31
0
votes
1 answer

R - capture output from system() to a txt file.

I want to capture all output from R console. I tried to use sink() function and txtStart() of library 'TeachingDemos'. However, none of them can capture the output from system() command. For example If I run the below codes: zz <-…
Robin1988
  • 1,504
  • 4
  • 20
  • 25
0
votes
1 answer

Sink only saving an array via console and not via source

I am running this code: max.print <- getOption('max.print') options(max.print=nrow(countryaccepted) * ncol(countryaccepted)) sink(file.txt, append=TRUE, type="out") cat("*************************\n") cat("F-Test and T-Test…
0
votes
1 answer

Flink on EMR - no output, either to console or to file

I'm trying to deploy my flink job on AWS EMR (version 5.15 with Flink 1.4.2). However, I could not get any output from my stream. I tried to create a simple job: object StreamingJob1 { def main(args: Array[String]) { val path = args(0) …
Averell
  • 793
  • 2
  • 10
  • 21
0
votes
1 answer

roll setting of flume hdfs sink

Below is my setting in flume.conf: agent.sources = srcpv agent.channels = chlpv agent.sinks = hdfsSink agent.sources.srcpv.type = exec agent.sources.srcpv.command = tail -F /var/log/collector/web/pv.log agent.sources.srcpv.channels =…
Nan Wang
  • 19
  • 5
0
votes
0 answers

doParallel- foreach in R not processing results consistently for every iteration

I am running a large loop in parallel to do regression. The loop was working fine and everything was well but I am suddenly observing very strange a behavior. Some iterations do not reach the step of regression itself. Here's a simple snippet of…
0
votes
1 answer

How to add suffix to final completed file generated by BucketingSink in Apache Flink?

I created some archive data files on HDFS with Apache Flink, the generated file name has pattern like part-{parallel-task}-{count} but what I expected should have ".gz" suffix which can be loaded directly by Apache Spark. I can't find any API to…
Casel Chen
  • 497
  • 2
  • 8
  • 19
0
votes
0 answers

R Printing specific columns

I have this file test.csv. I have used - test <- read.csv ("test.csv", check.names=FALSE) To get it into R. I have used check.names as the column headers contains brackets and if I dont use it, they turn into periods which I have issues with when…
Will Den
  • 1
  • 1
0
votes
1 answer

Appending Multiple Dataframes Using Sink

I am trying to put three dataframes (that are filled from a database) in one csv file, so I used sink(). sink('file.csv') cat('Dataframe 1') write.csv(df1) cat('--------------') cat('\n') cat('\n') cat('Dataframe…
Niall
  • 518
  • 1
  • 6
  • 23
0
votes
1 answer

Input Channel subscriber not up for Custom Sink in Spring Cloud Data flow

I was trying to deploy my own custom sink of spring cloud data flow onto cloud foundry. My Dependency are below : org.springframework.cloud.stream.app
rahul
  • 71
  • 1
  • 1
  • 7
0
votes
0 answers

Sink() output mirrors the onscreen margins

I have a source code and want to output the result to a txt file. I manage to do this using the sink() function, like bellow: source("Script sink test.txt", echo=F) loopsinktestA <- file("SinktestA.txt") sink(loopsinktestA, append=TRUE) …
0
votes
2 answers

How to configure executors with custom StatsD Spark metrics sink

How do I sink Spark Streaming metrics to this StatsD sink for executors? Similar to other reported issues (sink class not found, sink class in executor), I can get driver metrics, but executors throw ClassNotFoundException with my setup: StatsD…
ecoe
  • 4,994
  • 7
  • 54
  • 72
0
votes
1 answer

Spring cloud stream writing in two databases

I have a spring cloud stream situation where I have one source, one transformer and I need to write in two databases the same thing. I was checking if there is an option to have two sinks but I can't find a way to do that. Any suggestion in best…
Marseld
  • 174
  • 5
0
votes
1 answer

package rgp in r gives "NaNs produced" output that cannot be suppressed

I've been using package rgp (genetic programming) in r to predict survival on the Titanic. The input data frame, train, is the training data from Kaggle with the Sex variable changed to 0 for females and 1 for males. Given this, the code is: fs <-…
datacathy
  • 125
  • 2
  • 11
0
votes
1 answer

flum agent with syslogs source and hbase sink

I try to use flume with syslogs source and hbase sink. when I run flume agent I get this error : Failed to start agent because dependencies were not found in classpath. Error follows. java.lang.NoClassDefFoundError:…
aName
  • 2,751
  • 3
  • 32
  • 61