Displaying 20 results from an estimated 60000 matches similar to: "Writing Rd files"
2011 Feb 10
3
Finding length of unique numbers in a vector
Hello there, would you please look into my codes? Here I have following:
> set.seed(100)
> samp <- sample(c(1,-1,0), 20, replace=T); samp
[1] 1 1 -1 1 -1 -1 0 -1 -1 1 -1 0 1 -1 0 0 1 -1 -1 0
Here I want to calculate the length of each unique number for above vector.
How can I do that?
Thanks in advance
[[alternative HTML version deleted]]
2011 Jul 18
4
Understanding R's "Environment" concept
Hi all, I am trying to understand the R's "environment" concept
however the underlying help files look quite technical to me. Can
experts here provide me some more intuitive ideas behind this concept
like, why it is there, what exactly it is doing in R's architecture
etc.?
I mainly need some non-technical intuitive explanation.
Thanks,
2011 Jul 18
4
Understanding R's "Environment" concept
Hi all, I am trying to understand the R's "environment" concept
however the underlying help files look quite technical to me. Can
experts here provide me some more intuitive ideas behind this concept
like, why it is there, what exactly it is doing in R's architecture
etc.?
I mainly need some non-technical intuitive explanation.
Thanks,
2011 Feb 19
2
Seeking help in Package development
Dear all, I am a new user of R and currently trying hard to develop my
own package. Here I am following this tutorial
'http://www.mathfinance.cn/how-to-create-an-R-package-in-windows/'
Here it says that (step 8): "open a ?command prompt? window, change
the directory to where your package is, type the command ?R CMD build
MonteCarloPi? to build the package, this will generate a file
2011 Jul 08
2
Selecting subset of a given vector
Hi there, given a numeric vector, I can select numbers within a
specific range. However presently, I have something related but
different problem. Suppose I have a numeric vector. Now take an
arbitrary number. Goal to to chose a specific subset with a given
length, from that given vector, so that those chosen numbers are
centered around that given constant.
Here is one example:
### My original
2011 Jun 09
1
package.skeleton() does not create 'data' folder
Hi again, yesterday I mailed this query however I could not see this
on the mail list. Therefore, I am reposting it again.
I was using package.skeleton() function to create the
skeleton of my package in windows. Here is my attempt:
rm(list = ls())
setwd("F:/R_PackageBuild")
package.skeleton("trial1", namespace = TRUE, code_files =
"F:/R_PackageBuild/trial.r")
In
2011 Feb 09
2
A question on Duplicating
Hello I am struggling to accomplice an idea which is as follows:
I have a vector say: a <- c("a", "b", "c", "a") and another: b <- c("m",
"n", "o", "m"). Length of those 2 vectors are essentially be same. Here task
is to check the duplicates in the vector 'a' and then to check whether any
duplicates are
2011 Jun 10
1
How to add a welcome message in Package development?
Dear all, it is my first post in R-devel list, and hope that this is
the right place to ask question related to package development.
I have created my first package in Windows through the usual route.
Now I want to add some ***Welcome message*** as soon as user loads my
package into their R console, using library() function. However I
could not figure out where and how should I add this
2011 Jul 14
1
Creating package Vignette
Hi all, I was trying to create some vignette files for my newly
developed package, however wondering whether there could be any
simpler way to do so. In writing R extension it is advised to go
through Sweave route, however I have already got a big pdf file and
want to use this as package vignette.
So far I have manually created the inst/doc folder in the main package
skeleton, and put that file
2002 Feb 11
1
Code in Rd help files other than in \examples{}
I am stumped in determining the proper syntax for including displayed S code within an R .Rd documentation file, in places other than \examples{}. I have tried
\code{
line 1
line 2
}
but the lines get run together. When I terminate the lines by \cr, the "\cr" actually appears in the resulting html file. This is all inside a customized \section{}.
On a related note, what is
2012 Nov 28
1
in Rd documentation, line breaks in code blocks?
Hi everyone,
following the gentle advice from this list, I write a package
description Rd file.
I have a section in there. In this section, I have a subsection. In
this subsection, I want to have a code fragment. This code fragment
should include several commands, spanning several lines.
Example:
==========
\name{aqr-package}
\alias{aqr-package}
\alias{aqr}
\docType{package}
\title{Package
2012 Mar 14
1
issue with Rd2pdf and \Sexpr in Rd files
Hi,
The following command:
R CMD Rd2pdf --no-preview --output=./tmp.pdf --title=test genefu-package.Rd
run against this file:
https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/genefu/man/genefu-package.Rd
(username: readonly; password: readonly)
produces a very verbose error (see below)
with R version 2.15.0 alpha (2012-03-07 r58622).
The .Rd file has these lines in it:
Version: \tab
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
2009 Jan 29
1
In Rd: \describe \itemize and \item
I rebuilt a test version of my yaImpute package using Uwe Ligges' windows
build service.
I got this reply: Check result: OK
R version 2.9.0 Under development (unstable) (2009-01-27 r47756)
Here is the issue: I have the following construct in help files (this
example relates to "data"):
\format{
A data frame with 847 rows and 29 columns: \cr\cr
Ground based measurements of
2004 May 26
5
Windows XP and domain logon
Hello,
I have installed samba 3.0.2a as PDC and BDC, I am able to add windows xp to domain and have added all the registry patches to windows xp, but when it comes to domain logon on windows xp client, the behaviour is very erratic, sometimes I am able to logon to domain and sometimes the domain logon fails, we need to restart the xp machine and keep trying to the domain logon. The error we
2004 Mar 10
2
Writing Rd files dor package
Hi all,
I have some problems to write help files for a package. I don't
understant how to include help
files in a package that I develop.
I have written the Rd files that I have put in a man directory. So after
this, I built the package with the command
R CMD build (for linux) and I obtained my package (I have also used the
commands R CMD Rdconv -t txt and
R CMD Rdconv -t html to convert
2004 May 25
1
Samba-3.0.4 write list problem
Hi,
I am using security=share, and have just upgraded samba server from 3.0.2 to 3.0.4, after upgrading write list option had stopped working. Below is the contents of smb.conf file, which was working with 3.0.2 but not with 3.0.4
[global]
workgroup = CSW
netbios name = DATA8
security = share
server string = Test Samba 3.0
os level = 42
guest account = smbguest
log file =
2000 Jan 19
0
indentation in Rd-help files
Dear colleagues,
Happy New Millennium, first of all!
It would be very nice to be able to use indentation inside \code{ } as
well, not only in \examples{ } when writing Rd-help files. Such a
situation arrises, for instance, if one wishes to include a small piece
of code in the _main_ text but not in the end as \examples{ } command
does. The only way I know to put the next 3 lines
my.function <-
1998 Jan 07
0
tabular environment for Rd files
I have added a preliminary version of a tabular environment to Rdconv
and committed it to the current development sources.
Syntax:
\tabular{format}{
aaa \tab bbb \tab ccc \cr
xxx \tab yyy \tab zzz
}
i.e., the column seperator is \tab and the line seperator is \cr
format is a usual LaTeX tabular format string, e.g in the above
example it could be `lll' giving three left justified
2011 Feb 18
2
Samba Cross-Compilation Problem
Hi,
I want to cross-compile samba for arm-linux.
I have host machine: Red Had Enterprise Edition 5.0 and I am not able to cross compile it.
I tried 3-4 Versions of samba but in vain.
Can you guide me through compiling process.Which stable version of samba should i use?Step by step cross compilation process.OR
If you have binaries or package for samba which i can?directly?use ?at my arm machine.