Displaying 20 results from an estimated 9000 matches similar to: "library manual: documentation of funcs not alphabetically ordered"
2010 Apr 28
1
Rd2dvi pagination of index in pdf manual
I construct a pdf package manual in Windows 7 using
R CMD Rd2dvi --pdf --no-preview [packagename]
Page numbers are listed correctly under 'R topics documented' at the front, but incorrectly (offset by -2 pages) in the Index at the back. Following the hyperlinked page numbers in the Index takes you to the wrong page. 2 pages happens to be the length of the package overview man page inserted
2010 Dec 01
2
Reordering entries in package manual PDF's
Hello,
I have created my own R package and written the documentation in Rd
format for each of the functions plus the package itself.
However now the functions appear in a random order in the generated PDF
and the package documentation entry is placed in between the functions,
when I would like it to be first, naturally.
Is there an easy way to specify the order of the entries in the
generated
2008 Oct 18
2
sorting matrix output alphabetically
Hello,
I have been using the TM package to create a TermDocMatrix, which I
have saved as a matrix so that I can view word frequencies. Below is
a section of the code that I have used and an excerpt of the output:
What I wanted to be able to do is to view the output alphabetically -
rather than the results being sorted by frequency as below, that an
alphabetical list would be generated. This
2006 Apr 18
2
Wishlist for promptPackage / index
Hi R-devels,
would it be possible to enhance either promptPackage()
or the default indexing mechanism for packages
so that -- if it exists -- (the contents of) file
<pkgname>-package.Rd is sorted first in
* the .dvi / .pdf documentation file
* the .chm documentation file
* the package 00index.html documentation file
?
So far I found the following "hand-made" solution
2000 Apr 17
3
Maths in R documentation (PR#523)
The document R-exts contains the following example of using
mathematics in R documentation.
\deqn{p(x) = {\lambda^x\ \frac{e^{-\lambda}}{x!}}
{p(x) = lambda^x exp(-lambda)/x!}
There is a syntax error in there, but that's not my point.
The problem is that using "R CMD Rd2dvi" I find that putting
the alternate forms of the equation on top of each other doesn't
work.
2004 Nov 18
0
Fwd: Re: 3d scatter plot with drop line
Hi
try this:
p3dpairs <- function(x,x1,
xlim=NULL,ylim=NULL,zlim=NULL,col=par("col"), pch=par("pch"),
cex=par("cex"), ...){
if(is.matrix(x)){
z <- x[,3]
y <- x[,2]
x <- x[,1]
}
if(is.matrix(x1)){
z1 <- x1[,3]
y1 <- x1[,2]
x1 <- x1[,1]
}
if(missing(zlim)) {
z.grid <-
2004 Oct 18
2
concatenating lists elementwise
Hi
How do I concatenate two lists element-by-element?
Example:
list.1 <- list(temperature=c("hot","cold") , size=c("big","medium"))
list.2 <- list(temperature=c("lukewarm") , size=c("massive","tiny"))
list.wanted <- list(temperature=c("hot","cold","lukewarm") ,
2004 Jan 14
1
arrows on contour lines
Hello everybody
I'm using contour() to draw streamlines of potential flow, eg
jj <- seq(from= -4, to=4,len=20)
jj <- outer(jj,jj,function(x,y){x})+1i*outer(jj,jj,function(x,y){y})
f <- function(x){x^2}
contour(Im(f(jj)), nlevels=44 , labels="")
How best to put arrows on the contour lines to show the direction of flow?
(ie I want contour lines looking like
2004 Nov 11
1
axis lines crossing at origin
Hi
how do I make my axes cross at the origin?
x <- seq(from=-pi,to=pi,len=30)
plot(x,sin(x))
makes the axes cross at about (-pi,-1).
How do I get my x and y axes to cross in the centre of the graph,
with the sine curve passing through
the intersection?
I couldn't find anything in ?par or ?axis; searching R-FAQ for "axis"
didn't help.
--
Robin Hankin
Uncertainty
2004 Jun 11
4
rownames of single row matrices
Hi
I want to extract rows of a matrix, and preserve rownames even if only
one row is selected. Toy example:
R> a <- matrix(1:9,3,3)
R> rownames(a) <- letters[1:3]
R> colnames(a) <- LETTERS[1:3]
R> a
A B C
a 1 4 7
b 2 5 8
c 3 6 9
Extract the first two rows:
R> wanted <- 1:2
R> a[wanted,]
A B C
a 1 4 7
b 2 5 8
rownames come through fine. Now extract just
2004 Sep 08
3
do.call("[", ...) question
Hi again everyone
I have an arbitrarily dimensional array "a" and a list "jj" of length
length(dim(a)). The elements of jj are vectors of indexes.
How do I use do.call() to extract a[ jj[[1]], jj[[2]], jj[[3]], ...] ?
Toy example follows:
a <- matrix(1:30,5,6)
jj <- list(5:1,6:1)
I want the following
a[ jj[[1]],jj[[2]] ]
How do I do this?
OBAttempts:
2013 Aug 08
6
[Bug 10074] New: rsync reorders --from-files alphabetically
https://bugzilla.samba.org/show_bug.cgi?id=10074
Summary: rsync reorders --from-files alphabetically
Product: rsync
Version: 3.0.6
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: core
AssignedTo: wayned at samba.org
ReportedBy: nicholas.man at
2004 Nov 15
2
argument rationalization
Hi
I am writing a bunch of functions that take two, three or four
arguments. These functions operate on vectors of the same length;
but I want the function
to behave sensibly if one or more arguments are scalars. "+" does
this for two arguments:
"+"(1:10,3) # interpreted as "+"(1:10,rep(3,10))
But my functions can take more arguments. Say f() takes three:
2004 Sep 13
1
Rd files with "%" (was: permuting dimensions)
Professor Ripley
thanks for this. Very much appreciated.
The original subject line reflected my late-night conviction
that the answer might involve passing a strange list to do.call().
Anyway, package magic is broken (only in R-devel, I might add) because I have
a function called "%eq%".
R-2.0.0 CMD check is stopping (I think) because it interprets the
"%" as a
2005 Jun 15
1
umlauts in Rd files
Hi
I'm having difficulty following the advice in section 2.7 of R-exts.
In one of my packages, there is a function called mobius().
I want to refer to it in the Rd file as the M??bius function, and to
illustrate the
M??bius inversion formula (just to be explicit: this is "Mobius" but
with two dots over the second letter).
R-exts section 2.7 gives
\enc{J??reskog}{Joreskog}
2003 Dec 22
1
pkg-manual.dvi. How to generate the start page?
Hi!
On the cran "package source" page, to each package there are the "reference manual" in pdf format with a nice title page.
I observed that during the R CMD check pkg a pkg-manual.div are generated in the pgk.Rcheck directory.
But the nice title page are missing. During the package build and install no div files are produced.
Which opitions I have to pass during the build
2008 Nov 10
1
Rd2dvi problem.
If I execute
R CMD Rd2dvi foo.Rd
I get messages of the form:
Converting Rd files to LaTeX ...
foo.Rd
Creating dvi output from LaTeX ...
Saving output to 'foo.dvi' ...
cp: .Rd2dvi4366/Rd2.dvi: No such file or directory
Done
xdvi-xaw: Fatal error: foo.dvi: No such file.
Indeed if I add the --no-clean flag and then cd to the .Rd2dvi<whatever>
directory, I find that there is no
2008 Mar 28
1
How to loadby by alphabetical order, not mtime
Hi,
I''m writing my requirements in rspec, however, I can not figure out a
way to execute all specs according to alphabetical order, not by last
modified time.
According to the documentation, it seems like the default is by
alphabetical order, I just can not get that to work. In the unit
tests with the rspec package, seems like only mtime was tested.
Can anyone tell me how to run specs
2004 May 25
2
vectorize an expression
Hi guys. Another thing I cannot vectorize:
I have an array "a", of size 5-by-2, for example, of 5 2D vectors. I
also have a distance function that computes the distance between two
vectors (usual Euclidean distance is a good example but I have other metrics I
want to use as well). I want a 5-by-5 array with the [i,j]th element being
the distance from a[i,] to a[j,]
To Wit:
a
2004 Mar 10
3
aperm() and as.list() args to "["
Hi everyone.
I'm playing with aperm():
a <- 1:24
dim(a) <- c(2,3,2,2)
permutation <- c(1,2,4,3)
b <- aperm(a,permutation)
So if my understanding is right,
a[1,3,2,1] == b[c(1,3,2,1)[permutation] ]
but this isn't what I want because the RHS evaluates to a vector, and
I am trying to identify a single element of b.
How do I modify the RHS to give what I want?
Following