R-beta: modified "help.start()"

Albrecht Gebhardt (agebhard@zidsrv.sci.uni-klu.ac.at)
Fri, 13 Mar 1998 14:44:05 +0100 (MET)


Date: Fri, 13 Mar 1998 14:44:05 +0100 (MET)
From: Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
To: r-help@stat.math.ethz.ch
Subject: R-beta: modified "help.start()" 
Message-Id: <Pine.OSF.3.93.980313142718.12283A-100000@alpha2-stat.sci.uni-klu.ac.at>


Hi,

this modified version of help.start() makes it possible to store R Documentation
on your (intranet) webserver.

This could be necessary if you run netscape and R from different systems on one
X11 display (if there is no $RHOME directory on the host running netscape). 

help.start() <-
function (gui = "irrelevant", browser = "netscape", remote = NULL)
{
  if (is.null(remote)) {
     url <- "$RHOME/html/index.html"
  }
  else {
     url <- paste(remote, "/html/index.html", sep = "")
  }
  cat("If", browser, " is already running,\tit is *not* restarted,\n",
      "and you must switch to its window.\nOtherwise, be patient..\n")
  system(paste(browser, " -remote \"openURL(", url, ")\" 2>/dev/null || ",
               browser, " ", url, " &", sep = ""))
}


Then make an appropriate link from $RHOME into your web servers /htdocs tree and
type

help.start(remote='http://your.www.server/R')



A.Gebhardt 

-------------------------------------------------------------------------------
Albrecht Gebhardt           email: albrecht.gebhardt@uni-klu.ac.at
Institut fuer Mathematik    Tel. : (++43 463) 2700/837
Universitaet Klagenfurt     Fax  : (++43 463) 2700/834
Villacher Str. 161          WWW  : http://www-stat.uni-klu.ac.at/~agebhard
A-9020 Klagenfurt, Austria
-------------------------------------------------------------------------------


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._