File: hmakeTag.Rd

package info (click to toggle)
r-cran-hwriter 1.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 292 kB
  • sloc: sh: 25; makefile: 2
file content (55 lines) | stat: -rw-r--r-- 1,137 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
\name{hmakeTag}

\alias{hmakeTag}

\title{HTML/XML tag formatter}

\description{
  Formats an HTML/XML tag, using a low-level syntax.
}

\usage{
hmakeTag(tag, data=NULL, ..., newline=FALSE)
}

\arguments{
  \item{tag}{a character vector or matrix containing the HTML/XML tags.}

  \item{data}{a character vector or matrix containing the tag bodies.}

  \item{newline}{a logical. Appends a newline \code{\\n} character at the end of the tags.}	

  \item{...}{optional attributes that will be appended to the tags.}
}

\value{
  A character vector or matrix, containing the output HTML/XML tags.
}

\details{
 This low-level function is used by \code{hwrite} to build HTML tags.
 This function is useful to build non-standard or rare HTML tags.
}

\seealso{
  \code{\link{hwrite}}.
}

\examples{
## simple call
hmakeTag('a','Centipede',href='http://en.wikipedia.org/wiki/Centipede')

## vectorized calls
hmakeTag('tag',1:10,color='red')
hmakeTag(colors()[1:10],1:10,semantic='color')

## nested calls
hmakeTag('html',hmakeTag('body','Text'),'xml:lang'='en')
}

\author{
  Gregoire Pau, \email{gpau@ebi.ac.uk}, 2008
}

\keyword{interface}