File: colourPicker.Rd

package info (click to toggle)
r-cran-colourpicker 1.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,548 kB
  • sloc: javascript: 1,490; makefile: 13; sh: 3
file content (29 lines) | stat: -rw-r--r-- 868 bytes parent folder | download | duplicates (4)
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colourPickerGadget.R
\name{colourPicker}
\alias{colourPicker}
\title{Colour picker gadget}
\usage{
colourPicker(numCols = 3)
}
\arguments{
\item{numCols}{The number of colours to select when the gadget launches (you
can add and remove more colours from the app itself too)}
}
\value{
Vector of selected colours
}
\description{
This gadget lets you choose colours easily. You can select multiple colours,
and you can either choose any RGB colour, or browse through R colours.
}
\note{
This gadget returns a vector of colours that can be assigned to
a variable. If instead you want to get a text representation of the colours
that can embedded into code, use the addin from the RStudio Addins menu.
}
\examples{
if (interactive()) {
  cols <- colourPicker(5)
}
}