R/oppdf.r

##########################
#    Open user manual    #
##########################

"oppdf"<-function (file, bg = TRUE) 
{   
  file=file.path(paste(.libPaths(), "/OligoSpecificitySystem/doc/OSSUM.pdf",sep=""))
  OST <- .Platform$OS.type
  if (OST == "windows") 
    shell.exec(file)
    else if (OST == "unix")
    {
      bioCOpt <- getOption("BioC")
      pdf <- getOption("pdfviewer")
      if (is.null(pdf)) 
      {
         warning(paste("pdfViewer is set to:", pdf, "which does not seem to exist.  Please", 
                "run the command setOptionPdfViewer()"))
         return(FALSE)
      }
      cmd <- paste(pdf, file)
      if (bg) 
        cmd <- paste(cmd, "&")
        system(cmd)
    }
  return(TRUE)
}

Try the OligoSpecificitySystem package in your browser

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

OligoSpecificitySystem documentation built on May 1, 2019, 10:53 p.m.