Skip to content
Prev 17718 / 398502 Next

...specific file in the HTML browser...

Henrik Bengtsson wrote:

            
does) to
system
I realize that you're running Windows, but this works for me on Linux,
and might be mangled into shape (sorry, I can't do it on a Linux box).

Jim


-------------- next part --------------
help.specific<-function(func=NULL,browser=getOption("browser")) {
 Rhome<-system("echo $R_HOME",T)
 if(is.null(func)) url<-paste(Rhome,"/doc/html/index.html",sep="",collapse="")
 else url<-system(
  paste("find ",Rhome," -follow ","-name ",func,".html",sep="",collapse="" ),T)
 if(length(url))
  system(paste(browser,url," 2>/dev/null &",sep=" "),ignore.stderr = T)
 else cat("Can't find an HTML page for function",func,"\n")
}