Learn R Programming

ReportingTools (version 2.12.2)

Link: Create a table of Links

Description

This is a convenience function for creating tables of links (eg for an index page).

Usage

Link(obj, target = NA, report = NULL)

Arguments

obj
An object to be turned into one or more links. Typically a character vector of link text or a list of HTMLReportRef objects
target
The link targets for each created link.
report
<<<<<<< HEAD An optional report giving the relative path of the link target, when constructing the target path. ======= A report (HTMLReportRef object) whose location the generated links should be relative to. >>>>>>> preparing to rebase for jason's changes

Value

An XMLInternalNode corresponding to HTML for either a single link or a div containing multiple links separated each on separate lines

Details

If target is NA, Link attempts to infer the link target(s) based on obj

Examples

Run this code
mylinks = Link(c("Link1", "Link2"), c("www.google.com", "www.cnn.com"))

Run the code above in your browser using DataLab