Description Usage Arguments Details Value Author(s) Examples
Add a hyperlink to a cell to point to an external resource.
1 2 3 4 5 6 | addHyperlink(
cell,
address,
linkType = c("URL", "DOCUMENT", "EMAIL", "FILE"),
hyperlinkStyle = NULL
)
|
cell |
a |
address |
a string pointing to the resource. |
linkType |
a the type of the resource. |
hyperlinkStyle |
a |
The cell needs to have content before you add a hyperlink to it. The contents of the cells don't need to be the same as the address of the hyperlink. See the examples.
None. The modification to the cell is done in place.
Adrian Dragulescu
1 2 3 4 5 6 7 8 9 10 11 12 | wb <- createWorkbook()
sheet1 <- createSheet(wb, "Sheet1")
rows <- createRow(sheet1, 1:10) # 10 rows
cells <- createCell(rows, colIndex=1:8) # 8 columns
## Add hyperlinks to a cell
cell <- cells[[1,1]]
address <- "https://poi.apache.org/"
setCellValue(cell, "click me!")
addHyperlink(cell, address)
# Don't forget to save the workbook ...
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.