From simon.urbanek at r-project.org  Wed Feb  2 20:30:47 2011
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Wed, 2 Feb 2011 14:30:47 -0500
Subject: [Rd] Using MathJax in R's help system
In-Reply-To: <1296666508.2269.67.camel@GongTop1>
References: <1296633646.25319.58.camel@GongTop1>
	<AANLkTi=RD0gyB8QnAs7aa2yv7647_x2SBAyZ_AL=LLoz@mail.gmail.com>
	<1296664429.2269.49.camel@GongTop1>
	<AANLkTik6YmG6YMvJ5E-_yBcFv4zZ-MGP1NMpB5X8B3-u@mail.gmail.com>
	<1296666508.2269.67.camel@GongTop1>
Message-ID: <3C7308D8-AC4D-4A77-9BFB-51E18093C6B4@r-project.org>


On Feb 2, 2011, at 12:08 PM, Gong-Yi Liao wrote:

> 
> I think your "another CRAN package for mathjax" approach is better
> 
> than modifying the base R's code. I am trying to find the possible 
> 
> way to implement it.
> 

Note that R has already an extensible http server included (it's used for the help already!), so it is easy for package to extend it - you could trivially host the necessary files from a package.

Cheers,
S



> On Wed, 2011-02-02 at 10:38 -0600, Hadley Wickham wrote:
>> 
>> But the user still needs to get it in some way - an additional
>> installation step means that it's probably not suitable for inclusion
>> with base R.  It could possibly be bundled inside a package, using
>> some tricks to keep all the files in a single zip file, which reduces
>> the bundle size to a manageable 15 meg.
> 
>> Agreed.
>> 
>>>   2. About the helpr package:
>>> 
>>>       I install the helpr package from CRAN, and, maybe due to my
>>>       problem,  the manual of this package is quite confusing to me.
>>>       I run the command helpr and my browser shows me the following
>>>       content:
>> 
>> Could you please provide a reproducible example?
>> 
>> The following steps should get you up and running:
>> 
>> install.packages("helpr")
>> library(helpr)
>> helpr()
>> 
> 
> It seems that I triggered a strange issue (or, a bug is ESS?). I run 
> exactly the same commands in EMACS+ESS and then I got the error 
> messages shown in my last mail. Now, I try to do the same things
> but, at this time, I run the commands in a terminal (gnome-terminal), 
> then, everything works properly, as you expected (I can see the  
> packages and functions list with nice CSS layout in the browser).
> 
> This issue is quite weird, and I think it is caused by Emacs or ESS   
> but not the helpr package. I still need to do several test to figure 
> out what really causes it.   
> 
> 
> 
> 
> 
>> The solr warnings will be removed in the next version - you can ignore
>> them for now.
>> 
>> Hadley
>> 
> 
> -- 
> Gong-Yi Liao
> 
> Department of Statistics
> University of Connecticut
> 215 Glenbrook Road  U4120
> Storrs, CT 06269-4120
> 
> 860-486-9478
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> 



[Rd] Using MathJax in R's help system
Simon Urbanek