Displaying 20 results from an estimated 6000 matches similar to: "Possible bug in the Rd parser?"
2009 May 16
1
maxLik pakage
Hi all;
I recently have been used 'maxLik' function for maximizing G2StNV178 function with gradient function gradlik; for receiving this goal, I write the following program; but I have been seen an error in calling gradient function;
The maxLik function can't enter gradlik function (definition of gradient function); I guess my mistake is in line ******** ,that the vector ‘h’ is
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
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.
2015 Jan 03
4
Potential cross-platform package building issue
I am using 32-bit R 3.1.2 on Windows 7.
I recently conducted an `R CMD check --as-cran` on a recently-developed
package and received only the 'New submission' note. Research on
StackOverflow and on R-devel suggested this could be ignored. I also used
devtools::build_win() and received no notes or warnings, other than the one
mentioned previously. Lastly, I conducted an `R CMD check` with
2009 Aug 17
2
unnecessary braces?
the version 2 parser thinks I have unnecessary braces,
but I can't find any. False positive or am I missing
something? If a false positive, is there any way to
work around the warning?
* checking Rd files against version 2 parser ... WARNING
Warning: ./man/dbetabinom.Rd:32-34: Unnecessary braces at ?{p(x) = %
(C(N,x)*Beta(N-x+theta*(1-p),x+theta*p))/%
Beta(theta*(1-p),theta*p)}?
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
2010 Apr 27
1
TikzDevice and texi2dvi
Dear All,
I am starting to use the tikzDevice package, but I am experiencing some
(minor problems).
If I try to run the script at the end of the email, I get the following
error
Error in tools::texi2dvi("normal.tex", pdf = T) :
Running 'texi2dvi' on 'normal.tex' failed.
Messages:
sh: /usr/bin/texi2dvi: not found
How do I install the missing texi2dvi?
I found some
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
2020 May 05
1
Use of MathJax (or something similar) in .Rd files
Hi All,
After some tinkering, and with support from Duncan, I put together a package that allows for easy inclusion of MathJax equations in Rd files. The package has been submitted to CRAN, but those who want to try this out already can get it here:
https://github.com/wviechtb/mathjaxr
or in other words:
install.packages("remotes")
2010 Mar 23
1
Displaying equations from .Rd files
Hi All,
I am reading through section 2.6 (Mathematics) of the "Writing R
Extensions" manuscript and am wondering where I can find more
examples/documentation on the \deqn{ } function. I would like to learn how
to display equations using this function but am not sure how to go about
doing it. The one example provided in section 2.6 doesn't give me much of a
sense on how to do this.
2012 Feb 22
3
OpenMP and random number generation
Dear all,
Now that R has OpenMP facilities, I'm trying to use it for my own package but I'm still wondering if it is safe to use random number generation within a OpenMP block. I looked at the R writing extension document both on the OpenMP and Random number generation but didn't find any information about that.
Could someone tell me if it is safe or not please ?
Best,
Mathieu
2011 Jan 27
1
Minor typo in influence.measures.Rd ?
Dear list,
There is, I believe, a minor typo in the example section of
influence.measures.Rd. In the final example the word `does` appears
where I suspect `dose` is required:
I couldn't remember exactly what format patches should be in, so here is
one as diff would produce:
Index: devel/src/library/stats/man/influence.measures.Rd
1999 Oct 26
1
Wrong text() adjustment with (math)expression and "\n" (PR#299)
This is adapted from partha_bagchi@hgsi.com 's report on R-help:
plot(0); title(expression("Bad\n with much much more text")))
gives something like
Bad
with much much more text
(``newline w/o carriage return'') instead of centering both lines such as
Bad
with much much more text
which is produced by (just dropping
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
2011 Aug 18
2
Concatenate two strings in one in a string matrix
Dear R-Users
I have the following matrix
> out$desc [,1] [,2]
[1,] "" ""
[2,] "y_{01}(k-001)" ""
[3,] "y_{01}(k-002)" ""
[4,] "y_{01}(k-003)" ""
[5,] "u_{01}(k-001)" ""
[6,] "u_{01}(k-002)" ""
[7,] "u_{01}(k-003)" ""
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
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,
2004 Jan 14
3
How can I test if time series residuals' are uncorrelated ?
Ok I made Jarque-Bera test to the residuals (merv.reg$residual)
library(tseries)
jarque.bera.test(merv.reg$residual)
X-squared = 1772.369, df = 2, p-value = < 2.2e-16
And I reject the null hypotesis (H0: merv.reg$residual are normally
distributed)
So I know that:
1 - merv.reg$residual aren't independently distributed (Box-Ljung test)
2 - merv.reg$residual aren't indentically
2017 Nov 17
4
Signed or unsigned EQ/NEQ
Hello,
In one of the loop transformations I am developing, I need to convert eq
and neq loop latch condition into less than or greater than depending on
the control flow.
The problem is that CmpInst::ICMP_EQ and CmpInst::ICMP_NE are neither
signed nor unsigned in LLVM. Also, I did not find a way to find out if the
integer operands of the CmpInst are signed or unsigned. Apparently, LLVM
does
2008 Jul 05
3
Editing the "..." argument
Dear all,
I'd like tweaking the ... arguments that one user can pass in my
function for fitting a model. More precisely, my objective function is
(really) problematic to optimize using the "optim" function.
Consequently, I'd like to add in the "control" argument of the latter
function a "ndeps = rep(something, #par)" and/or "parscale =