Displaying 20 results from an estimated 1819 matches for "sinkings".
Did you mean:
sinking
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,
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( "filename" )
do something that prints output which will be captured by sink
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
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://Users//Priya//Desktop//Attractor
2017 Nov 01
0
Function to save results
Let's try a simple example.
> # Create a script file of commands
> # Note we must print the results of quantile explicitly
> cat("x <- rnorm(50)\nprint(quantile(x))\nstem(x)\n", file="Test.R")
>
> # Test it by running it to the console
> source("Test.R")
0% 25% 50% 75% 100%
-2.4736219 -0.7915433
2010 Jul 16
3
Help with Sink Function
iterations <- 100
nvars <- 4
combined <- rbind(scaleMiceTrain, scaleMiceTest)
reducedSample <- combined
reducedSample <- subset(reducedSample, select = -pID50)
reducedSample <- subset(reducedSample, select = -id)
for (i in 1:iterations)
{
miceSample <- sample(combined[,-c(1,2)],nvars, replace=FALSE)
miceSample$pID50 <- combined$pID50
miceTestSample <-
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")
2007 Sep 11
2
[LLVMdev] volatiles
The attached file contains some simple functions that manipulate volatile
varibles. The functions near the top of the file should turn into code
that loads from x and then stores to it. The LLVM version on the web (not
sure if it's the latest...) gets most of these wrong.
John Regehr
-------------- next part --------------
2017 Nov 01
1
Function to save results
Hi David,Thank you for the example.When I try to use the cat function, I get an error
cat(attr<-getAttractors(net, type="asynchronous"))Error in cat(attr <- getAttractors(net, type = "asynchronous")) :
argument 1 (type 'pairlist') cannot be handled by 'cat'
Please let me know, if I have used the function in right way?.
Thank you
Priya
?
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 that someone can help me ...
Thanks in advance
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
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
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")
sink()
I
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
spooling gets translated into a printer error. The only way to get any
printing working
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 "sinktest1.txt" files, let me know the number of
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
Hi Karthik,
thanks for taking a look at this. I'm not working with gluster long
enough to make heads or tails out of the logs. The logs are attached to
this mail and here is the other information:
# gluster volume info home
Volume Name: home
Type: Replicate
Volume ID: fe6218ae-f46b-42b3-a467-5fc6a36ad48a
Status: Started
Snapshot Count: 1
Number of Bricks: 1 x 3 = 3
Transport-type: tcp