LinksFile2Html: A Function to create HTML from file of links

Description Usage Arguments Examples

Description

This function allows you to create an HTML from a text file with a predefined structure

Usage

1
2
3
LinksFile2Html(lFile, outputDir, info.list, categs.descs = NULL,
  categs.names = NULL, IndexDir = "", UEB = TRUE,
  resultsFileName = "ResultFiles")

Arguments

lFile

Input file consisting of 4 tab separated fields: Filename, Categ, Subcateg, Description

outputDir

Name of the directory where the HTML is to be written

info.list

List with informations to build the header: To, Description, Analysts, Contact

categs.descs

Description of categories in the links file (Header of sections)

categs.names

Short names for categories in the links file (to be used in the input file)

IndexDir

Name of subdirectory where the files to be linked are located

UEB

TRUE if UEB header is to be used

resultsFileName

Name of output file

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
linksFileName <-"LinksFileName_Example.csv"
resultsDir <- "."
# UEB <- TRUE # if UEB == TRUE => UEB header is used
htmlInfo <- list(To = "My Client", # nomClients,
                 Description = "Analysis of Biological Significance for some selected gene list",
                 Analysts = "Ferran Brianso and Alex Sanchez",               # analistes,
                 Contact = "Alex Sanchez (alex.sanchez@vhir.org)")
GENCategs <- myGENCategs()
fcategs <- GENCategs[["categs"]]
fNames <-  GENCategs[["noms"]]
# Invoke main function
# Not run automatically. Check by yourself uncommenting next lines
# setwd("examples")
# LinksFile2Html(linksFileName, resultsDir, htmlInfo,
#                categs.descs = fCategs, categs.names = fNames,
#                IndexDir = "", UEB = TRUE, resultsFileName="Resultats")

alexsanchezpla/links2File documentation built on May 5, 2019, 6:58 p.m.