Skip to content
Prev 40275 / 63424 Next

R html help system [Was: How to document man/*.Rd pages with images?]

On 5/13/11 8:20 PM, "Simon Urbanek" <simon.urbanek at r-project.org> wrote:

            
I guess what I mean to say is that although a user's options depend on
context, when I use help, I want to know what my options are outside of the
current context. Especially at a stage where I need help, I definitely might
not have the right context set up, so it's very important to me to have
non-context-specific help. I recognize that this is my opinion and by no
means agreed upon, but this was a huge barrier for me when I first began
using R. For example, sometimes I would load a library while following an
example in the documentation before I even knew about libraries or realized
what I was doing. Then, within that context, a help command within that
library would work. On another day, when I hadn't set up that context by
accident, using my notes of "help(whatever)" wouldn't work. That was very
confusing and frustrating for me, and I'm much more computer literate than
many of the test-tube wet lab scientists I would hope to have using my
packages. I realize that "??whatever" gets around this, but the "??" symbol
is hard to lookup and learn about, especially when there is a
"help(whatever)" syntax that worked on a previous day. It took me months to
understand that "??" even existed as something separate from
"help(whatever)." In general, as a beginner, I found it very confusing that
there were more than one help commands, and I'm not sure if that's a good
thing for people who need help. Those are my two cents anyway. This might be
best for most people--I tend to be a very literal and concrete thinker and
may not be very representative. On the other hand, I don't see what the
benefit is to having less options for help if a package isn't loaded. I
suppose it provides more focus for someone who knows very well what they are
doing and wants to know something specific to their current context.
However, I'm not sure if helping that person focus is as critical to
providing help as assisting a new user who is likely to be oblivious to
contexts as a concept. Am I making any sense?

Let me make up an extreme example, just to clarify:
Suppose there are packages A and B, both with command C.
Regardless of what packages I have loaded, I would want help( C ) to bring
up a list with two files to choose from: one corresponding to A::C and one
corresponding to B::C, both containing the information that to use C one
must first type library(A) or library(B) to create the context that makes
the help information about how to use C relevant. My understanding is that
as it stands, typing help( C ) would do one of three things, depending on
whether library(A) or library(B) has been loaded. If neither has been
loaded, help( C ) would produce an error. If library(A) had been loaded,
then help would be generated regarding A::C and the user would be otherwise
oblivious to B::C, even if that were the useful info to the user. Likewise
for the vis-a-versa case with library(B) loaded. So that's to help me
explain my perspective of what I mean by non-context-specific help and why I
think it would be advantageous. Does that make sense? What I don't
understand is a case where it is advantageous to be oblivious to out of
context options. Could someone show me an example of that? I'm sure I am
missing something because I can't think of a case like that on my own and
have been considering it for days.
This is appealing to me, but I can't seem to find any info about it. Maybe
having the "--" part of the "--help" is throwing off my searches. I couldn't
find "--help" when I searched R's help. If my package is named MyPackage,
how would a user generate the html pages from it with "--html"?
I think this is a very good thing. Having the dynamic help is probably the
very best way to go from that perspective. I personally find file-system
paths to be annoyingly less well defined, so I'm completely sold by what you
are saying. It seems from what you said below that the performance issue I
have is from a bug. Am I right about that? I could be mistaking the context
of what you said below because I was a bit ambiguous about more than one
issue below. Since I can control what my package generates for help my
context-specific issue is not a problem for me, so a this is a distinct
issue I have with dynamic help and what appeared to me to be a performance
problem. My machine tends to lag for quite a while on many packages when
using the dynamic help system. Almost enough to discourage use. I found my
case with a large image to be a particularly bad anecdotal example of a
specific help problem, and maybe it is relevant to that more general issue
if there is a general bug. If this is caused by a bug, I would see no
problem with the concept of dynamic help at all--especially if it can react
instantaneously. However, I'm not completely convinced of that yet. It seem
very efficient to me to have a dynamic system point to pre-generated files.
However, generating those files dynamically, especially if many of them are
relevant, seems potentially inefficient. I don't claim to understand how it
is working yet, although looking into it has been fascinating so far.
Should I look into making these modifications to R? Or would this type of
thing be addressed by more official R personnel?

Thread (25 messages)

Sean Robert McGuffee How to document man/*.Rd pages with images? May 11 Dan Tenenbaum How to document man/*.Rd pages with images? May 11 Sean Robert McGuffee How to document man/*.Rd pages with images? May 11 Hadley Wickham How to document man/*.Rd pages with images? May 11 Thomas Roth How to document man/*.Rd pages with images? May 11 Steve Lianoglou How to document man/*.Rd pages with images? May 11 Simon Urbanek How to document man/*.Rd pages with images? May 11 Thomas Roth How to document man/*.Rd pages with images? May 11 Paul Gilbert How to document man/*.Rd pages with images? May 11 Simon Urbanek How to document man/*.Rd pages with images? May 11 Thomas Roth How to document man/*.Rd pages with images? May 11 Sean Robert McGuffee How to document man/*.Rd pages with images? May 11 Sean Robert McGuffee How to document man/*.Rd pages with images? May 11 Simon Urbanek How to document man/*.Rd pages with images? May 11 Duncan Murdoch How to document man/*.Rd pages with images? May 11 Duncan Murdoch How to document man/*.Rd pages with images? May 11 Thomas Roth How to document man/*.Rd pages with images? May 11 Hadley Wickham How to document man/*.Rd pages with images? May 11 Paul Gilbert How to document man/*.Rd pages with images? May 11 Sean Robert McGuffee How to document man/*.Rd pages with images? May 11 Simon Urbanek R html help system [Was: How to document man/*.Rd pages with images?] May 12 Sean Robert McGuffee R html help system [Was: How to document man/*.Rd pages with images?] May 13 Simon Urbanek R html help system [Was: How to document man/*.Rd pages with images?] May 13 Sean Robert McGuffee R html help system [Was: How to document man/*.Rd pages with images?] May 16 Hervé Pagès R html help system [Was: How to document man/*.Rd pages with images?] May 16