Displaying 20 results from an estimated 10000 matches similar to: "help(package)->sink()"
2004 Jul 26
6
directing print.packageInfo to a file
There was a discussion on r-help of getting the output from
print.packageInfo into a file. Spencer and I have added a file=
argument to print.packageInfo for consideration in R. Had this
been available it would have simplified the answer to that
thread. If the file= argument is used then the packageInfo
information is sent to the file specified rather than displayed
using file.show .
2001 Sep 18
4
help in a separate window under linux
Hi there.
R v1.3.0, Slackware linux 7.1 or Windows 98SE, PII 266, 64Mb RAM.
I notice that under windows, R puts help info (ie. the response to
'?<function>') into a new window, whereas under linux, it puts it into the
main console window. I find the former much more helpful when checking a
function's syntax.
Is there a simple way of configuring R under linux to put its help
2015 Feb 01
2
Output to "raw console" rather than stdout/stderr?
In R, there's readline(), which is great because you can prompt the user, e.g.
ans <- readline("Would you like to install Pandoc? [y/N]: ")
without having to worry the message is intercepted by
capture.output(), sink() or similar (which is used by dynamic report
generators among other things). The message will always reach the
user. (You can use sink(...,
2008 Feb 25
3
How to include the documentation of a function in a Sweave document?
Dear R-help,
I would like to include the documentation of an R function in an
*.rnw document processed by Sweave. Because I'm sharing my *.rnw
files with colleagues under Linux and Windows (I'm on Mac OS X),
I would like a pure R solution.
The naive approach doesn't work, because Sweaving this *.rnw
file:
-------- tmp.rnw --------
\documentclass{article}
\begin{document}
2004 Feb 06
4
more or less pager
R-users,
(forgive my return adres)
I've been breaking my head why R---which i find fabulous, by the
way---does not pipe interactive output through a pager (more or less),
like it does with help(), or like GNU Octave does with arrays with more
than terminal height rows.
Maybe it is my installation (Debian/GNU Linux). Maybe it is my
configuration, but i don't think so because with
2009 Jan 16
1
installing mclust and flexmix on linux
I've been trying to install some R packages such as mclust and flexmix on linux but have had the following error messages.
> I've been trying to install mclust on my notebook which has linpus linux lite os and I have installed R as well as some packages all right. However, when I tried to install mclust, it gave me the following messages. Any suggestions?
Tim
++++++++++++++++
2001 Oct 31
2
seg fault with mclust
Howdy,
I'm experiencing a segmentation fault when trying to load
mclust.so from mclust-1.1-4. I'm using R-1.3.1 on RedHat 6.2,
and `gcc --version` reports "egcs-2.91.66".
Any ideas?
-Andy
Package install:
> install.packages("mclust")
[stuff omitted]
Installing source package `mclust'
2011 Dec 09
1
mclust
While looking at someone's question on this list led me to the mclust
package, and from there to its license.
Excerpts:
Except for strict academic use, use of MCLUST (by itself or through other
packages) requires payment of an annual license fee and completion of a
license agreement found at the following URL:
http://depts.washington.edu/ventures/UW_Technology/Express_Licenses/mclust.php
1.
2003 Aug 05
2
Error on mclust
Hi All,
I am trying to cluster a one-dimensional data (see the file attached) using
Mclust() but got an error message like:
>Mclust(x)
Error in rep(1, n) : Object "n" not found
When I do a simulation sometimes it works sometimes doesn't.
>Mclust(c(rnorm(50),rnorm(56,-0.5)))
Error in rep(1, n) : Object "n" not found
>Mclust(c(rnorm(56),rnorm(56,-0.5)))
best
2020 Jun 04
2
mclust package installation is preparing for lazy loading and never finishes
Hi,
After loading R 4.0.0 on Ubuntu 20.04.
R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()'
2007 Jul 18
2
EM unsupervised clustering
Hi All,
I have a n x m matrix. The n rows are individuals, the m columns are variables.
The matrix is in itself a collection of 1s (if a variable is observed for an
individual), and 0s (is there is no observation).
Something like:
[,1] [,2] [,3] [,4] [,5] [,6]
[1,] 1 0 1 1 0 0
[2,] 1 0 1 1 0 0
[3,] 1 0 1 1 0 0
[4,] 0 1 0
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")
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]]
2006 Mar 22
5
install local packages
Hello all,
I'm trying to install the local package under window system. Two ways I've
tried:
1. using the menu"packages" "install package(s) from local zip files...".
My .zip file is "mclust.zip". But it shows Errors which are:
"Error in gzfile(file,"r"): unable to open connection
In addition: Warning messages:
1.error -1 in
2005 Jan 06
2
Segmentation fault while using Mclust function of mclust library in R-2.0.1
Hi, all;
I got an unusual error while using mclust library 2.1-7 on R 2.0.1.
When I tried to run Mclust(rnorm(100)), I got segmentation fault error.
Does anyone know what causes this problem?
I came across the same problem even when I tried to run the example shown in
Mclust help using iris data.
Thanks in advance,
Tae-Hoon Chung
--------------------------------------------------
Tae-Hoon Chung
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 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 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.
2008 Jul 21
1
Mclust - which cluster is each observation in?
I'm trying to test a method of identifying individuals (birds) based on
measured data (their calls).
I have test data from known individual birds, and I am using the Mclust
package to see if the program can correctly identify which calls come from
different birds.
So far, mclust has correctly ID'd the number of birds in the test data set
(i.e., the correct # of clusters). However I
2011 Sep 04
2
mclust: modelName="E" vs modelName="V"
Hi,
I'm trying to use the library mclust for gaussian mixture on a numeric
vector. The function Mclust(data,G=3) is working fine but the fitting is not
optimal and is using modelNames="E". When I'm trying
Mclust(data,G=3,modelName="V") I have the following message:
Error in if (Sumry$G > 1) ans[c(orderedNames, "z")] else ans[orderedNames] :
argument is