Dear all, I have some trouble with special characters while building my R package. I tried to follow the usual LATEX format, but could not fix the problem: For instance, for "greater than or equal", I tried "\geq", but R says that this is an unknown macro. Could anyone direct me how to solve this issue? Best Ozgur ----- ************************************ Ozgur ASAR Research Assistant Middle East Technical University Department of Statistics 06531, Ankara Turkey Ph: 90-312-2105309 http://www.stat.metu.edu.tr/people/assistants/ozgur/ -- View this message in context: http://r.789695.n4.nabble.com/Special-characters-in-an-R-package-manual-tp4631043.html Sent from the R help mailing list archive at Nabble.com.
Do you mean in the .Rd files of your package? On 23/05/2012 08:04, ?zg?r Asar wrote:> Dear all, > > I have some trouble with special characters while building my R package. I > tried to follow the usual LATEX format, but could not fix the problem: > > For instance, for "greater than or equal", I tried "\geq", but R says that > this is an unknown macro. > > Could anyone direct me how to solve this issue?Use \eqn for mathematical expressions: see 'Writing R Extensions'. The Rd language is not LaTeX, but LaTeX can be used in the first expression of \eqn.> > Best > Ozgur > > Ozgur ASAR > Research Assistant > Middle East Technical University > Department of Statistics > 06531, Ankara Turkey > Ph: 90-312-2105309 > http://www.stat.metu.edu.tr/people/assistants/ozgur/-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Yes, in the .Rd file. \eqn is my cure. Thank you very much. Best ozgur ----- ************************************ Ozgur ASAR Research Assistant Middle East Technical University Department of Statistics 06531, Ankara Turkey Ph: 90-312-2105309 http://www.stat.metu.edu.tr/people/assistants/ozgur/ -- View this message in context: http://r.789695.n4.nabble.com/Special-characters-in-an-R-package-manual-tp4631043p4631046.html Sent from the R help mailing list archive at Nabble.com.