inst/toHtml.R

# go.R
#------------------------------------------------------------------------------------------------------------------------
library (RUnit)
library (tools)
#------------------------------------------------------------------------------------------------------------------------
run = function (levels, trace=FALSE)
{
  if (0 %in% levels) {
    if (trace) print ('')
    else {
      #man.directory <<- '~/s/src/R/bioc/RCytoscape/man'
      man.directory <<- '~/s/src/R/bioc/rcy-devel/RCytoscape/man'
      setwd (man.directory)
      rd.files <<-list.files ('.', pattern='Rd')
      } # else
    } # 0

  if (1 %in% levels) {
    if (trace) print ('')
    else {
      for (file in rd.files) {
        target.dir <<- '~/tmp/html'
        input <<- paste (man.directory, file, sep='/')
        basename = strsplit (file, '\\.Rd')[[1]][1]
        output <<- paste (target.dir, "/",  basename, '.html', sep='')
        print (sprintf ('%s -> %s', input, output))
        Rd2HTML (input, out=output)
        } # for file
      } # else
    } # 1

} # run
#------------------------------------------------------------------------------------------------------------------------
#run (0)
#run (1)

Try the RCytoscape package in your browser

Any scripts or data that you put into this service are public.

RCytoscape documentation built on Nov. 17, 2017, 10:52 a.m.