search for: sink

Displaying 20 results from an estimated 1817 matches for "sink".

Did you mean: link
2017 Nov 01
2
Function to save results
Hi Eric,I tried as you suggested but I could not find the output in the text file I created (attr.txt) net <- loadNetwork("C://Users//Priya//Desktop//Attractor analysis_all genes//synaptogenesis//regulationof_dopamine_signaling_submodule3.txt")sink("C://Users//Priya//Desktop//Attractor analysis_all genes//synaptogenesis//attr.txt") sink() attr <- getAttractors(net, type="asynchronous") ?Priya On Wednesday, 1 November 2017 6:54 PM, Eric Berger <ericjberger at gmail.com> wrote: Some comments:1. sink()...
2008 Oct 13
4
Add notes to sink output
Hello, How can I add notes (i.e. text) to a sink output? sink("test.txt") #This text will describe the test summary(x) sink() How can I add that text above to the sink output? Thanks, Michael [[alternative HTML version deleted]]
2017 Nov 01
0
Function to save results
Some comments: 1. sink() does not return a value. There is on point to set attr <- sink(...). Just give the command sink("C://....etc") 2. to complete the saving to the file you must give a second sink command with no argument: sink() So your code would be (pseudo-code, not actual code) sink( "filenam...
2017 Nov 01
3
Function to save results
Hi Eric,Thanks for the explanation. Is there a way to save the results automatically after the analysis gets over?. As I recently lost the results, because I didn't save the results. I don't want to run the sink or save command after the analysis is over rather run the command for saving the file before starting to run the analysis, so the file gets saved automatically after the script has finished running Priya ? On Wednesday, 1 November 2017 7:53 PM, Eric Berger <ericjberger at gmail.com> wro...
2017 Nov 01
0
Function to save results
Hi Priya, You did not follow the logic of the pseudo-code. The sink("filename"), sink() pair captures whatever output is generated between the first sink statement and the second sink statement. You need (possibly) to do: sink("C://Users//Priya//Desktop//Attractor analysis_all genes//synaptogenesis//attr.txt") net <- loadNetwork("C://...
2017 Nov 01
0
Function to save results
...") 0% 25% 50% 75% 100% -2.4736219 -0.7915433 -0.1178056 0.7023577 2.9158617 The decimal point is at the | -2 | 510 -1 | 7631110 -0 | 9988777333333211 0 | 01124455557777889 1 | 00045 2 | 19 > > # Now run it and save the file > sink("Testout.txt") > source("Test.R") > sink() > > # What is located in "Testout.txt"? > cat(readLines("Testout.txt"), sep="\n") 0% 25% 50% 75% 100% -2.47511893 -0.47919111 0.05761628 0.67403447...
2010 Jul 16
3
Help with Sink Function
...=c("rectangular"), distance=1)) predictedTrain <- predict(fit.train1, miceTrainSample, miceTrainSample$pID50) pID50Train <- miceTrainSample$pID50 lmTrain <- lm(predictedTrain~pID50Train) slm <- summary(lmTrain) str(slm) if (i == 1) { previousR2 <-slm$r.squared sink(file="R2outputKKNN.txt", append=TRUE) previousR2 sink() } else if(i!=1) { currentR2 <- slm$r.squared if (previousR2 > currentR2) { currentR2 <- previousR2 } if (previousR2 < currentR2) { sink(file="R2outputKKNN.txt", append=TRUE)...
2007 Aug 07
1
sink behavior
There is a package called 'safe' that produces an object which I can only write to a file using the sink() function. It works fine if the sink() command is not inside of a function, but it does not write anything to the file if the command is within a function. Sample code: # Using a matrix because as a simple example. dumpMatrix = function(mat) { sink(file = "mat.txt") mat s...
2007 Sep 11
2
[LLVMdev] volatiles
...s the latest...) gets most of these wrong. John Regehr -------------- next part -------------- //////////////////////////////////////////////////////////////////////// // typedef unsigned int t; typedef int t; volatile t x; void self_assign_1 (void) { x = x; } void self_assign_2 (void) { t sink = x; x = sink; } void self_assign_3 (void) { volatile t *xp = &x; *xp = *xp; } void self_assign_4 (void) { volatile t *xp = &x; t sink = *xp; *xp = sink; } void self_assign_5 (void) { volatile t *xp1 = &x; volatile t *xp2 = &x; *xp1 = *xp2; } void self_assign_6...
2017 Nov 01
1
Function to save results
...st.R") ? ? ? ? 0%? ? ? ? 25%? ? ? ? 50%? ? ? ? 75%? ? ? 100% -2.4736219 -0.7915433 -0.1178056? 0.7023577? 2.9158617 ? The decimal point is at the | ? -2 | 510 ? -1 | 7631110 ? -0 | 9988777333333211 ? 0 | 01124455557777889 ? 1 | 00045 ? 2 | 19 > > # Now run it and save the file > sink("Testout.txt") > source("Test.R") > sink() > > # What is located in "Testout.txt"? > cat(readLines("Testout.txt"), sep="\n") ? ? ? ? 0%? ? ? ? 25%? ? ? ? 50%? ? ? ? 75%? ? ? ? 100% -2.47511893 -0.47919111? 0.05761628? 0.67403447? 1....
2003 May 07
3
Sink for a subdirectory
Hi, how do I sink output to a subdirectory under which R is running? For example, suppose R is running in ~me and I would like to sink output to ~me/Subdir/filename. The obvious sink( "Subdir/filename" ) does not seem to work. Thanks very much.
2004 Mar 25
1
Error : sink stack is full
Hello, I have implemented a method which uses sink to follow the progression status of an iterative process (Below is part of the code) I have already used such kind of code with no problem. Today, I get a "sink stack is full" error. I wonder if it could be linked with the fact that my .RData has a large size (around 7 Mo) ??? I hope t...
2017 Nov 01
2
Function to save results
Hi,I want the results to be saved automatically in a output text file after the script has finished running. I used the sink function in the following example, but the results file (output.txt) was empty. net <- loadNetwork("C://Users//Priya//Desktop//Attractor analysis_all genes//synaptogenesis//regulationof_dopamine_signaling_submodule3.txt")# First I loaded theinput file for which I want to identify attr...
2012 Nov 09
2
sink() doesn't work
Oftentimes I want to make outputs to be displayed on the R console. However, after I execute a program with a sink command in it the R console becomes unresponsive. Meaning that the following occurs in R console: > source("Program_containing_sink.R") > a<-1 > a > >sink() >a > R help says that sink() will bring output back to the console but i's not happening. Restarting...
2007 Jul 05
2
sink() and source()
hello, I have a problem running a R script actually I'm using source() and sink() and it doesn't work source("T:/agents/melyakhlifi/R/essai_rep.r") to execute a file and the file contain sink("T:/agents/melyakhlifi/R/sortie.html") cat("<html><body><pre>\n") matrix.merge2 cat("</pre></body></html>\n&q...
2003 Jan 13
3
sink() & windows printing
I used sink() a lot under linux with no problems. Under windows 2000 & using R 1.5.1, I do the following: - use sink() to direct ouput to a file - use sink() again to direct output to screen - print the file (to a network printer) PROBLEM: the file stays spooled infinitely at the printer. Sometimes the s...
2017 Oct 26
0
not healing one file
Hey Richard, Could you share the following informations please? 1. gluster volume info <volname> 2. getfattr output of that file from all the bricks getfattr -d -e hex -m . <brickpath/filepath> 3. glustershd & glfsheal logs Regards, Karthik On Thu, Oct 26, 2017 at 10:21 AM, Amar Tumballi <atumball at redhat.com> wrote: > On a side note, try recently released health
2005 Apr 18
1
how to use sink.number()
Dear All R-helper, my question is how to use sink.number. if I want to label the output was sinked by sink function how should I do ? example: zz <- file("c:\\sinktest1.txt",open="wt") sink(zz) g<- 1:10 cat(g,"\n") f<-list(1:100) h<-capture.output(f) cat(h) sink() I want there are marks in "sinktest...
2017 Oct 26
3
not healing one file
On a side note, try recently released health report tool, and see if it does diagnose any issues in setup. Currently you may have to run it in all the three machines. On 26-Oct-2017 6:50 AM, "Amar Tumballi" <atumball at redhat.com> wrote: > Thanks for this report. This week many of the developers are at Gluster > Summit in Prague, will be checking this and respond next
2017 Oct 26
2
not healing one file
...c2c7765a-17d9-49be-b7d7-042047a2186a> (c2c7765a-17d9-49be-b7d7-042047a2186a) [No such file or directory] [2017-10-23 12:07:26.676134] I [MSGID: 108026] [afr-self-heal-common.c:1327:afr_log_selfheal] 0-home-replicate-0: Completed data selfheal on 12286756-a097-4a6c-bc9d-5b89a88e0fc5. sources=[2] sinks=0 1 [2017-10-23 12:07:29.731815] W [MSGID: 114031] [client-rpc-fops.c:2928:client3_3_lookup_cbk] 0-home-client-4: remote operation failed. Path: <gfid:c2c7765a-17d9-49be-b7d7-042047a2186a> (c2c7765a-17d9-49be-b7d7-042047a2186a) [No such file or directory] [2017-10-23 12:07:29.731868] W [MSG...