GotelliLab / EcoSimR

Repository for EcoSimR, by Gotelli, N.J. , Hart E. M. and A.M. Ellison. 2014. EcoSimR 0.1.0
http://ecosimr.org
Other
29 stars 10 forks source link

Documentation style look OK? #22

Closed ngotelli closed 9 years ago

ngotelli commented 9 years ago

Hi Ted:

OK, I have pushed some documentation for the pianka niche overlap index. Please take a look and see if this is OK. I have tried to imitate the style in other R packages. The material found said I could use LaTeX in the documentation, but when I tried I could only generate very simple equations with no superscripts, subscripts, or summation. That's a shame, but it seems to be that way for other packages as well.

If this looks OK to you, I will move on to the rest of the documentation. It sure is a nuisance to have to quit R every time I want to inspect the help system, but at least now I have a working template.

Best,

Nick

emhart commented 9 years ago

@ngotelli

What you probably want to use is \deqn{latex}{ascii}. The first set of brackets holds a latex equation that gets rendered when the full PDF documentation is created, and the ascii part goes in the actual HTML docs that you see when you use help(). It will try and convert latex to ascii if you only give it latex, but it doesn't look great for complex equations. Check out the example I did for Pianka

Otherwise the documentation looks great! If anything I'd say that including the actual equations is overkill. I would think you could just write "See eqn 5 in Pianka 1973", but if you think it's better with the equations then we can include them.