addStockIcons {gWidgetsWWW2}R Documentation

Add to the stock icons

Description

A stock icon requires a name and url. The name can be used to look up the css class used by the widgets using the function getStockIconByName.

Usage

addStockIcons(iconNames, iconFiles, ..., parent)

Arguments

iconNames

character vector of names. May be data frame with first two columns being names, then urls

iconFiles

character vector of icon urls (not files, despite the name of the function)

...

ignored

parent

a gwindow instance. Needed with gWidgetsWWW2.

Value

Modifies internal stock icon list, but has no useful return value

Note

Although this function can be called more than once, some browsers will balk if called more than 31 times.

Examples

w <- gwindow()
addStockIcons("rlogo", "http://www.r-project.org/Rlogo.jpg", parent=w) ## add one
getStockIconByName("rlogo")  ## check

[Package gWidgetsWWW2 version 0.4-8 Index]