Displaying 20 results from an estimated 6000 matches similar to: "Can mathematical formula be used in the help file of a R function or package?"
2008 Nov 14
1
Line breaks in mathematical formulae in Rd files (PR#13287)
Hi,
This is a problem about writing R documentation (R-exts 2.6). The
command "\deqn" defined in "Rd.sty" is:
\newcommand{\deqn}[2]{\[#1\]}
which will put mathematical formulae in the "displaymath" environment;
that means line breaks are not allowed (or will not be shown) in
formulae, but sometimes we do need multiple lines of formulae. One
solution is to write
2011 Feb 02
2
Using MathJax in R's help system
Hi,
I am doing a small experiment to test if I can use
MathJax ( official site: http://www.mathjax.org )
in R's html help pages (i.e. options(help_type='html'))
and it seems working with some minor modifications.
The screenshot (rendered by Firefox 4.0 beta and with STIX fonts) of
the help page in html format with MathJax enabled is at the following
url:
2005 Nov 17
4
problem with \eqn (PR#8322)
Full_Name: Ross Boylan
Version: 2.2.0
OS: Linux
Submission from: (NULL) (65.175.48.58)
\eqn{{\bf\beta}_j}{b(j)} in my .Rd file produces this error
--------------------------------------------
! Missing $ inserted.
<inserted text>
$
l.7 \eqn{{\bf\beta}_j}{\bf\beta}_
jnormal-bracket5bracket-normal{b(j)}
--
! Missing $ inserted.
<inserted
2007 Apr 10
1
When to use quasipoisson instead of poisson family
It seems that MASS suggest to judge on the basis of
sum(residuals(mode,type="pearson"))/df.residual(mode). My question: Is
there any rule of thumb of the cutpoiont value?
The paper "On the Use of Corrections for Overdispersion" suggests
overdispersion exists if the deviance is at least twice the number of
degrees of freedom.
Are there any further hints? Thanks.
--
Ronggui
2008 Aug 25
1
Displaying Equations in Documentation
I'm currently working on writing up some documentation for some of my
code, but am having the darndest time coding in equations. For
example, the equation in the following:
\details{ Calculated the R Squared for observed endogenous variables
in a structural equation model, as well as several other useful
summary statistics about the error in thoe variables.
R Squared values are
2011 Jun 21
1
(no subject)
Hi Everyone,
When generating help files for a R package, can I specify the order of the R
functions? Now I can see that the functions are sorted according to their
names. However, for my case, there are two functions are closely related,
but they are separated by some other functions. I think it would be better
if I could specify the order of the functions in the help pdf manual.
Thanks,
Runlong
2008 Nov 13
1
Experimental Rd parser in trunk.
I've just committed the parse_Rd() function to R-devel. This is a
parser for Rd files, described in
http://developer.r-project.org/parseRd.pdf
It is not identical to the current parser, and about a dozen of the base
man pages currently signal syntax errors. It also detected errors in 10
files that were errors according to both definitions, but were missed by
the current system, and
2003 Oct 12
6
Rd problems
Hola!
I have the following in a .Rd file:
\eqn{\mbox{coef} = c(\mbox{coef}[1],\ldots, \mbox{coef}[n]) }
{coef = c(coef[1], coef[2], \dots, coef[n])}
However, both arguments come out in the latex file!
Whats happening?
Kjetil Halvorsen
2008 Sep 09
1
Addendum to wishlist bug report #10931 (factanal) (PR#12754)
--=-hiYzUeWcRJ/+kx41aPIZ
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Hi,
on March 10 I filed a wishlist bug report asking for the inclusion of
some changes to factanal() and the associated print method. The changes
were originally proposed by John Fox in 2005; they make print.factanal()
display factor correlations if factanal() is called with rotation =
2008 Dec 07
2
Checking your package's help files
It seems that many package authors do not proofread the help installed
with their packages. The Rd converter is not a parser, and it will
silently produce incorrect results on incorrect input (and some correct
input).
Here are a few hints about some common errors:
1) When you run R CMD check you get a PDF manual at
<pkg>.Rcheck/<pkg>-manual.pdf. Read through it looking for
2005 Mar 01
1
Two problems building a package
Hello all:
I have written a few R scripts and am trying to turn them into a package for
submission to CRAN. All of these scripts are R code only, no C or C++ or
anything else. I'm working with R 2.0.1 running on a Windows XP machine. So
far running ">rcmd install --build --docs=normal mypkge" seems to work
(i.e., the library "mypkge" is installed in R\rw2001\library and
2010 Apr 09
2
Line breaks in mathematical formulae in Rd files
Hello,
I would like to implement the feature request described here:
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=13287. I think
this is a very worthwhile feature.
However, I need just a little push in the right direction. When I
added either a new command or change the old one to use eqnarray as
proposed, the "\\" newline characters were not properly passed to
latex - even
2001 Feb 26
1
"} {" problem in Rd files (PR#856)
I better report this before I forget again (I think it may also be a
problem with \item) :
>Paul Gilbert wrote:
>> > \section{Model Parameters}{
>>
>> I seem to recall having a bit of trouble with this quietly omitting
things when the
>> last "{" had a space before it or was on a new line. I'm not sure if
that >>is still a problem (or if indeed
2004 Sep 13
1
*.Rd: line breaks incorrect (?) \examples
Hi all,
I am using
R, Version 1.9.1 alpha (2004-05-25), ISBN 3-900051-00-3
on
SunOS fluke 5.9 Generic_117171-02 sun4u sparc SUNW,Sun-Fire-480R
Version: sparc-sun-solaris2.9
arch = sparc
os = solaris2.9
system = sparc, solaris2.9
status = alpha
major = 1
minor = 9.1
year = 2004
month = 05
day = 25
language = R
Search Path:
.GlobalEnv, package:methods, package:stats, package:graphics,
2020 Feb 19
2
Problemas con tinytex (base Latex)
Aquí hay una posible solución...
https://tex.stackexchange.com/questions/27138/how-can-i-fix-the-error-gui-framework-cannot-be-initialized-with-texniccenter
El mié., 19 feb. 2020 a las 23:16, MAURICIO MARDONES (<
mauricio.mardones en ifop.cl>) escribió:
> Esto...
>
> 2020-02-19 18:29:50,307-0300 INFO pdflatex - starting with command line:
>
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.
2018 Jan 31
1
Best practices in developing package: From a single file
I fully agree with Joris and Hadley on roxygen2.
Additionally:
I wrote and published my first package before roxygen (or roxygen2) was
available. I found editing .Rd extremely terse (especially when code is
updated). For example, the fact that there are no spaces allowed between }
and { in \param{}{} has hurt my brain quite a few times, especially since R
CMD check did not give any useful error
2005 Sep 06
1
bash help please
I'd like to make MikTeX the default TeX package in 2.2.0, but we still
need to let people use other packages. The problem is that MikTeX wants
a command line option --include-directory $R_HOME/share/texmf, while
other packages specify includes via environment variables, and barf when
they see the unexpected option.
The choice should be controlled by the user's settings in the MkRules
2020 Feb 19
2
Problemas con tinytex (base Latex)
Mira el error en este fichero que te indica:
* C:~\AppData\Local\MiKTeX\2.9\miktex\log\pdflatex.log*
Ahí vendrá en las últimas líneas el fallo que se ha producido.
Y con el mensaje de error específico busca si hay alguna referencia por ahí.
Entiendo que estás instalando la última versión que ha salido hace pocos
días...
El mié., 19 feb. 2020 a las 22:36, MAURICIO MARDONES (<
2007 Jul 23
1
Error using Rd2dvi on OSX
Hi,
I run R 2.5.1 on Mac OS 10.4.10 and fail to build a package manual.
Below is the transcript. The problem is a "pdflatex: command not found"
error but I think that I have a fully working latex install (installed
with iInstaller) as I use TeXShop with no problem.
Could someone help?
Jean-Pierre
-----------------------------------------------------------------------------