Separate screen for output in R?

I use RStudio for my project, I want a separate screen for output. I tried with sink() but I need a new popup. My code

 vd<-data.frame() vd<-c("V1","V2") vf<-length(vd) i<-1 while(i<=vf){ vd<-c("V1","V2") #print(vd) leng<-length(vd) selectru<-combn(vd,leng) #print(selectru) print(selectru[i]) fst<-selectru[i] select<-data.frame() select<-selectru[selectru[,1]!=selectru[i],] m<-length(select) select<-combn(select,m) snd <-apply(select,2,function(rows) paste0(rows, collapse = "")) cat(sprintf("\"%s\" =>\"%s\"\n", fst,snd)) i<-i+1 } 

This data is not actual, just approximate data.

Is it possible to show the output "ONLY" in a separate window or browser window? no need to show a graph or graph.

+7
r rstudio sink
source share
1 answer

In my commentary here is an example of using the sinkstart function from a rite .

the code:

 library(rite) sinkstart(echo=FALSE) # your code # close the widget with the X or # use `sinkstop()` to turn off the `sink`ing 

Here is a screenshot:

enter image description here

+6
source share

All Articles