[R] help in Rscript scripts

Josef Eschgfaeller esg at unife.it
Tue Dec 8 12:48:05 CET 2009


Using Rscript under Windows, I would like
to use help from the script. But since this
should appear on a window, nothing is done.
I tried the following:

help1 = function (x)
{windows(); options(locatorBell=F)
plot(0,0,axes=F,frame.plot=F)
print(help(x)) # The script may be called by source.
locator(1); dev.off()}

Then I call for example help1('seq').

Is there a more appropriate way to do this?

Thanks
Josef Eschgfaeller




More information about the R-help mailing list