first commit

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-01-11 09:43:23 +01:00
commit 6333bcee61
208 changed files with 413695 additions and 0 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,376 @@
##================================================================##
### In longer simulations, aka computer experiments, ###
### you may want to ###
### 1) catch all errors and warnings (and continue) ###
### 2) store the error or warning messages ###
### ###
### Here's a solution (see R-help mailing list, Dec 9, 2010): ###
##================================================================##
##' Catch *and* save both errors and warnings, and in the case of
##' a warning, also keep the computed result.
##'
##' @title tryCatch both warnings (with value) and errors
##' @param expr an \R expression to evaluate
##' @return a list with 'value' and 'warning', where
##' 'value' may be an error caught.
##' @author Martin Maechler;
##' Copyright (C) 2010-2023 The R Core Team
tryCatch.W.E <- function(expr)
{
W <- NULL
w.handler <- function(w) { # warning handler
W <<- w
invokeRestart("muffleWarning")
}
list(value = withCallingHandlers(tryCatch(expr, error = function(e) e),
warning = w.handler),
warning = W)
}
str( tryCatch.W.E( log( 2 ) ) )
str( tryCatch.W.E( log( -1) ) )
str( tryCatch.W.E( log("a") ) )
##' @title Catch *all* warnings and the value
##' @param expr an \R expression to evaluate
##' @return a list with 'value' and 'warnings'
##' @author Luke Tierney (2004), R-help post
##' https://stat.ethz.ch/pipermail/r-help/2004-June/052132.html
withWarnings <- function(expr) {
W <- NULL
wHandler <- function(w) {
W <<- c(W, list(w))
invokeRestart("muffleWarning")
}
val <- withCallingHandlers(expr, warning = wHandler)
list(value = val, warnings = W)
}
withWarnings({ warning("first"); warning("2nd"); pi })
r <- withWarnings({ log(-1) + sqrt(-4); exp(1) })
str(r, digits=14)
##' @title tryCatch *all* warnings and messages, and an error or the final value
##' @param expr an \R expression to evaluate
##' @return a list with `messages`, `warnings`, and
##' `value` which may be an error caught.
##' @author Martin Maechler (combining the above)
tryCatch_WEMs <- function(expr)
{
W <- M <- NULL
w.handler <- function(w) { # warning handler
W <<- c(W, list(w)); invokeRestart("muffleWarning")
}
m.handler <- function(m) { # message handler
M <<- c(M, list(m)); invokeRestart("muffleMessage")
}
list(value = withCallingHandlers(tryCatch(expr, error = function(e) e),
warning = w.handler, message = m.handler),
messages = M,
warnings = W)
}
f3 <- function(x) {
r <- log(-x) + sqrt(-x) # produce warnings when x >= 0
if(anyNA(r)) message(sprintf("%d NA's produced by log(.) + sqrt(.)", sum(is.na(r))))
r <- exp(-x)
if(any(ii <- is.infinite(r))) message(sprintf("Got +/- Inf from x[%s]", deparse(which(ii))))
r
}
str( r0 <- tryCatch_WEMs(f3("A")) ) # just an error from '-x'
stopifnot(exprs = {
inherits (r0$value, "error")
identical(r0$value$call, quote(-x))
sapply(r0[c("messages","warnings")], is.null)
})
(x <- c(-1:1, (-1:1)/0))
str( rI <- tryCatch_WEMs(f3(x) ))
stopifnot(exprs = {
identical(lengths(rI), c(value = length(x), messages = 2L, warnings = 2L))
rI$value[4] == Inf
all.equal(rI$value, exp(-x))
length(rI$messages) == 2; sapply(rI$messages, inherits, what="message")
length(rI$warnings) == 2; sapply(rI$warnings, inherits, what="warning")
})
# Copyright (C) 1997-2018 The R Core Team
### The Base package has a couple of non-functions:
##
## These may be in "base" when they exist; discount them here
## (see also 'dont.mind' in checkConflicts() inside library()) :
xtraBaseNms <- c("last.dump", "last.warning", ".Last.value",
".Random.seed", ".Traceback")
ls.base <- Filter(function(nm) is.na(match(nm, xtraBaseNms)),
ls("package:base", all=TRUE))
base.is.f <- sapply(ls.base, function(x) is.function(get(x)))
cat("\nNumber of all base objects:\t", length(ls.base),
"\nNumber of functions from these:\t", sum(base.is.f),
"\n\t starting with 'is.' :\t ",
sum(grepl("^is\\.", ls.base[base.is.f])), "\n", sep = "")
## R ver.| #{is*()}
## ------+---------
## 0.14 : 31
## 0.50 : 33
## 0.60 : 34
## 0.63 : 37
## 1.0.0 : 38
## 1.3.0 : 41
## 1.6.0 : 45
## 2.0.0 : 45
## 2.7.0 : 48
## 3.0.0 : 49
if(interactive()) {
nonDots <- function(nm) substr(nm, 1L, 1L) != "."
cat("Base non-functions not starting with \".\":\n")
Filter(nonDots, ls.base[!base.is.f])
}
## Do we have a method (probably)?
is.method <- function(fname) {
isFun <- function(name) (exists(name, mode="function") &&
is.na(match(name, c("is", "as"))))
np <- length(sp <- strsplit(fname, split = "\\.")[[1]])
if(np <= 1 )
FALSE
else
(isFun(paste(sp[1:(np-1)], collapse = '.')) ||
(np >= 3 &&
isFun(paste(sp[1:(np-2)], collapse = '.'))))
}
is.ALL <- function(obj, func.names = ls(pos=length(search())),
not.using = c("is.single", "is.real", "is.loaded",
"is.empty.model", "is.R", "is.element", "is.unsorted"),
true.only = FALSE, debug = FALSE)
{
## Purpose: show many 'attributes' of R object __obj__
## -------------------------------------------------------------------------
## Arguments: obj: any R object
## -------------------------------------------------------------------------
## Author: Martin Maechler, Date: 6 Dec 1996
is.fn <- func.names[substring(func.names,1,3) == "is."]
is.fn <- is.fn[substring(is.fn,1,7) != "is.na<-"]
use.fn <- is.fn[ is.na(match(is.fn, not.using))
& ! sapply(is.fn, is.method) ]
r <- if(true.only) character(0)
else structure(vector("list", length= length(use.fn)), names= use.fn)
for(f in use.fn) {
if(any(f == c("is.na", "is.finite"))) {
if(!is.list(obj) && !is.vector(obj) && !is.array(obj)) {
if(!true.only) r[[f]] <- NA
next
}
}
if(any(f == c("is.nan", "is.finite", "is.infinite"))) {
if(!is.atomic(obj)) {
if(!true.only) r[[f]] <- NA
next
}
}
if(debug) cat(f,"")
fn <- get(f)
rr <- if(is.primitive(fn) || length(formals(fn))>0) fn(obj) else fn()
if(!is.logical(rr)) cat("f=",f," --- rr is NOT logical = ",rr,"\n")
##if(1!=length(rr)) cat("f=",f," --- rr NOT of length 1; = ",rr,"\n")
if(true.only && length(rr)==1 && !is.na(rr) && rr) r <- c(r, f)
else if(!true.only) r[[f]] <- rr
}
if(debug)cat("\n")
if(is.list(r)) structure(r, class = "isList") else r
}
print.isList <- function(x, ..., verbose = getOption("verbose"))
{
## Purpose: print METHOD for `isList' objects
## ------------------------------------------------
## Author: Martin Maechler, Date: 12 Mar 1997
if(is.list(x)) {
if(verbose) cat("print.isList(): list case (length=",length(x),")\n")
nm <- format(names(x))
rr <- lapply(x, stats::symnum, na = "NA")
for(i in seq_along(x)) cat(nm[i],":",rr[[i]],"\n", ...)
} else NextMethod("print", ...)
}
is.ALL(NULL)
##fails: is.ALL(NULL, not.using = c("is.single", "is.loaded"))
is.ALL(NULL, true.only = TRUE)
all.equal(NULL, pairlist())
## list() != NULL == pairlist() :
is.ALL(list(), true.only = TRUE)
(pl <- is.ALL(pairlist(1, list(3,"A")), true.only = TRUE))
(ll <- is.ALL( list(1,pairlist(3,"A")), true.only = TRUE))
all.equal(pl[pl != "is.pairlist"],
ll[ll != "is.vector"])## TRUE
is.ALL(1:5)
is.ALL(array(1:24, 2:4))
is.ALL(1 + 3)
e13 <- expression(1 + 3)
is.ALL(e13)
is.ALL(substitute(expression(a + 3), list(a=1)), true.only = TRUE)
is.ALL(y ~ x) #--> NA for is.na & is.finite
is0 <- is.ALL(numeric(0))
is0.ok <- 1 == (lis0 <- sapply(is0, length))
is0[!is0.ok]
is0 <- unlist(is0)
is0
ispi <- unlist(is.ALL(pi))
all(ispi[is0.ok] == is0)
is.ALL(numeric(0), true=TRUE)
is.ALL(array(1,1:3), true=TRUE)
is.ALL(cbind(1:3), true=TRUE)
is.ALL(structure(1:7, names = paste("a",1:7,sep="")))
is.ALL(structure(1:7, names = paste("a",1:7,sep="")), true.only = TRUE)
x <- 1:20 ; y <- 5 + 6*x + rnorm(20)
lm.xy <- lm(y ~ x)
is.ALL(lm.xy)
is.ALL(structure(1:7, names = paste("a",1:7,sep="")))
is.ALL(structure(1:7, names = paste("a",1:7,sep="")), true.only = TRUE)
# Copyright (C) 1997-2005 The R Core Team
## Adaptive integration: Venables and Ripley pp. 105-110
## This is the basic integrator.
area <- function(f, a, b, ..., fa = f(a, ...), fb = f(b, ...), limit
= 10, eps = 1.e-5)
{
h <- b - a
d <- (a + b)/2
fd <- f(d, ...)
a1 <- ((fa + fb) * h)/2
a2 <- ((fa + 4 * fd + fb) * h)/6
if(abs(a1 - a2) < eps)
return(a2)
if(limit == 0) {
warning(paste("iteration limit reached near x = ",
d))
return(a2)
}
area(f, a, d, ..., fa = fa, fb = fd, limit = limit - 1,
eps = eps) + area(f, d, b, ..., fa = fd, fb =
fb, limit = limit - 1, eps = eps)
}
## The function to be integrated
fbeta <- function(x, alpha, beta)
{
x^(alpha - 1) * (1 - x)^(beta - 1)
}
## Compute the approximate integral, the exact integral and the error
b0 <- area(fbeta, 0, 1, alpha=3.5, beta=1.5)
b1 <- exp(lgamma(3.5) + lgamma(1.5) - lgamma(5))
c(b0, b1, b0-b1)
## Modify the function so that it records where it was evaluated
fbeta.tmp <- function (x, alpha, beta)
{
val <<- c(val, x)
x^(alpha - 1) * (1 - x)^(beta - 1)
}
## Recompute and plot the evaluation points.
val <- NULL
b0 <- area(fbeta.tmp, 0, 1, alpha=3.5, beta=1.5)
plot(val, fbeta(val, 3.5, 1.5), pch=0)
## Better programming style -- renaming the function will have no effect.
## The use of "Recall" as in V+R is VERY black magic. You can get the
## same effect transparently by supplying a wrapper function.
## This is the approved Abelson+Sussman method.
area <- function(f, a, b, ..., limit=10, eps=1e-5) {
area2 <- function(f, a, b, ..., fa = f(a, ...), fb = f(b, ...),
limit = limit, eps = eps) {
h <- b - a
d <- (a + b)/2
fd <- f(d, ...)
a1 <- ((fa + fb) * h)/2
a2 <- ((fa + 4 * fd + fb) * h)/6
if(abs(a1 - a2) < eps)
return(a2)
if(limit == 0) {
warning(paste("iteration limit reached near x =", d))
return(a2)
}
area2(f, a, d, ..., fa = fa, fb = fd, limit = limit - 1,
eps = eps) + area2(f, d, b, ..., fa = fd, fb =
fb, limit = limit - 1, eps = eps)
}
area2(f, a, b, ..., limit=limit, eps=eps)
}
## Here is a little example which shows a fundamental difference between
## R and S. It is a little example from Abelson and Sussman which models
## the way in which bank accounts work. It shows how R functions can
## encapsulate state information.
##
## When invoked, "open.account" defines and returns three functions
## in a list. Because the variable "total" exists in the environment
## where these functions are defined they have access to its value.
## This is even true when "open.account" has returned. The only way
## to access the value of "total" is through the accessor functions
## withdraw, deposit and balance. Separate accounts maintain their
## own balances.
##
## This is a very nifty way of creating "closures" and a little thought
## will show you that there are many ways of using this in statistics.
# Copyright (C) 1997-8 The R Core Team
open.account <- function(total) {
list(
deposit = function(amount) {
if(amount <= 0)
stop("Deposits must be positive!\n")
total <<- total + amount
cat(amount,"deposited. Your balance is", total, "\n\n")
},
withdraw = function(amount) {
if(amount > total)
stop("You don't have that much money!\n")
total <<- total - amount
cat(amount,"withdrawn. Your balance is", total, "\n\n")
},
balance = function() {
cat("Your balance is", total, "\n\n")
}
)
}
ross <- open.account(100)
robert <- open.account(200)
ross$withdraw(30)
ross$balance()
robert$balance()
ross$deposit(50)
ross$balance()
try(ross$withdraw(500)) # no way..

View file

@ -0,0 +1 @@
{"files":[{"filename":"/error.catching.R","start":0,"end":3367},{"filename":"/is.things.R","start":3367,"end":8165},{"filename":"/recursion.R","start":8165,"end":10280},{"filename":"/scoping.R","start":10280,"end":11840}],"remote_package_size":11840}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
{"files":[{"filename":"/AnIndex","start":0,"end":35462},{"filename":"/aliases.rds","start":35462,"end":48080},{"filename":"/base.rdb","start":48080,"end":2366742},{"filename":"/base.rdx","start":2366742,"end":2375985},{"filename":"/paths.rds","start":2375985,"end":2379177}],"remote_package_size":2379177}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
{"files":[{"filename":"/00Index.html","start":0,"end":151052},{"filename":"/R.css","start":151052,"end":152896}],"remote_package_size":152896}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/AnIndex","start":0,"end":174},{"filename":"/aliases.rds","start":174,"end":377},{"filename":"/compiler.rdb","start":377,"end":9101},{"filename":"/compiler.rdx","start":9101,"end":9267},{"filename":"/paths.rds","start":9267,"end":9407}],"remote_package_size":9407}

View file

@ -0,0 +1,173 @@
<!DOCTYPE html>
<html>
<head><title>R: The R Compiler Package</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body><div class="container">
<h1> The R Compiler Package
<img class="toplogo" src="../../../doc/html/Rlogo.svg" alt="[R logo]" />
</h1>
<hr/>
<div style="text-align: center;">
<a href="../../../doc/html/packages.html"><img class="arrow" src="../../../doc/html/left.jpg" alt="[Up]" /></a>
<a href="../../../doc/html/index.html"><img class="arrow" src="../../../doc/html/up.jpg" alt="[Top]" /></a>
</div><h2>Documentation for package &lsquo;compiler&rsquo; version 4.3.0</h2>
<ul><li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li>
</ul>
<h2>Help Pages</h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="compile.html">cmpfile</a></td>
<td>Byte Code Compiler</td></tr>
<tr><td style="width: 25%;"><a href="compile.html">cmpfun</a></td>
<td>Byte Code Compiler</td></tr>
<tr><td style="width: 25%;"><a href="compile.html">compile</a></td>
<td>Byte Code Compiler</td></tr>
<tr><td style="width: 25%;"><a href="compile.html">compilePKGS</a></td>
<td>Byte Code Compiler</td></tr>
<tr><td style="width: 25%;"><a href="compile.html">disassemble</a></td>
<td>Byte Code Compiler</td></tr>
<tr><td style="width: 25%;"><a href="compile.html">enableJIT</a></td>
<td>Byte Code Compiler</td></tr>
<tr><td style="width: 25%;"><a href="compile.html">getCompilerOption</a></td>
<td>Byte Code Compiler</td></tr>
<tr><td style="width: 25%;"><a href="compile.html">loadcmp</a></td>
<td>Byte Code Compiler</td></tr>
<tr><td style="width: 25%;"><a href="compile.html">setCompilerOptions</a></td>
<td>Byte Code Compiler</td></tr>
</table>
</div></body></html>
@media screen {
.container {
padding-right: 10px;
padding-left: 10px;
margin-right: auto;
margin-left: auto;
max-width: 900px;
}
}
.rimage img { /* from knitr - for examples and demos */
width: 96%;
margin-left: 2%;
}
.katex { font-size: 1.1em; }
code {
color: inherit;
background: inherit;
}
body {
line-height: 1.4;
background: white;
color: black;
}
a:link {
background: white;
color: blue;
}
a:visited {
background: white;
color: rgb(50%, 0%, 50%);
}
h1 {
background: white;
color: rgb(55%, 55%, 55%);
font-family: monospace;
font-size: 1.4em; /* x-large; */
text-align: center;
}
h2 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
text-align: center;
}
h3 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
}
h4 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
font-size: 1.2em; /* large; */
}
h5 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
}
h6 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
}
img.toplogo {
width: 4em;
vertical-align: middle;
}
img.arrow {
width: 30px;
height: 30px;
border: 0;
}
span.acronym {
font-size: small;
}
span.env {
font-family: monospace;
}
span.file {
font-family: monospace;
}
span.option{
font-family: monospace;
}
span.pkg {
font-weight: bold;
}
span.samp{
font-family: monospace;
}
div.vignettes a:hover {
background: rgb(85%, 85%, 85%);
}
tr {
vertical-align: top;
}
span.rlang {
font-family: Courier New, Courier;
color: #666666;
}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/00Index.html","start":0,"end":1857},{"filename":"/R.css","start":1857,"end":3701}],"remote_package_size":3701}

View file

@ -0,0 +1,845 @@
##
## Assignment tests
##
library(compiler)
## Local assignment
### symbol
x <- 1
eval(compile(quote(x <- 2)))
stopifnot(x == 2)
### closure
`f<-` <- function(x, i, value) { x[i] <- value; x }
x <- 1
eval(compile(quote(f(x, 1) <- 2)))
stopifnot(x == 2)
### SPECIAL
`f<-` <- `[<-`
x <- 1
eval(compile(quote(f(x, 1) <- 2)))
stopifnot(x == 2)
### BUILTIN
`f<-` <- `names<-`
x <- 1
eval(compile(quote(f(x) <- "foo")))
stopifnot(identical(x, structure(1, names = "foo")))
## Super assignment
### symbol
x <- 1
eval(compile(quote((function() x <<- 2)())))
stopifnot(x == 2)
### closure
`f<-` <- function(x, i, value) { x[i] <- value; x }
x <- 1
eval(compile(quote((function() f(x, 1) <<- 2)())))
stopifnot(x == 2)
### SPECIAL
`f<-` <- `[<-`
x <- 1
eval(compile(quote((function() f(x, 1) <<- 2)())))
stopifnot(x == 2)
### BUILTIN
`f<-` <- `names<-`
x <- 1
eval(compile(quote((function() f(x) <<- "foo")())))
stopifnot(identical(x, structure(1, names = "foo")))
## Dollargets
### Default
x <- list(a = 1)
eval(compile(quote(x$a <- 2)))
stopifnot(identical(x, list(a = 2)))
### Dispatch
x <- structure(list(a = 1), class = "foo")
y <- NULL
`$<-.foo` <- function(x, tag, value) { y <<- list(tag, value); x }
eval(compile(quote(x$a <- 2)))
stopifnot(identical(y, list("a", 2)))
## Subassign
### Default
x <- 1
eval(compile(quote(x[1] <- 2)))
stopifnot(identical(x, 2))
### Dispatching
x <- structure(list(NULL), class = "foo")
y <- NULL
`[<-.foo` <- function(x, k, value) { y <<- rep(value, k); x }
eval(compile(quote(x[2] <- 3)))
stopifnot(identical(y, rep(3, 2)))
#### Missing args
x <- c(1, 2, 3)
eval(compile(quote(x[] <- c(4, 5, 6))))
stopifnot(identical(x, c(4, 5, 6)))
### Named args
x <- structure(list(NULL), class = "foo")
y <- NULL
`[<-.foo` <- function(x, k, value) { y <<- names(sys.call()[-1]); x }
eval(compile(quote(x[k = 2] <- 3)))
stopifnot(identical(y, c("", "k", "value")))
## Subassign2
### Default
x <- list(NULL)
eval(compile(quote(x[[1]] <- list(1))))
stopifnot(identical(x, list(list(1))))
### Dispatching
x <- structure(list(), class = "foo")
y <- 1
`[[<-.foo` <- function(x, i, value) { y[i] <<- value; x }
eval(compile(quote(x[[1]] <- 3)))
stopifnot(identical(y, 3))
## Nested assignments
x <- list(a = list(b = 1))
eval(compile(quote(x$a$b <- 2)))
stopifnot(identical(x, list(a = list(b = 2))))
x <- list(1, list(2))
eval(compile(quote(x[[1]][] <- 2)))
eval(compile(quote(x[[2]][[1]] <- 3)))
stopifnot(identical(x, list(2, list(3))))
## checkAssign
checkAssign <- compiler:::checkAssign
cenv <- compiler:::makeCenv(.GlobalEnv)
cntxt <- compiler:::make.toplevelContext(cenv, list(suppressAll = TRUE))
stopifnot(identical(checkAssign(quote(x <- 1), cntxt), TRUE))
stopifnot(identical(checkAssign(quote("x" <- 1), cntxt), TRUE))
stopifnot(identical(checkAssign(quote(3 <- 1), cntxt), FALSE))
stopifnot(identical(checkAssign(quote(f(x) <- 1), cntxt), TRUE))
stopifnot(identical(checkAssign(quote((f())(x) <- 1), cntxt), FALSE))
stopifnot(identical(checkAssign(quote(f(g(x)) <- 1), cntxt), TRUE))
stopifnot(identical(checkAssign(quote(f(g("x")) <- 1), cntxt), FALSE))
## flattenPlace
flattenPlace <- compiler:::flattenPlace
stopifnot(identical(flattenPlace(quote(f(g(h(x, k), j), i)))$places,
list(quote(f(`*tmp*`, i)),
quote(g(`*tmp*`, j)),
quote(h(`*tmp*`, k)))))
stopifnot(identical(flattenPlace(quote(f(g(h(x, k), j), i)))$origplaces,
list(quote(f(g(h(x, k), j), i)),
quote(g(h(x, k), j)),
quote(h(x, k)))))
## getAssignFun
getAssignFun <- compiler:::getAssignFun
stopifnot(identical(getAssignFun(quote(f)), quote(`f<-`)))
stopifnot(identical(getAssignFun("f"), NULL))
stopifnot(identical(getAssignFun(quote(f(x))), NULL))
stopifnot(identical(getAssignFun(quote(base::diag)), quote(base::`diag<-`)))
stopifnot(identical(getAssignFun(quote(base:::diag)), quote(base:::`diag<-`)))
library(compiler)
options(keep.source=TRUE)
## very minimal
x <- 2
stopifnot(eval(compile(quote(x + 1))) == 3)
## simple code generation
checkCode <- function(expr, code, optimize = 2) {
v <- compile(expr, options = list(optimize = optimize))
d <- .Internal(disassemble(v))[[2]][-1]
dd <- as.integer(eval(substitute(code), getNamespace("compiler")))
identical(d, dd)
}
x <- 2
stopifnot(checkCode(quote(x + 1),
c(GETVAR.OP, 1L,
LDCONST.OP, 2L,
ADD.OP, 0L,
RETURN.OP)))
f <- function(x) x
checkCode(quote({f(1); f(2)}),
c(GETFUN.OP, 1L,
PUSHCONSTARG.OP, 3L,
CALL.OP, 4L,
POP.OP,
GETFUN.OP, 1L,
PUSHCONSTARG.OP, 6L,
CALL.OP, 7L,
RETURN.OP))
## names and ... args
f <- function(...) list(...)
stopifnot(identical(f(1, 2), cmpfun(f)(1, 2)))
f <- function(...) list(x = ...)
stopifnot(identical(f(1, 2), cmpfun(f)(1, 2)))
## substitute and argument constant folding
f <- function(x) substitute(x)
g <- function() f(1 + 2)
v1 <- g()
f <- cmpfun(f)
g <- cmpfun(g)
v2 <- g()
stopifnot(identical(v1, v2))
## simple loops
sr <- function(x) {
n <- length(x)
i <- 1
s <- 0
repeat {
if (i > n) break
s <- s + x[i]
i <- i + 1
}
s
}
sw <- function(x) {
n <- length(x)
i <- 1
s <- 0
while (i <= n) {
s <- s + x[i]
i <- i + 1
}
s
}
sf <- function(x) {
s <- 0
for (y in x)
s <- s + y
s
}
src <- cmpfun(sr)
swc <- cmpfun(sw)
sfc <- cmpfun(sf)
x <- 1 : 5
stopifnot(src(x) == sr(x))
stopifnot(swc(x) == sw(x))
stopifnot(sfc(x) == sf(x))
## Check that the handlers have been associated with the correct package
h <- ls(compiler:::inlineHandlers, all.names = TRUE)
p <- sub("package:", "", sapply(h, find))
pp <- sapply(h, function(n) get(n, compiler:::inlineHandlers)$package)
# stopifnot(identical(p, pp))
## Check assumption about simple .Internals
## These are .External calls now.
## stopifnot(all(sapply(compiler:::safeStatsInternals,
## function(f)
## compiler:::is.simpleInternal(get(f, "package:stats")))))
stopifnot(all(sapply(compiler:::safeBaseInternals,
function(f)
compiler:::is.simpleInternal(get(f, "package:base")))))
library(compiler)
##
## Test code for constant folding
##
makeCenv <- compiler:::makeCenv
checkConst <- compiler:::checkConst
constantFoldSym <- compiler:::constantFoldSym
constantFold <- compiler:::constantFold
## using a global environment
ce <- makeCenv(.GlobalEnv)
stopifnot(identical(constantFoldSym(quote(pi), list(env = ce, optimize = 3)),
checkConst(base::pi)))
stopifnot(identical(constantFoldSym(quote(pi), list(env = ce, optimize = 2)),
NULL))
stopifnot(identical(constantFoldSym(quote(pi), list(env = ce, optimize = 1)),
NULL))
stopifnot(identical(constantFoldSym(quote(pi), list(env = ce, optimize = 0)),
NULL))
stopifnot(identical(constantFold(quote(1 + 2), list(optimize = 3, env = ce)),
checkConst(1 + 2)))
stopifnot(identical(constantFold(quote(1 + 2), list(optimize = 2, env = ce)),
checkConst(1 + 2)))
stopifnot(identical(constantFold(quote(1 + 2), list(optimize = 1, env = ce)),
NULL))
stopifnot(identical(constantFold(quote(1 + 2), list(optimize = 0, env = ce)),
NULL))
stopifnot(identical(constantFold(quote(sqrt(2)), list(optimize = 3, env = ce)),
checkConst(sqrt(2))))
stopifnot(identical(constantFold(quote(sqrt(2)), list(optimize = 2, env = ce)),
NULL))
stopifnot(identical(constantFold(quote(sqrt(2)), list(optimize = 1, env = ce)),
NULL))
stopifnot(identical(constantFold(quote(sqrt(2)), list(optimize = 0, env = ce)),
NULL))
## using a namespace environment
ce <- makeCenv(getNamespace("stats"))
stopifnot(identical(constantFoldSym(quote(pi), list(env = ce, optimize = 3)),
list(value = base::pi)))
stopifnot(identical(constantFoldSym(quote(pi), list(env = ce, optimize = 2)),
list(value = base::pi)))
stopifnot(identical(constantFoldSym(quote(pi), list(env = ce, optimize = 1)),
checkConst(base::pi)))
stopifnot(identical(constantFoldSym(quote(pi), list(env = ce, optimize = 0)),
NULL))
stopifnot(identical(constantFold(quote(1 + 2), list(optimize = 3, env = ce)),
checkConst(1 + 2)))
stopifnot(identical(constantFold(quote(1 + 2), list(optimize = 2, env = ce)),
checkConst(1 + 2)))
stopifnot(identical(constantFold(quote(1 + 2), list(optimize = 1, env = ce)),
checkConst(1 + 2)))
stopifnot(identical(constantFold(quote(1 + 2), list(optimize = 0, env = ce)),
NULL))
stopifnot(identical(constantFold(quote(sqrt(2)), list(optimize = 3, env = ce)),
checkConst(sqrt(2))))
stopifnot(identical(constantFold(quote(sqrt(2)), list(optimize = 2, env = ce)),
checkConst(sqrt(2))))
stopifnot(identical(constantFold(quote(sqrt(2)), list(optimize = 1, env = ce)),
checkConst(sqrt(2))))
stopifnot(identical(constantFold(quote(sqrt(2)), list(optimize = 0, env = ce)),
NULL))
library(compiler)
# set to TRUE for debugging
only.print <- FALSE
testError <- function(expr, handler) {
err <- tryCatch(expr, error = handler)
stopifnot(identical(err, TRUE))
}
testWarning <- function(expr, handler) {
warn <- tryCatch(expr, warning = handler)
stopifnot(identical(warn, TRUE))
}
w <- function(expr, call = substitute(expr)) {
if (only.print)
testWarning(expr = expr, handler = function(e) {
cat("WARNING-MESSAGE: \"", e$message, "\"\nWARNING-CALL: ", deparse(e$call), "\n", sep="")
TRUE
})
else
testWarning(expr = expr, handler = function(e) {
stopifnot(identical(e$call, call))
TRUE
})
}
e <- function(expr, call = substitute(expr)) {
if (only.print)
testError(expr = expr, handler = function(e) {
cat("ERROR-MESSAGE: \"", e$message, "\"\nERROR-CALL: ", deparse(e$call), "\n", sep="")
TRUE
})
else
testError(expr = expr, handler = function(e) {
stopifnot(identical(e$call, call))
TRUE
})
}
f <- function(x = 1:2,
y = -1,
z = c(a=1, b=2, c=2, d=3),
u = list(inner = c(a=1,b=2,c=3,d=4)),
v = list(),
...) {
w(x[1:3] <- 11:12)
# quote(`[<-`(x, 1:3, value = 11:12))
w(min(...))
w(sqrt(y))
e(names(z[1:2]) <- c("X", "Y", "Z"))
# quote(`names<-`(z[1:2], value = c("X", "Y", "Z"))
e(names(z[c(-1,1)]) <- c("X", "Y", "Z"),
# quote(z[c(-1, 1)])) <=== this would be nice, but not possible at the moment
quote(`*tmp*`[c(-1, 1)]))
w(names(u$inner)[2:4] <- v[1:2] <- c("X", "Y", "Z", "U")[1:2])
# quote(`[<-`(names(u$inner), 2:4, value = v[1:2] <- c("X", "Y", "Z", "U")[1:2]))
##_ Not anymore, as stopifnot() massages its error/warning message:
##_ e(stopifnot(is.numeric(dummy)))
}
old=options()
oldoptimize <- getCompilerOption("optimize")
oldjit <- enableJIT(3)
for (opt in 2:3) {
setCompilerOptions(optimize=opt)
f()
}
## test that AST and compiler errors/warnings agree
enableJIT(0)
testexpr <- function(fun) {
resast <- tryCatch(fun(), error = function(e) e, warning = function(e) e)
cfun <- cmpfun(fun)
rescmp <- tryCatch(cfun(), error = function(e) e, warning = function(e) e)
show(resast)
show(rescmp)
stopifnot(identical(resast, rescmp))
}
testexpr(function() { dummy()$e })
testexpr(function() { beta(-1, NULL) })
testexpr(function() { inherits(1, log) })
enableJIT(oldjit)
setCompilerOptions(optimize = oldoptimize)
library(compiler)
##
## Tests for findHomeNS()
##
findHomeNS <- compiler:::findHomeNS
## return value for an undefinded variable should be NULL
stopifnot(is.null(findHomeNS("foo", getNamespace("stats"))))
stopifnot(is.null(findHomeNS("foo", parent.env(getNamespace("stats")))))
stopifnot(is.null(findHomeNS("foo", getNamespace("base"))))
## + is found in .BaseNamespaceEnv for stats or base
stopifnot(identical(findHomeNS("+", getNamespace("stats")),
.BaseNamespaceEnv))
stopifnot(identical(findHomeNS("+", parent.env(getNamespace("stats"))),
.BaseNamespaceEnv))
stopifnot(identical(findHomeNS("+", getNamespace("base")),
.BaseNamespaceEnv))
## dnorm is defined in stats
stopifnot(identical(findHomeNS("dnorm", getNamespace("stats")),
getNamespace("stats")))
stopifnot(identical(findHomeNS("dnorm", parent.env(getNamespace("stats"))),
getNamespace("stats")))
stopifnot(is.null(findHomeNS("dnorm", getNamespace("base"))))
## par is available via the stats namespace since stats imports graphics
stopifnot(identical(findHomeNS("par", getNamespace("stats")),
getNamespace("graphics")))
stopifnot(identical(findHomeNS("par", parent.env(getNamespace("stats"))),
getNamespace("graphics")))
stopifnot(is.null(findHomeNS("par", getNamespace("base"))))
## palette is one of a small set of selective imports from grDevices
stopifnot(identical(findHomeNS("palette", getNamespace("stats")),
getNamespace("grDevices")))
stopifnot(identical(findHomeNS("palette", parent.env(getNamespace("stats"))),
getNamespace("grDevices")))
stopifnot(is.null(findHomeNS("palette", getNamespace("base"))))
##
## Tests for getAssignedVar
##
getAssignedVar <- compiler:::getAssignedVar
stopifnot(identical(getAssignedVar(quote("v"<-x)), "v"))
stopifnot(identical(getAssignedVar(quote(v<-x)), "v"))
stopifnot(identical(getAssignedVar(quote(f(v)<-x)), "v"))
stopifnot(identical(getAssignedVar(quote(f(g(v,2),1)<-x)), "v"))
##
## Tests for findLocals
##
findLocals <- compiler:::findLocals
cenv <- compiler:::makeCenv(.GlobalEnv)
cntxt <- compiler:::make.toplevelContext(cenv, NULL)
stopifnot(identical(findLocals(quote(x<-1), cntxt), "x"))
stopifnot(identical(findLocals(quote(f(x)<-1), cntxt), "x"))
stopifnot(identical(findLocals(quote(f(g(x,2),1)<-1), cntxt), "x"))
stopifnot(identical(findLocals(quote(x<-y<-1), cntxt), c("x","y")))
stopifnot(identical(findLocals(quote(local(x<-1,e)), cntxt), "x"))
stopifnot(identical(findLocals(quote(local(x<-1)), cntxt), character(0)))
stopifnot(identical(findLocals(quote({local<-1;local(x<-1)}), cntxt),
c("local", "x")))
local({
f <- function (f, x, y) {
local <- f
local(x <- y)
x
}
stopifnot(identical(findLocals(body(f), cntxt), c("local","x")))
})
local({
cenv <- compiler:::addCenvVars(cenv, "local")
cntxt <- compiler:::make.toplevelContext(cenv, NULL)
stopifnot(identical(findLocals(quote(local(x<-1,e)), cntxt), "x"))
})
stopifnot(identical(findLocals(quote(assign(x, 3)), cntxt), character(0)))
stopifnot(identical(findLocals(quote(assign("x", 3)), cntxt), "x"))
stopifnot(identical(findLocals(quote(assign("x", 3, 4)), cntxt), character(0)))
library(compiler)
oldJIT <- enableJIT(3)
## need a test of level 1 to make sure functions are compiled
## need more tests here
repeat { break }
while(TRUE) break
for (i in 1:10) i
enableJIT(oldJIT)
library(compiler)
f <- function(x) x
g <- function(x) repeat if (x) f(return(1)) else return(2)
gc <- cmpfun(g)
stopifnot(identical(g(TRUE), gc(TRUE)))
stopifnot(identical(g(FALSE), gc(FALSE)))
h <- function(x) { repeat if (x) f(return(1)) else break; 2 }
hc <- cmpfun(h)
stopifnot(identical(h(TRUE), hc(TRUE)))
stopifnot(identical(h(FALSE), hc(FALSE)))
k <- function(x) { repeat if (x) return(1) else f(break); 2 }
kc <- cmpfun(k)
stopifnot(identical(k(TRUE), kc(TRUE)))
stopifnot(identical(k(FALSE), kc(FALSE)))
## **** need more variations on this.
## this would give an error prior to fixing a binding cache bug
f <- function(x) { for (y in x) { z <- y; g(break) } ; z }
g <- function(x) x
cmpfun(f)(c(1,2,3))
library(compiler)
# This tests tracking of source file references
options(keep.source=TRUE)
ln <- function() attr(sys.call(), "srcref")[1]
# NOTE: the block below is sensitive to formatting (newlines)
code <- quote({
start <- ln()
plus1 <- ln() # start + 1
stopifnot(identical(plus1, start+1L))
{
plus4 <- ln() # start + 4
}
stopifnot(identical(plus4, start+4L))
plus9 <- 0
f <- function() {
plus9 <<- ln() # start + 9
}
f()
stopifnot(identical(plus9, start+9L))
g <- function(x = ln()) x # start + 13
plus13 <- g()
stopifnot(identical(plus13, start+13L))
plus16 <- g(ln()) # start + 16
stopifnot(identical(plus16, start+13L) || identical(plus16, start+16L)) ### NOTE: see compatibility note below
for(i in 1) plus18 <- ln() # start + 18
stopifnot(identical(plus18, start+18L))
for(i in 1) { plus20 <- ln() } # start + 20
stopifnot(identical(plus20, start+20L))
for(i in 1) {
plus23 <- ln() # start + 23
}
stopifnot(identical(plus23, start+23L))
ff <- function() for(i in 1) return(ln()) # start + 26
plus26 <- ff()
stopifnot(identical(plus26, start+26L))
ff1 <- function() {
for(i in 1) return(ln()) # start + 30
}
plus30 <- ff1()
stopifnot(identical(plus30, start+30L))
})
## Compatibility note
##
## in the example above, "plus16" with the AST interpreter gets line number
## start+13, but with the compiler, it gets start+16. The latter seems to
## be more correct, as line start+16 is where the spelling of "ln()" is.
oldoptimize <- getCompilerOption("optimize")
oldjit <- enableJIT(0)
l <- function() 1
body(l) <- code
for(jit in 0:2) {
enableJIT(jit)
for (opt in 0:3) {
if (opt >=2 || jit <=2) {
setCompilerOptions(optimize=opt)
eval(code)
eval(compile(code))
body(l) <- code
l()
body(l) <- code
cmpfun(l)()
local(eval(code))
do.call("local", list(code))
}
}
}
setCompilerOptions(optimize = oldoptimize)
enableJIT(oldjit)
library(compiler)
ev <- function(expr)
tryCatch(withVisible(eval(expr, parent.frame(), baseenv())),
error = function(e) conditionMessage(e))
f <- function(x) switch(x, x = 1, y = , z = 3, , w =, 6, v = )
fc <- cmpfun(f)
stopifnot(identical(ev(quote(fc("x"))), ev(quote(f("x")))))
stopifnot(identical(ev(quote(fc("A"))), ev(quote(f("A")))))
stopifnot(identical(ev(quote(fc(0))), ev(quote(f(0)))))
stopifnot(identical(ev(quote(fc(1))), ev(quote(f(1)))))
stopifnot(identical(ev(quote(fc(2))), ev(quote(f(2)))))
stopifnot(identical(ev(quote(fc(3))), ev(quote(f(3)))))
stopifnot(identical(ev(quote(fc(4))), ev(quote(f(4)))))
stopifnot(identical(ev(quote(fc(5))), ev(quote(f(5)))))
stopifnot(identical(ev(quote(fc(6))), ev(quote(f(6)))))
stopifnot(identical(ev(quote(fc(7))), ev(quote(f(7)))))
stopifnot(identical(ev(quote(fc(8))), ev(quote(f(8)))))
g <- function(x) switch(x, x = 1, y = , z = 3, w =, 5, v = )
gc <- cmpfun(g)
stopifnot(identical(ev(quote(gc("x"))), ev(quote(g("x")))))
stopifnot(identical(ev(quote(gc("y"))), ev(quote(g("y")))))
stopifnot(identical(ev(quote(gc("z"))), ev(quote(g("z")))))
stopifnot(identical(ev(quote(gc("w"))), ev(quote(g("w")))))
stopifnot(identical(ev(quote(gc("v"))), ev(quote(g("v")))))
stopifnot(identical(ev(quote(gc("A"))), ev(quote(g("A")))))
stopifnot(identical(ev(quote(gc(0))), ev(quote(g(0)))))
stopifnot(identical(ev(quote(gc(1))), ev(quote(g(1)))))
stopifnot(identical(ev(quote(gc(2))), ev(quote(g(2)))))
stopifnot(identical(ev(quote(gc(3))), ev(quote(g(3)))))
stopifnot(identical(ev(quote(gc(4))), ev(quote(g(4)))))
stopifnot(identical(ev(quote(gc(5))), ev(quote(g(5)))))
stopifnot(identical(ev(quote(gc(6))), ev(quote(g(6)))))
stopifnot(identical(ev(quote(gc(7))), ev(quote(g(7)))))
h <- function(x) switch(x, x = 1, y = , z = 3)
hc <- cmpfun(h)
stopifnot(identical(ev(quote(hc("x"))), ev(quote(h("x")))))
stopifnot(identical(ev(quote(hc("y"))), ev(quote(h("y")))))
stopifnot(identical(ev(quote(hc("z"))), ev(quote(h("z")))))
stopifnot(identical(ev(quote(hc("A"))), ev(quote(h("A")))))
stopifnot(identical(ev(quote(hc(0))), ev(quote(h(0)))))
stopifnot(identical(ev(quote(hc(1))), ev(quote(h(1)))))
stopifnot(identical(ev(quote(hc(2))), ev(quote(h(2)))))
stopifnot(identical(ev(quote(hc(3))), ev(quote(h(3)))))
stopifnot(identical(ev(quote(hc(4))), ev(quote(h(4)))))
k <- function(x) switch(x, x = 1, y = 2, z = 3)
kc <- cmpfun(k)
stopifnot(identical(ev(quote(kc("x"))), ev(quote(k("x")))))
stopifnot(identical(ev(quote(kc("y"))), ev(quote(k("y")))))
stopifnot(identical(ev(quote(kc("z"))), ev(quote(k("z")))))
stopifnot(identical(ev(quote(kc("A"))), ev(quote(k("A")))))
stopifnot(identical(ev(quote(kc(0))), ev(quote(k(0)))))
stopifnot(identical(ev(quote(kc(1))), ev(quote(k(1)))))
stopifnot(identical(ev(quote(kc(2))), ev(quote(k(2)))))
stopifnot(identical(ev(quote(kc(3))), ev(quote(k(3)))))
stopifnot(identical(ev(quote(kc(4))), ev(quote(k(4)))))
l <- function(x) switch(x, "a", "b", "c")
lc <- cmpfun(l)
ce <- function(expr) tryCatch(expr, error = function(e) "Error")
## both of these should raise errors but the messages will differ
stopifnot(identical(ce(lc("A")), ce(l("A"))))
stopifnot(identical(ev(quote(lc(0))), ev(quote(l(0)))))
stopifnot(identical(ev(quote(lc(1))), ev(quote(l(1)))))
stopifnot(identical(ev(quote(lc(2))), ev(quote(l(2)))))
stopifnot(identical(ev(quote(lc(3))), ev(quote(l(3)))))
stopifnot(identical(ev(quote(lc(4))), ev(quote(l(4)))))
l <- function(x) switch(x)
lc <- cmpfun(l)
cw <- function(expr) tryCatch(expr, warning = function(w) w)
stopifnot(identical(cw(l(1)), cw(lc(1))))
stopifnot(identical(cw(l("A")), cw(lc("A"))))
suppressWarnings(stopifnot(identical(withVisible(l(1)),
withVisible(lc(1)))))
suppressWarnings(stopifnot(identical(withVisible(l("A")),
withVisible(lc("A")))))
## Check that R_Visible is being set properly.
library(compiler)
vcheck <- function(expr)
stopifnot(withVisible(eval(compile(substitute(expr))))$visible)
asfoo <- function(x) structure(x, class = "foo")
xfoo <- asfoo(1)
## FastMath1
vcheck(sqrt(invisible(2)))
vcheck(exp(invisible(2)))
vcheck(sqrt(invisible(2L)))
vcheck(exp(invisible(2L)))
vcheck(sqrt(invisible(xfoo)))
vcheck(exp(invisible(xfoo)))
## FastUnary
vcheck(+ invisible(2))
vcheck(- invisible(2))
vcheck(+ invisible(2L))
vcheck(- invisible(2L))
vcheck(+ invisible(xfoo))
vcheck(- invisible(xfoo))
## FastBinary
vcheck(1 + invisible(2))
vcheck(1 - invisible(2))
vcheck(3 * invisible(2))
vcheck(1 / invisible(2))
vcheck(3 ^ invisible(2))
vcheck(1 + invisible(2L))
vcheck(1L + invisible(2))
vcheck(1 + invisible(xfoo))
## FastRelop2
vcheck(1 == invisible(2))
vcheck(1 != invisible(2))
vcheck(1 < invisible(2))
vcheck(1 <= invisible(2))
vcheck(1 >= invisible(2))
vcheck(1 > invisible(2))
vcheck(1 > invisible(2L))
vcheck(1L > invisible(2L))
vcheck(1 > invisible(xfoo))
## Builtin2
vcheck(1 & invisible(2))
vcheck(0 | invisible(2))
vcheck(0 | invisible(2L))
vcheck(0L | invisible(2L))
vcheck(0 | invisible(xfoo))
## Builtin1
vcheck(! invisible(2))
vcheck(! invisible(2L))
vcheck(! invisible(xfoo))
## DO_VECSUBSET
vcheck(1[invisible(1)])
vcheck(xfoo[invisible(1)])
## MATSUBSET_PTR
vcheck(matrix(1)[1, invisible(1)])
vcheck(asfoo(matrix(1))[1, invisible(1)])
## SUBSET_N_PTR
vcheck(array(1, c(1, 1, 1))[1, 1, invisible(1)])
vcheck(asfoo(array(1, c(1, 1, 1)))[1, 1, invisible(1)])
## DO_DFLTDISPATCH
vcheck(invisible(1)[])
vcheck(matrix(1)[,invisible(1)])
## not sure how to trigger [[ issue
vcheck(c(invisible(2)))
vcheck(xfoo[])
## DOLLAR
vcheck(invisible(list(x = 1))$x)
`$.foo` <- function(x, y) invisible(x)
vcheck(xfoo$bar)
## ISINTEGER
vcheck(is.integer(invisible(1)))
vcheck(is.integer(invisible(xfoo)))
## DO_ISTYPE
vcheck(is.logical(invisible(1)))
vcheck(is.double(invisible(1)))
vcheck(is.complex(invisible(1)))
vcheck(is.character(invisible(1)))
vcheck(is.symbol(invisible(1)))
## DO_ISTEST
vcheck(is.null(invisible(1)))
vcheck(is.object(invisible(1)))
vcheck(is.numeric(invisible(1)))
## &&, ||
vcheck(invisible(TRUE) || FALSE)
vcheck(FALSE || invisible(FALSE))
vcheck(invisible(FALSE) && FALSE)
vcheck(TRUE && invisible(TRUE))
## LOG, LOGBASE, MATH1
vcheck(log(invisible(2)))
vcheck(log(2, invisible(2)))
vcheck(log(invisible(xfoo)))
vcheck(log(xfoo, invisible(2)))
vcheck(sin(invisible(2)))
vcheck(cos(invisible(2)))
## DOTCALL
## COLON, SEQLEN, SEQALONG
vcheck(1 : invisible(2))
vcheck(1 : invisible(xfoo))
vcheck(seq_len(invisible(2)))
vcheck(seq_len(invisible(xfoo)))
vcheck(seq_along(invisible(1)))
vcheck(seq_along(invisible(xfoo)))

View file

@ -0,0 +1 @@
{"files":[{"filename":"/assign.R","start":0,"end":3965},{"filename":"/basics.R","start":3965,"end":6379},{"filename":"/const.R","start":6379,"end":9453},{"filename":"/curexpr.R","start":9453,"end":12013},{"filename":"/envir.R","start":12013,"end":15343},{"filename":"/jit.R","start":15343,"end":15549},{"filename":"/loop.R","start":15549,"end":16270},{"filename":"/srcref.R","start":16270,"end":18556},{"filename":"/switch.R","start":18556,"end":22434},{"filename":"/vischk.R","start":22434,"end":25167}],"remote_package_size":25167}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/AnIndex","start":0,"end":2036},{"filename":"/aliases.rds","start":2036,"end":2957},{"filename":"/datasets.rdb","start":2957,"end":211881},{"filename":"/datasets.rdx","start":211881,"end":213925},{"filename":"/paths.rds","start":213925,"end":214793}],"remote_package_size":214793}

View file

@ -0,0 +1,503 @@
<!DOCTYPE html>
<html>
<head><title>R: The R Datasets Package</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body><div class="container">
<h1> The R Datasets Package
<img class="toplogo" src="../../../doc/html/Rlogo.svg" alt="[R logo]" />
</h1>
<hr/>
<div style="text-align: center;">
<a href="../../../doc/html/packages.html"><img class="arrow" src="../../../doc/html/left.jpg" alt="[Up]" /></a>
<a href="../../../doc/html/index.html"><img class="arrow" src="../../../doc/html/up.jpg" alt="[Top]" /></a>
</div><h2>Documentation for package &lsquo;datasets&rsquo; version 4.3.0</h2>
<ul><li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li>
</ul>
<h2>Help Pages</h2>
<p style="text-align: center;">
<a href="# "> </a>
<a href="#A">A</a>
<a href="#B">B</a>
<a href="#C">C</a>
<a href="#D">D</a>
<a href="#E">E</a>
<a href="#F">F</a>
<a href="#H">H</a>
<a href="#I">I</a>
<a href="#J">J</a>
<a href="#L">L</a>
<a href="#M">M</a>
<a href="#N">N</a>
<a href="#O">O</a>
<a href="#P">P</a>
<a href="#Q">Q</a>
<a href="#R">R</a>
<a href="#S">S</a>
<a href="#T">T</a>
<a href="#U">U</a>
<a href="#V">V</a>
<a href="#W">W</a>
</p>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="datasets-package.html">datasets-package</a></td>
<td>The R Datasets Package</td></tr>
</table>
<h2><a id="A">-- A --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="ability.cov.html">ability.cov</a></td>
<td>Ability and Intelligence Tests</td></tr>
<tr><td style="width: 25%;"><a href="airmiles.html">airmiles</a></td>
<td>Passenger Miles on Commercial US Airlines, 1937-1960</td></tr>
<tr><td style="width: 25%;"><a href="AirPassengers.html">AirPassengers</a></td>
<td>Monthly Airline Passenger Numbers 1949-1960</td></tr>
<tr><td style="width: 25%;"><a href="airquality.html">airquality</a></td>
<td>New York Air Quality Measurements</td></tr>
<tr><td style="width: 25%;"><a href="anscombe.html">anscombe</a></td>
<td>Anscombe's Quartet of 'Identical' Simple Linear Regressions</td></tr>
<tr><td style="width: 25%;"><a href="attenu.html">attenu</a></td>
<td>The Joyner-Boore Attenuation Data</td></tr>
<tr><td style="width: 25%;"><a href="attitude.html">attitude</a></td>
<td>The Chatterjee-Price Attitude Data</td></tr>
<tr><td style="width: 25%;"><a href="austres.html">austres</a></td>
<td>Quarterly Time Series of the Number of Australian Residents</td></tr>
</table>
<h2><a id="B">-- B --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="beavers.html">beaver1</a></td>
<td>Body Temperature Series of Two Beavers</td></tr>
<tr><td style="width: 25%;"><a href="beavers.html">beaver2</a></td>
<td>Body Temperature Series of Two Beavers</td></tr>
<tr><td style="width: 25%;"><a href="beavers.html">beavers</a></td>
<td>Body Temperature Series of Two Beavers</td></tr>
<tr><td style="width: 25%;"><a href="BJsales.html">BJsales</a></td>
<td>Sales Data with Leading Indicator</td></tr>
<tr><td style="width: 25%;"><a href="BJsales.html">BJsales.lead</a></td>
<td>Sales Data with Leading Indicator</td></tr>
<tr><td style="width: 25%;"><a href="BOD.html">BOD</a></td>
<td>Biochemical Oxygen Demand</td></tr>
</table>
<h2><a id="C">-- C --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="cars.html">cars</a></td>
<td>Speed and Stopping Distances of Cars</td></tr>
<tr><td style="width: 25%;"><a href="ChickWeight.html">ChickWeight</a></td>
<td>Weight versus age of chicks on different diets</td></tr>
<tr><td style="width: 25%;"><a href="chickwts.html">chickwts</a></td>
<td>Chicken Weights by Feed Type</td></tr>
<tr><td style="width: 25%;"><a href="zCO2.html">CO2</a></td>
<td>Carbon Dioxide Uptake in Grass Plants</td></tr>
<tr><td style="width: 25%;"><a href="co2.html">co2</a></td>
<td>Mauna Loa Atmospheric CO2 Concentration</td></tr>
<tr><td style="width: 25%;"><a href="crimtab.html">crimtab</a></td>
<td>Student's 3000 Criminals Data</td></tr>
</table>
<h2><a id="D">-- D --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="datasets-package.html">datasets</a></td>
<td>The R Datasets Package</td></tr>
<tr><td style="width: 25%;"><a href="discoveries.html">discoveries</a></td>
<td>Yearly Numbers of Important Discoveries</td></tr>
<tr><td style="width: 25%;"><a href="DNase.html">DNase</a></td>
<td>Elisa assay of DNase</td></tr>
</table>
<h2><a id="E">-- E --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="esoph.html">esoph</a></td>
<td>Smoking, Alcohol and (O)esophageal Cancer</td></tr>
<tr><td style="width: 25%;"><a href="euro.html">euro</a></td>
<td>Conversion Rates of Euro Currencies</td></tr>
<tr><td style="width: 25%;"><a href="euro.html">euro.cross</a></td>
<td>Conversion Rates of Euro Currencies</td></tr>
<tr><td style="width: 25%;"><a href="eurodist.html">eurodist</a></td>
<td>Distances Between European Cities and Between US Cities</td></tr>
<tr><td style="width: 25%;"><a href="EuStockMarkets.html">EuStockMarkets</a></td>
<td>Daily Closing Prices of Major European Stock Indices, 1991-1998</td></tr>
</table>
<h2><a id="F">-- F --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="faithful.html">faithful</a></td>
<td>Old Faithful Geyser Data</td></tr>
<tr><td style="width: 25%;"><a href="UKLungDeaths.html">fdeaths</a></td>
<td>Monthly Deaths from Lung Diseases in the UK</td></tr>
<tr><td style="width: 25%;"><a href="Formaldehyde.html">Formaldehyde</a></td>
<td>Determination of Formaldehyde</td></tr>
<tr><td style="width: 25%;"><a href="freeny.html">freeny</a></td>
<td>Freeny's Revenue Data</td></tr>
<tr><td style="width: 25%;"><a href="freeny.html">freeny.x</a></td>
<td>Freeny's Revenue Data</td></tr>
<tr><td style="width: 25%;"><a href="freeny.html">freeny.y</a></td>
<td>Freeny's Revenue Data</td></tr>
</table>
<h2><a id="H">-- H --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="HairEyeColor.html">HairEyeColor</a></td>
<td>Hair and Eye Color of Statistics Students</td></tr>
<tr><td style="width: 25%;"><a href="Harman23.cor.html">Harman23.cor</a></td>
<td>Harman Example 2.3</td></tr>
<tr><td style="width: 25%;"><a href="Harman74.cor.html">Harman74.cor</a></td>
<td>Harman Example 7.4</td></tr>
</table>
<h2><a id="I">-- I --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="Indometh.html">Indometh</a></td>
<td>Pharmacokinetics of Indomethacin</td></tr>
<tr><td style="width: 25%;"><a href="infert.html">infert</a></td>
<td>Infertility after Spontaneous and Induced Abortion</td></tr>
<tr><td style="width: 25%;"><a href="InsectSprays.html">InsectSprays</a></td>
<td>Effectiveness of Insect Sprays</td></tr>
<tr><td style="width: 25%;"><a href="iris.html">iris</a></td>
<td>Edgar Anderson's Iris Data</td></tr>
<tr><td style="width: 25%;"><a href="iris.html">iris3</a></td>
<td>Edgar Anderson's Iris Data</td></tr>
<tr><td style="width: 25%;"><a href="islands.html">islands</a></td>
<td>Areas of the World's Major Landmasses</td></tr>
</table>
<h2><a id="J">-- J --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="JohnsonJohnson.html">JohnsonJohnson</a></td>
<td>Quarterly Earnings per Johnson &amp; Johnson Share</td></tr>
</table>
<h2><a id="L">-- L --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="LakeHuron.html">LakeHuron</a></td>
<td>Level of Lake Huron 1875-1972</td></tr>
<tr><td style="width: 25%;"><a href="UKLungDeaths.html">ldeaths</a></td>
<td>Monthly Deaths from Lung Diseases in the UK</td></tr>
<tr><td style="width: 25%;"><a href="lh.html">lh</a></td>
<td>Luteinizing Hormone in Blood Samples</td></tr>
<tr><td style="width: 25%;"><a href="LifeCycleSavings.html">LifeCycleSavings</a></td>
<td>Intercountry Life-Cycle Savings Data</td></tr>
<tr><td style="width: 25%;"><a href="Loblolly.html">Loblolly</a></td>
<td>Growth of Loblolly pine trees</td></tr>
<tr><td style="width: 25%;"><a href="longley.html">longley</a></td>
<td>Longley's Economic Regression Data</td></tr>
<tr><td style="width: 25%;"><a href="lynx.html">lynx</a></td>
<td>Annual Canadian Lynx trappings 1821-1934</td></tr>
</table>
<h2><a id="M">-- M --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="UKLungDeaths.html">mdeaths</a></td>
<td>Monthly Deaths from Lung Diseases in the UK</td></tr>
<tr><td style="width: 25%;"><a href="morley.html">morley</a></td>
<td>Michelson Speed of Light Data</td></tr>
<tr><td style="width: 25%;"><a href="mtcars.html">mtcars</a></td>
<td>Motor Trend Car Road Tests</td></tr>
</table>
<h2><a id="N">-- N --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="nhtemp.html">nhtemp</a></td>
<td>Average Yearly Temperatures in New Haven</td></tr>
<tr><td style="width: 25%;"><a href="Nile.html">Nile</a></td>
<td>Flow of the River Nile</td></tr>
<tr><td style="width: 25%;"><a href="nottem.html">nottem</a></td>
<td>Average Monthly Temperatures at Nottingham, 1920-1939</td></tr>
<tr><td style="width: 25%;"><a href="npk.html">npk</a></td>
<td>Classical N, P, K Factorial Experiment</td></tr>
</table>
<h2><a id="O">-- O --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="occupationalStatus.html">occupationalStatus</a></td>
<td>Occupational Status of Fathers and their Sons</td></tr>
<tr><td style="width: 25%;"><a href="Orange.html">Orange</a></td>
<td>Growth of Orange Trees</td></tr>
<tr><td style="width: 25%;"><a href="OrchardSprays.html">OrchardSprays</a></td>
<td>Potency of Orchard Sprays</td></tr>
</table>
<h2><a id="P">-- P --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="PlantGrowth.html">PlantGrowth</a></td>
<td>Results from an Experiment on Plant Growth</td></tr>
<tr><td style="width: 25%;"><a href="precip.html">precip</a></td>
<td>Annual Precipitation in US Cities</td></tr>
<tr><td style="width: 25%;"><a href="presidents.html">presidents</a></td>
<td>Quarterly Approval Ratings of US Presidents</td></tr>
<tr><td style="width: 25%;"><a href="pressure.html">pressure</a></td>
<td>Vapor Pressure of Mercury as a Function of Temperature</td></tr>
<tr><td style="width: 25%;"><a href="Puromycin.html">Puromycin</a></td>
<td>Reaction Velocity of an Enzymatic Reaction</td></tr>
</table>
<h2><a id="Q">-- Q --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="quakes.html">quakes</a></td>
<td>Locations of Earthquakes off Fiji</td></tr>
</table>
<h2><a id="R">-- R --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="randu.html">randu</a></td>
<td>Random Numbers from Congruential Generator RANDU</td></tr>
<tr><td style="width: 25%;"><a href="rivers.html">rivers</a></td>
<td>Lengths of Major North American Rivers</td></tr>
<tr><td style="width: 25%;"><a href="rock.html">rock</a></td>
<td>Measurements on Petroleum Rock Samples</td></tr>
</table>
<h2><a id="S">-- S --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="UKDriverDeaths.html">Seatbelts</a></td>
<td>Road Casualties in Great Britain 1969-84</td></tr>
<tr><td style="width: 25%;"><a href="sleep.html">sleep</a></td>
<td>Student's Sleep Data</td></tr>
<tr><td style="width: 25%;"><a href="stackloss.html">stack.loss</a></td>
<td>Brownlee's Stack Loss Plant Data</td></tr>
<tr><td style="width: 25%;"><a href="stackloss.html">stack.x</a></td>
<td>Brownlee's Stack Loss Plant Data</td></tr>
<tr><td style="width: 25%;"><a href="stackloss.html">stackloss</a></td>
<td>Brownlee's Stack Loss Plant Data</td></tr>
<tr><td style="width: 25%;"><a href="state.html">state</a></td>
<td>US State Facts and Figures</td></tr>
<tr><td style="width: 25%;"><a href="state.html">state.abb</a></td>
<td>US State Facts and Figures</td></tr>
<tr><td style="width: 25%;"><a href="state.html">state.area</a></td>
<td>US State Facts and Figures</td></tr>
<tr><td style="width: 25%;"><a href="state.html">state.center</a></td>
<td>US State Facts and Figures</td></tr>
<tr><td style="width: 25%;"><a href="state.html">state.division</a></td>
<td>US State Facts and Figures</td></tr>
<tr><td style="width: 25%;"><a href="state.html">state.name</a></td>
<td>US State Facts and Figures</td></tr>
<tr><td style="width: 25%;"><a href="state.html">state.region</a></td>
<td>US State Facts and Figures</td></tr>
<tr><td style="width: 25%;"><a href="state.html">state.x77</a></td>
<td>US State Facts and Figures</td></tr>
<tr><td style="width: 25%;"><a href="sunspot.month.html">sunspot.month</a></td>
<td>Monthly Sunspot Data, from 1749 to "Present"</td></tr>
<tr><td style="width: 25%;"><a href="sunspot.year.html">sunspot.year</a></td>
<td>Yearly Sunspot Data, 1700-1988</td></tr>
<tr><td style="width: 25%;"><a href="sunspots.html">sunspots</a></td>
<td>Monthly Sunspot Numbers, 1749-1983</td></tr>
<tr><td style="width: 25%;"><a href="swiss.html">swiss</a></td>
<td>Swiss Fertility and Socioeconomic Indicators (1888) Data</td></tr>
</table>
<h2><a id="T">-- T --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="Theoph.html">Theoph</a></td>
<td>Pharmacokinetics of Theophylline</td></tr>
<tr><td style="width: 25%;"><a href="Titanic.html">Titanic</a></td>
<td>Survival of passengers on the Titanic</td></tr>
<tr><td style="width: 25%;"><a href="ToothGrowth.html">ToothGrowth</a></td>
<td>The Effect of Vitamin C on Tooth Growth in Guinea Pigs</td></tr>
<tr><td style="width: 25%;"><a href="treering.html">treering</a></td>
<td>Yearly Treering Data, -6000-1979</td></tr>
<tr><td style="width: 25%;"><a href="trees.html">trees</a></td>
<td>Diameter, Height and Volume for Black Cherry Trees</td></tr>
</table>
<h2><a id="U">-- U --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="UCBAdmissions.html">UCBAdmissions</a></td>
<td>Student Admissions at UC Berkeley</td></tr>
<tr><td style="width: 25%;"><a href="UKDriverDeaths.html">UKDriverDeaths</a></td>
<td>Road Casualties in Great Britain 1969-84</td></tr>
<tr><td style="width: 25%;"><a href="UKgas.html">UKgas</a></td>
<td>UK Quarterly Gas Consumption</td></tr>
<tr><td style="width: 25%;"><a href="UKLungDeaths.html">UKLungDeaths</a></td>
<td>Monthly Deaths from Lung Diseases in the UK</td></tr>
<tr><td style="width: 25%;"><a href="USAccDeaths.html">USAccDeaths</a></td>
<td>Accidental Deaths in the US 1973-1978</td></tr>
<tr><td style="width: 25%;"><a href="USArrests.html">USArrests</a></td>
<td>Violent Crime Rates by US State</td></tr>
<tr><td style="width: 25%;"><a href="eurodist.html">UScitiesD</a></td>
<td>Distances Between European Cities and Between US Cities</td></tr>
<tr><td style="width: 25%;"><a href="USJudgeRatings.html">USJudgeRatings</a></td>
<td>Lawyers' Ratings of State Judges in the US Superior Court</td></tr>
<tr><td style="width: 25%;"><a href="USPersonalExpenditure.html">USPersonalExpenditure</a></td>
<td>Personal Expenditure Data</td></tr>
<tr><td style="width: 25%;"><a href="uspop.html">uspop</a></td>
<td>Populations Recorded by the US Census</td></tr>
</table>
<h2><a id="V">-- V --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="VADeaths.html">VADeaths</a></td>
<td>Death Rates in Virginia (1940)</td></tr>
<tr><td style="width: 25%;"><a href="volcano.html">volcano</a></td>
<td>Topographic Information on Auckland's Maunga Whau Volcano</td></tr>
</table>
<h2><a id="W">-- W --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="warpbreaks.html">warpbreaks</a></td>
<td>The Number of Breaks in Yarn during Weaving</td></tr>
<tr><td style="width: 25%;"><a href="women.html">women</a></td>
<td>Average Heights and Weights for American Women</td></tr>
<tr><td style="width: 25%;"><a href="WorldPhones.html">WorldPhones</a></td>
<td>The World's Telephones</td></tr>
<tr><td style="width: 25%;"><a href="WWWusage.html">WWWusage</a></td>
<td>Internet Usage per Minute</td></tr>
</table>
</div></body></html>
@media screen {
.container {
padding-right: 10px;
padding-left: 10px;
margin-right: auto;
margin-left: auto;
max-width: 900px;
}
}
.rimage img { /* from knitr - for examples and demos */
width: 96%;
margin-left: 2%;
}
.katex { font-size: 1.1em; }
code {
color: inherit;
background: inherit;
}
body {
line-height: 1.4;
background: white;
color: black;
}
a:link {
background: white;
color: blue;
}
a:visited {
background: white;
color: rgb(50%, 0%, 50%);
}
h1 {
background: white;
color: rgb(55%, 55%, 55%);
font-family: monospace;
font-size: 1.4em; /* x-large; */
text-align: center;
}
h2 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
text-align: center;
}
h3 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
}
h4 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
font-size: 1.2em; /* large; */
}
h5 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
}
h6 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
}
img.toplogo {
width: 4em;
vertical-align: middle;
}
img.arrow {
width: 30px;
height: 30px;
border: 0;
}
span.acronym {
font-size: small;
}
span.env {
font-family: monospace;
}
span.file {
font-family: monospace;
}
span.option{
font-family: monospace;
}
span.pkg {
font-weight: bold;
}
span.samp{
font-family: monospace;
}
div.vignettes a:hover {
background: rgb(85%, 85%, 85%);
}
tr {
vertical-align: top;
}
span.rlang {
font-family: Courier New, Courier;
color: #666666;
}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/00Index.html","start":0,"end":16089},{"filename":"/R.css","start":16089,"end":17933}],"remote_package_size":17933}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,171 @@
### ----------- Show (almost) all named colors ---------------------
## 1) with traditional 'graphics' package:
showCols1 <- function(bg = "gray", cex = 0.75, srt = 30) {
m <- ceiling(sqrt(n <- length(cl <- colors())))
length(cl) <- m*m; cm <- matrix(cl, m)
##
require("graphics")
op <- par(mar=rep(0,4), ann=FALSE, bg = bg); on.exit(par(op))
plot(1:m,1:m, type="n", axes=FALSE)
text(col(cm), rev(row(cm)), cm, col = cl, cex=cex, srt=srt)
}
showCols1()
## 2) with 'grid' package:
showCols2 <- function(bg = "grey", cex = 0.75, rot = 30) {
m <- ceiling(sqrt(n <- length(cl <- colors())))
length(cl) <- m*m; cm <- matrix(cl, m)
##
require("grid")
grid.newpage(); vp <- viewport(width = .92, height = .92)
grid.rect(gp=gpar(fill=bg))
grid.text(cm, x = col(cm)/m, y = rev(row(cm))/m, rot = rot,
vp=vp, gp=gpar(cex = cex, col = cm))
}
showCols2()
showCols2(bg = "gray33")
###
##' @title Comparing Colors
##' @param col
##' @param nrow
##' @param ncol
##' @param txt.col
##' @return the grid layout, invisibly
##' @author Marius Hofert, originally
plotCol <- function(col, nrow=1, ncol=ceiling(length(col) / nrow),
txt.col="black") {
stopifnot(nrow >= 1, ncol >= 1)
if(length(col) > nrow*ncol)
warning("some colors will not be shown")
require(grid)
grid.newpage()
gl <- grid.layout(nrow, ncol)
pushViewport(viewport(layout=gl))
ic <- 1
for(i in 1:nrow) {
for(j in 1:ncol) {
pushViewport(viewport(layout.pos.row=i, layout.pos.col=j))
grid.rect(gp= gpar(fill=col[ic]))
grid.text(col[ic], gp=gpar(col=txt.col))
upViewport()
ic <- ic+1
}
}
upViewport()
invisible(gl)
}
## A Chocolate Bar of colors:
plotCol(c("#CC8C3C", paste0("chocolate", 2:4),
paste0("darkorange", c("",1:2)), paste0("darkgoldenrod", 1:2),
"orange", "orange1", "sandybrown", "tan1", "tan2"),
nrow=2)
##' Find close R colors() to a given color {original by Marius Hofert)
##' using Euclidean norm in (HSV / RGB / ...) color space
nearRcolor <- function(rgb, cSpace = c("hsv", "rgb255", "Luv", "Lab"),
dist = switch(cSpace, "hsv" = 0.10, "rgb255" = 30,
"Luv" = 15, "Lab" = 12))
{
if(is.character(rgb)) rgb <- col2rgb(rgb)
stopifnot(length(rgb <- as.vector(rgb)) == 3)
Rcol <- col2rgb(.cc <- colors())
uniqC <- !duplicated(t(Rcol)) # gray9 == grey9 (etc)
Rcol <- Rcol[, uniqC] ; .cc <- .cc[uniqC]
cSpace <- match.arg(cSpace)
convRGB2 <- function(Rgb, to)
t(convertColor(t(Rgb), from="sRGB", to=to, scale.in=255))
## the transformation, rgb{0..255} --> cSpace :
TransF <- switch(cSpace,
"rgb255" = identity,
"hsv" = rgb2hsv,
"Luv" = function(RGB) convRGB2(RGB, "Luv"),
"Lab" = function(RGB) convRGB2(RGB, "Lab"))
d <- sqrt(colSums((TransF(Rcol) - as.vector(TransF(rgb)))^2))
iS <- sort.list(d[near <- d <= dist])# sorted: closest first
setNames(.cc[near][iS], format(zapsmall(d[near][iS]), digits=3))
}
nearRcolor(col2rgb("tan2"), "rgb")
nearRcolor(col2rgb("tan2"), "hsv")
nearRcolor(col2rgb("tan2"), "Luv")
nearRcolor(col2rgb("tan2"), "Lab")
nearRcolor("#334455")
## Now, consider choosing a color by looking in the
## neighborhood of one you know :
plotCol(nearRcolor("deepskyblue", "rgb", dist=50))
plotCol(nearRcolor("deepskyblue", dist=.1))
plotCol(nearRcolor("tomato", "rgb", dist= 50), nrow=3)
plotCol(nearRcolor("tomato", "hsv", dist=.12), nrow=3)
plotCol(nearRcolor("tomato", "Luv", dist= 25), nrow=3)
plotCol(nearRcolor("tomato", "Lab", dist= 18), nrow=3)
### ------ hcl() explorations
hcl.wheel <-
function(chroma = 35, lums = 0:100, hues = 1:360, asp = 1,
p.cex = 0.6, do.label = FALSE, rev.lum = FALSE,
fixup = TRUE)
{
## Purpose: show chroma "sections" of hcl() color space; see ?hcl
## ----------------------------------------------------------------------
## Arguments: chroma: can be vector -> multiple plots are done,
## lums, hues, fixup : all corresponding to hcl()'s args
## rev.lum: logical indicating if luminance
## should go from outer to inner
## ----------------------------------------------------------------------
## Author: Martin Maechler, Date: 24 Jun 2005
require("graphics")
stopifnot(is.numeric(lums), lums >= 0, lums <= 100,
is.numeric(hues), hues >= 0, hues <= 360,
is.numeric(chroma), chroma >= 0, (nch <- length(chroma)) >= 1)
if(is.unsorted(hues)) hues <- sort(hues)
if(nch > 1) {
op <- par(mfrow= n2mfrow(nch), mar = c(0,0,0,0), xpd = TRUE)
on.exit(par(op))
}
for(i.c in 1:nch) {
plot(-1:1,-1:1, type="n", axes = FALSE, xlab="",ylab="", asp = asp)
## main = sprintf("hcl(h = <angle>, c = %g)", chroma[i.c]),
text(0.4, 0.99, paste("chroma =", format(chroma[i.c])),
adj = 0, font = 4)
l.s <- (if(rev.lum) rev(lums) else lums) / max(lums) # <= 1
for(ang in hues) { # could do all this using outer() instead of for()...
a. <- ang * pi/180
z.a <- exp(1i * a.)
cols <- hcl(ang, c = chroma[i.c], l = lums, fixup = fixup)
points(l.s * z.a, pch = 16, col = cols, cex = p.cex)
##if(do."text") : draw the 0,45,90,... angle "lines"
if(do.label)
text(z.a*1.05, labels = ang, col = cols[length(cols)/2],
srt = ang)
}
if(!fixup) ## show the outline
lines(exp(1i * hues * pi/180))
}
invisible()
}
## and now a few interesting calls :
hcl.wheel() # and watch it redraw when you fiddle with the graphic window
hcl.wheel(rev.lum= TRUE) # ditto
hcl.wheel(do.label = TRUE) # ditto
## Now watch:
hcl.wheel(chroma = c(25,35,45,55))
hcl.wheel(chroma = seq(10, 90, by = 10), p.cex = 0.4)
hcl.wheel(chroma = seq(10, 90, by = 10), p.cex = 0.3, fixup = FALSE)
hcl.wheel(chroma = seq(10, 90, by = 10), p.cex = 0.3, rev.lum = TRUE)
if(dev.interactive()) # new "graphics window" -- to compare with previous :
dev.new()
hcl.wheel(chroma = seq(10, 90, by = 10), p.cex = 0.3, rev.lum = TRUE, fixup=FALSE)

View file

@ -0,0 +1 @@
{"files":[{"filename":"/colors.R","start":0,"end":3766},{"filename":"/hclColors.R","start":3766,"end":6376}],"remote_package_size":6376}

View file

@ -0,0 +1,696 @@
/StandardEncoding [
% 0000
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
% 0040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quoteright
/parenleft /parenright /asterisk /plus /comma /hyphen /period /slash
/zero /one /two /three /four /five /six /seven
/eight /nine /colon /semicolon /less /equal /greater /question
% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
% 0140
/quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef
% 0200
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
% 0240
/.notdef /exclamdown /cent /sterling /fraction /yen /florin /section
/currency /quotesingle /quotedblleft /guillemotleft /guilsinglleft /guilsinglright /fi /fl
/.notdef /endash /dagger /daggerdbl /periodcentered /.notdef /paragraph /bullet
/quotesinglbase /quotedblbase /quotedblright /guillemotright /ellipsis /perthousand /.notdef /questiondown
% 0300
/.notdef /grave /acute /circumflex /tilde /macron /breve /dotaccent
/dieresis /.notdef /ring /cedilla /.notdef /hungarumlaut /ogonek /caron
/emdash /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /AE /.notdef /ordfeminine /.notdef /.notdef /.notdef /.notdef
/Lslash /Oslash /OE /ordmasculine /.notdef /.notdef /.notdef /.notdef
/.notdef /ae /.notdef /.notdef /.notdef /dotlessi /.notdef /.notdef
/lslash /oslash /oe /germandbls /.notdef /.notdef /.notdef /.notdef
]
/SymbolEncoding [
% 0000
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
% 0040
/space /exclam /universal /numbersign /existential /percent /ampersand /suchthat
/parenleft /parenright /asteriskmath /plus /comma /minus /period /slash
/zero /one /two /three /four /five /six /seven
/eight /nine /colon /semicolon /less /equal /greater /question
% 0100
/congruent /Alpha /Beta /Chi /Delta /Epsilon /Phi /Gamma
/Eta /Iota /theta1 /Kappa /Lambda /Mu /Nu /Omicron
/Pi /Theta /Rho /Sigma /Tau /Upsilon /sigma1 /Omega
/Xi /Psi /Zeta /bracketleft /therefore /bracketright /perpendicular /underscore
% 0140
/radicalex /alpha /beta /chi /delta /epsilon /phi /gamma
/eta /iota /phi1 /kappa /lambda /mu /nu /omicron
/pi /theta /rho /sigma /tau /upsilon /omega1 /omega
/xi /psi /zeta /braceleft /bar /braceright /similar /.notdef
% 0200
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
% 0240
/Euro /Upsilon1 /minute /lessequal /fraction /infinity /florin /club
/diamond /heart /spade /arrowboth /arrowleft /arrowup /arrowright /arrowdown
/degree /plusminus /second /greaterequal /multiply /proportional /partialdiff /bullet
/divide /notequal /equivalence /approxequal /ellipsis /arrowvertex /arrowhorizex /carriagereturn
% 0300
/aleph /Ifraktur /Rfraktur /weierstrass /circlemultiply /circleplus /emptyset /intersection
/union /propersuperset /reflexsuperset /notsubset /propersubset /reflexsubset /element /notelement
/angle /gradient /registerserif /copyrightserif /trademarkserif /product /radical /dotmath
/logicalnot /logicaland /logicalor /arrowdblboth /arrowdblleft /arrowdblup /arrowdblright /arrowdbldown
% 0340
/lozenge /angleleft /registersans /copyrightsans /trademarksans /summation /parenlefttp /parenleftex
/parenleftbt /bracketlefttp /bracketleftex /bracketleftbt /bracelefttp /braceleftmid /braceleftbt /braceex
/.notdef /angleright /integral /integraltp /integralex /integralbt /parenrighttp /parenrightex
/parenrightbt /bracketrighttp /bracketrightex /bracketrightbt /bracerighttp /bracerightmid /bracerightbt /.notdef
]
%% CP1250 This should be a postscript fragment of an array of length exactly 256
/CP1250Encoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quotesingle
/parenleft /parenright /asterisk /plus /comma /minus /period /slash
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V /W
/X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
/grave /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t /u /v /w
/x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/Euro /.notdef /quotesinglbase /.notdef /quotedblbase /ellipsis /dagger /daggerdbl
/.notdef /perthousand /Scaron /guilsinglleft /Sacute /Tcaron /Zcaron /Zacute
/.notdef /quoteleft /quoteright /quotedblleft /quotedblright /bullet /endash /emdash
/.notdef /trademark /scaron /guilsinglright /sacute /tcaron /zcaron /zacute
%% 0240
/space /caron /breve /Lslash /currency /Aogonek /brokenbar /section
/dieresis /copyright /Scedilla /guillemotleft /logicalnot /hyphen /registered /Zdotaccent
/degree /plusminus /ogonek /lslash /acute /mu /paragraph /periodcentered
/cedilla /aogonek /scedilla /guillemotright /Lcaron /hungarumlaut /lcaron /zdotaccent
%% 0300
/Racute /Aacute /Acircumflex /Abreve /Adieresis /Lacute /Cacute /Ccedilla
/Ccaron /Eacute /Eogonek /Edieresis /Ecaron /Iacute /Icircumflex /Dcaron
/Dcroat /Nacute /Ncaron /Oacute /Ocircumflex /Ohungarumlaut /Odieresis /multiply
/Rcaron /Uring /Uacute /Uhungarumlaut /Udieresis /Yacute /Tcommaaccent /germandbls
% 0340
/racute /aacute /acircumflex /abreve /adieresis /lacute /cacute /ccedilla
/ccaron /eacute /eogonek /edieresis /ecaron /iacute /icircumflex /dcaron
/dcroat /nacute /ncaron /oacute /ocircumflex /ohungarumlaut /odieresis /divide
/rcaron /uring /uacute /uhungarumlaut /udieresis /yacute /tcommaaccent /dotaccent
]
%% CP1251 This should be a postscript fragment of an array of length exactly 256
/CP1251Encoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quotesingle
/parenleft /parenright /asterisk /plus /comma /minus /period /slash
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V /W
/X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
/grave /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t /u /v /w
/x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/afii10051 /afii10052 /quotesinglbase /afii10100 /quotedblbase /ellipsis /dagger /daggerdbl
/Euro /perthousand /afii10058 /guilsinglleft /afii10059 /afii10061 /afii10060 /afii10145
%% 0220
/afii10099 /quoteleft /quoteright /quotedblleft /quotedblright /bullet /endash /emdash
/.notdef /trademark /afii10106 /guilsinglright /afii10107 /afii10109 /afii10108 /afii10193
%% 0240
/space /afii10062 /afii10110 /afii10057 /currency /afii10050 /brokenbar /section
/afii10023 /copyright /afii10047 /guillemotleft /logicalnot /hyphen /registered /afii10056
/degree /plusminus /afii10055 /afii10103 /afii10098 /mu /paragraph /periodcentered
/afii10071 /afii61352 /afii10101 /guillemotright /afii10105 /afii10054 /afii10102 /afii10104
%% 0300
/afii10017 /afii10018 /afii10019 /afii10020 /afii10021 /afii10022 /afii10024 /afii10025
/afii10026 /afii10027 /afii10028 /afii10029 /afii10030 /afii10031 /afii10032 /afii10033
/afii10034 /afii10035 /afii10036 /afii10037 /afii10038 /afii10039 /afii10040 /afii10041
/afii10042 /afii10043 /afii10044 /afii10045 /afii10046 /afii10047 /afii10048 /afii10049
%% 0340
/afii10065 /afii10066 /afii10067 /afii10068 /afii10069 /afii10070 /afii10072 /afii10073
/afii10074 /afii10075 /afii10076 /afii10077 /afii10078 /afii10079 /afii10080 /afii10081
/afii10082 /afii10083 /afii10084 /afii10085 /afii10086 /afii10087 /afii10088 /afii10089
/afii10090 /afii10091 /afii10092 /afii10093 /afii10094 /afii10095 /afii10096 /afii10097
]
%% CP1253 This should be a postscript fragment of an array of length exactly 256
/CP1253Encoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quotesingle
/parenleft /parenright /asterisk /plus /comma /minus /period /slash
%% 060
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
%% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
%% 0140
/grave /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/Euro /.notdef /quotesinglbase /florin /quotedblbase /ellipsis /dagger /daggerdbl
/.notdef /perthousand /.notdef /guilsinglleft /.notdef /.notdef /.notdef /.notdef
/.notdef /quoteleft /quoteright /quotedblleft /quotedblright /bullet /endash /emdash
/.notdef /trademark /.notdef /guilsinglright /.notdef /.notdef /.notdef /.notdef
%% 0240
/space /dialytikatonos /Alphatonos /sterling /currency /yen /brokenbar /section
/dieresis /copyright /.notdef /guillemotleft /logicalnot /hyphen /registered /afii00208
/degree /plusminus /twosuperior /threesuperior /tonos /mu /paragraph /periodcentered
/Epsilontonos /Etatonos /Iotatonos /guillemotright /Omicrontonos /onehalf /Upsilontonos /Omegatonos
/iotadieresistonos /Alpha /Beta /Gamma /Deltagreek /Epsilon /Zeta /Eta
/Theta /Iota /Kappa /Lambda /Mu /Nu /Xi /Omicron
/Pi /Rho /.notdef /Sigma /Tau /Upsilon /Phi /Chi
/Psi /Omegagreek /Iotadieresis /Upsilondieresis /alphatonos /epsilontonos /etatonos /iotatonos
/upsilondieresistonos /alpha /beta /gamma /delta /epsilon /zeta /eta
/theta /iota /kappa /lambda /mugreek /nu /xi /omicron
/pi /rho /sigma1 /sigma /tau /upsilon /phi /chi
/psi /omega /iotadieresis /upsilondieresis /omicrontonos /upsilontonos /omegatonos /.notdef
]
%% CP1257 This should be a postscript fragment of an array of length exactly 256
/CP1257Encoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quotesingle
/parenleft /parenright /asterisk /plus /comma /minus /period /slash
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V /W
/X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
/grave /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t /u /v /w
/x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/Euro /.notdef /quotesinglbase /.notdef /quotedblbase /ellipsis /dagger /daggerdbl
/.notdef /perthousand /.notdef /guilsinglleft /.notdef /dieresis /caron /cedilla
/.notdef /quoteleft /quoteright /quotedblleft /quotedblright /bullet /endash /emdash
/.notdef /trademark /.notdef /guilsinglright /.notdef /macron /ogonek /.notdef
%% 0240
/space /.notdef /cent /sterling /currency /.notdef /brokenbar /section
/Oslash /copyright /Rcommaaccent /guillemotleft /logicalnot /hyphen /registered /AE
/degree /plusminus /twosuperior /threesuperior /acute /mu /paragraph /periodcentered
/oslash /onesuperior /rcommaaccent /guillemotright /onequarter /onehalf /threequarters /ae
%% 0300
/Aogonek /Iogonek /Amacron /Cacute /Adieresis /Aring /Eogonek /Emacron
/Ccaron /Eacute /Zacute /Edotaccent /Gcommaaccent /Kcommaaccent /Imacron /Lcommaaccent
/Scaron /Nacute /Ncommaaccent /Oacute /Omacron /Otilde /Odieresis /multiply
/Uogonek /Lslash /Sacute /Umacron /Udieresis /Zdotaccent /Zcaron /germandbls
%% 0340
/aogonek /iogonek /amacron /cacute /adieresis /aring /eogonek /emacron
/ccaron /eacute /zacute /edotaccent /gcommaaccent /kcommaaccent /imacron /lcommaaccent
/scaron /nacute /ncommaaccent /oacute /omacron /otilde /odieresis /divide
/uogonek /lslash /sacute /umacron /udieresis /zdotaccent /zcaron /dotaccent
]
%% ISO8859-5 This should be a postscript fragment of an array of length exactly 256
/ISOLatin5Encoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand
/quoteright /parenleft /parenright /asterisk /plus /comma /minus /period /slash
%% 060
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
%% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
%% 0140
/quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 0220
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 0240
/space /afii10023 /afii10051 /afii10052 /afii10053 /afii10054 /afii10055 /afii10056
/afii10057 /afii10058 /afii10059 /afii10060 /afii10061 /hyphen /afii10062 /afii10145
/afii10017 /afii10018 /afii10019 /afii10020 /afii10021 /afii10022 /afii10024 /afii10025
/afii10026 /afii10027 /afii10028 /afii10029 /afii10030 /afii10031 /afii10032 /afii10033
%% 0300
/afii10034 /afii10035 /afii10036 /afii10037 /afii10038 /afii10039 /afii10040 /afii10041
/afii10042 /afii10043 /afii10044 /afii10045 /afii10046 /afii10047 /afii10048 /afii10049
/afii10065 /afii10066 /afii10067 /afii10068 /afii10069 /afii10070 /afii10072 /afii10073
/afii10074 /afii10075 /afii10076 /afii10077 /afii10078 /afii10079 /afii10080 /afii10081
%% 0340
/afii10082 /afii10083 /afii10084 /afii10085 /afii10086 /afii10087 /afii10088 /afii10089
/afii10090 /afii10091 /afii10092 /afii10093 /afii10094 /afii10095 /afii10096 /afii10097
/afii61352 /afii10071 /afii10099 /afii10100 /afii10101 /afii10102 /afii10103 /afii10104
/afii10105 /afii10106 /afii10107 /afii10108 /afii10109 /section /afii10110 /afii10193
]
%% ISO8859-7 (2003) This should be a postscript fragment of an array of length exactly 256
/ISOGreekEncoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand
/quoteright /parenleft /parenright /asterisk /plus /comma /minus /period /slash
%% 060
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
%% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
%% 0140
/quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 0240 A5 is Drachma, not in Adobe list.
/space /quoteleft /quoteright /sterling /Euro /.notdef /brokenbar /section
/dieresis /copyright /ordfeminine /guillemotleft /logicalnot /hyphen /registered /afii00208
/degree /plusminus /twosuperior /threesuperior /tonos /dieresistonos /Alphatonos /periodcentered
/Epsilontonos /Etatonos /Iotatonos /guillemotright /Omicrontonos /onehalf /Upsilontonos /Omegatonos
/iotadieresistonos /Alpha /Beta /Gamma /Deltagreek /Epsilon /Zeta /Eta
/Theta /Iota /Kappa /Lambda /Mu /Nu /Xi /Omicron
/Pi /Rho /.notdef /Sigma /Tau /Upsilon /Phi /Chi
/Psi /Omegagreek /Iotadieresis /Upsilondieresis /alphatonos /epsilontonos /etatonos /iotatonos
%% 0340
/upsilondieresistonos /alpha /beta /gamma /delta /epsilon /zeta /eta
/theta /iota /kappa /lambda /mugreek /nu /xi /omicron
/pi /rho /sigma1 /sigma /tau /upsilon /phi /chi
/psi /omega /iotadieresis /upsilondieresis /omicrontonos /upsilontonos /omegatonos /.notdef
]
%% This should be a postscript fragment of an array of length exactly 256
/ISOLatin1Encoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand
/quoteright /parenleft /parenright /asterisk /plus /comma /minus /period /slash
%% 060
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
%% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
%% 0140
/quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 0220
/dotlessi /grave /acute /circumflex /tilde /macron /breve /dotaccent
/dieresis /.notdef /ring /cedilla /.notdef /hungarumlaut /ogonek /caron
%% 0240
/space /exclamdown /cent /sterling /currency /yen /brokenbar /section
/dieresis /copyright /ordfeminine /guillemotleft /logicalnot /hyphen /registered /macron
/degree /plusminus /twosuperior /threesuperior /acute /mu /paragraph /periodcentered
/cedilla /onesuperior /ordmasculine /guillemotright /onequarter /onehalf /threequarters /questiondown
%% 0300
/Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla
/Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis
/Eth /Ntilde /Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply
/Oslash /Ugrave /Uacute /Ucircumflex /Udieresis /Yacute /Thorn /germandbls
/agrave /aacute /acircumflex /atilde /adieresis /aring /ae /ccedilla
/egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis
/eth /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide
/oslash /ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis
]
%% This should be a postscript fragment of an array of length exactly 256
/ISOLatin2Encoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand
/quoteright /parenleft /parenright /asterisk /plus /comma /minus /period /slash
%% 060
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
%% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
%% 0140
/quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 0220
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 0240
/space /Aogonek /breve /Lslash /currency /Lcaron /Sacute /section
/dieresis /Scaron /Scedilla /Tcaron /Zacute /hyphen /Zcaron /Zdotaccent
/degree /aogonek /ogonek /lslash /acute /lcaron /sacute /caron
/cedilla /scaron /scedilla /tcaron /zacute /hungarumlaut /zcaron /zdotaccent
%% 0300
/Racute /Aacute /Acircumflex /Abreve /Adieresis /Lacute /Cacute /Ccedilla
/Ccaron /Eacute /Eogonek /Edieresis /Ecaron /Iacute /Icircumflex /Dcaron
/Dcroat /Nacute /Ncaron /Oacute /Ocircumflex /Ohungarumlaut /Odieresis /multiply
/Rcaron /Uring /Uacute /Uhungarumlaut /Udieresis /Yacute /Tcommaaccent /germandbls
% 0340
/racute /aacute /acircumflex /abreve /adieresis /lacute /cacute /ccedilla
/ccaron /eacute /eogonek /edieresis /ecaron /iacute /icircumflex /dcaron
/dcroat /nacute /ncaron /oacute /ocircumflex /ohungarumlaut /odieresis /divide
/rcaron /uring /uacute /uhungarumlaut /udieresis /yacute /tcommaaccent /dotaccent
]
%% ISO8859-13 This should be a postscript fragment of an array of length exactly 256
/ISOLatin7Encoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand
/quoteright /parenleft /parenright /asterisk /plus /comma /minus /period /slash
%% 060
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
%% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
%% 0140
/quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 0220
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 0240
/space /quotedblright /cent /sterling /currency /quotedblbase /brokenbar /section
/Oslash /copyright /Rcommaaccent /guillemotleft /logicalnot /hyphen /registered /AE
/degree /plusminus /twosuperior /threesuperior /quotedblleft /mu /paragraph /periodcentered
/oslash /onesuperior /rcommaaccent /guillemotright /onequarter /onehalf /threequarters /ae
%% 0300
/Aogonek /Iogonek /Amacron /Cacute /Adieresis /Aring /Eogonek /Emacron
/Ccaron /Eacute /Zacute /Edotaccent /Gcommaaccent /Kcommaaccent /Imacron /Lcommaaccent
/Scaron /Nacute /Ncommaaccent /Oacute /Omacron /Otilde /Odieresis /multiply
/Uogonek /Lslash /Sacute /Umacron /Udieresis /Zdotaccent /Zcaron /germandbls
%% 0340
/aogonek /iogonek /amacron /cacute /adieresis /aring /eogonek /emacron
/ccaron /eacute /zacute /edotaccent /gcommaaccent /kcommaaccent /imacron /lcommaaccent
/scaron /nacute /ncommaaccent /oacute /omacron /otilde /odieresis /divide
/uogonek /lslash /sacute /umacron /udieresis /zdotaccent /zcaron /quoteright
]
%% ISO-8859-15 (draft?) Has Euro in place of currency, scaron, zcaon, oe ...
/ISOLatin9Encoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand
/quoteright /parenleft /parenright /asterisk /plus /comma /minus /period /slash
%% 060
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
%% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
%% 0140
/quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 0220
/dotlessi /grave /acute /circumflex /tilde /macron /breve /dotaccent
/dieresis /.notdef /ring /cedilla /.notdef /hungarumlaut /ogonek /caron
%% 0240
/space /exclamdown /cent /sterling /Euro /yen /Scaron /section
/scaron /copyright /ordfeminine /guillemotleft /logicalnot /hyphen /registered /macron
/degree /plusminus /twosuperior /threesuperior /Zcaron /mu /paragraph /periodcentered
/zcaron /onesuperior /ordmasculine /guillemotright /OE /oe /Ydieresis /questiondown
%% 0300
/Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla
/Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis
/Eth /Ntilde /Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply
/Oslash /Ugrave /Uacute /Ucircumflex /Udieresis /Yacute /Thorn /germandbls
/agrave /aacute /acircumflex /atilde /adieresis /aring /ae /ccedilla
/egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis
/eth /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide
/oslash /ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis
]
%% KOI8-R This should be a postscript fragment of an array of length exactly 256
/KOI8REncoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /dagger /ddagger
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand
/quoteright /parenleft /parenright /asterisk /plus /comma /minus /period /slash
%% 060
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
%% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
%% 0140
/quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 0220
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /space /.notdef /degree /twosuperior /periodcentered /divide
%% 0240
/.notdef /.notdef /.notdef /afii10071 /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /afii10023 /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /copyright
%% 0300
/afii10096 /afii10065 /afii10066 /afii10088 /afii10069 /afii10070 /afii10086 /afii10068
/afii10087 /afii10074 /afii10075 /afii10076 /afii10077 /afii10078 /afii10079 /afii10080
/afii10081 /afii10097 /afii10082 /afii10083 /afii10084 /afii10085 /afii10072 /afii10067
/afii10094 /afii10093 /afii10073 /afii10090 /afii10095 /afii10091 /afii10089 /afii10092
/afii10048 /afii10017 /afii10018 /afii10040 /afii10021 /afii10022 /afii10038 /afii10020
/afii10039 /afii10026 /afii10027 /afii10028 /afii10029 /afii10030 /afii10031 /afii10032
/afii10033 /afii10049 /afii10034 /afii10035 /afii10036 /afii10037 /afii10024 /afii10019
/afii10046 /afii10045 /afii10025 /afii10042 /afii10047 /afii10043 /afii10041 /afii10044
]
%% KOI8-U This should be a postscript fragment of an array of length exactly 256
/KOI8UEncoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /dagger /ddagger
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand
/quoteright /parenleft /parenright /asterisk /plus /comma /minus /period /slash
%% 060
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
%% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
%% 0140
/quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /afii10050 /.notdef /.notdef
%% 0220
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /space /.notdef /degree /twosuperior /periodcentered /divide
%% 0240
/.notdef /.notdef /.notdef /afii10071 /afii10101 /.notdef /afii10103 /afii10104
/.notdef /.notdef /.notdef /.notdef /.notdef /afii10098 /.notdef /.notdef
/.notdef /.notdef /.notdef /afii10023 /afii10053 /.notdef /afii10055 /afii10056
/.notdef /.notdef /.notdef /.notdef /.notdef /afii10050 /.notdef /copyright
%% 0300
/afii10096 /afii10065 /afii10066 /afii10088 /afii10069 /afii10070 /afii10086 /afii10068
/afii10087 /afii10074 /afii10075 /afii10076 /afii10077 /afii10078 /afii10079 /afii10080
/afii10081 /afii10097 /afii10082 /afii10083 /afii10084 /afii10085 /afii10072 /afii10067
/afii10094 /afii10093 /afii10073 /afii10090 /afii10095 /afii10091 /afii10089 /afii10092
/afii10048 /afii10017 /afii10018 /afii10040 /afii10021 /afii10022 /afii10038 /afii10020
/afii10039 /afii10026 /afii10027 /afii10028 /afii10029 /afii10030 /afii10031 /afii10032
/afii10033 /afii10049 /afii10034 /afii10035 /afii10036 /afii10037 /afii10024 /afii10019
/afii10046 /afii10045 /afii10025 /afii10042 /afii10047 /afii10043 /afii10041 /afii10044
]
%% As defined by PDF 1.3, but with /currency replaced by /Euro as per Apple
/MacRomanEncoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand
/quoteright /parenleft /parenright /asterisk /plus /comma /hyphen /period /slash
%% 060
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
%% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
%% 0140
/grave /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/Adieresis /Aring /Ccedilla /Eacute /Ntilde /Odieresis /Udieresis /aacute
/agrave /acircumflex /adieresis /atilde /aring /ccedilla /eacute /egrave
%% 0220
/ecircumflex /edieresis /iacute /igrave /icircumflex /idieresis /ntilde /oacute
/ograve /ocircumflex /odieresis /otilde /uacute /ugrave /ucircumflex /udieresis
%% 0240
/dagger /degree /cent /sterling /section /bullet /paragraph /germandbls
/registered /copyright /trademark /acute /dieresis /.notdef /AE /Oslash
/.notdef /plusminus /.notdef /.notdef /yen /mu /.notdef /.notdef
/.notdef /.notdef /.notdef /ordfeminine /ordmasculine /.notdef /ae /oslash
%% 0300
/questiondown /exclamdown /logicalnot /.notdef /florin /.notdef /.notdef /guillemotleft
/guillemotright /ellipsis /space /Agrave /Atilde /Otilde /OE /oe
/endash /emdash /quotedblleft /quotedblright /quoteleft /quoteright /divide /.notdef
/ydieresis /Ydieresis /fraction /Euro /guilsinglleft /guilsinglright /fi /fl
/daggerdbl /periodcentered /quotesinglbase /quotedblbase /perthousand /Acircumflex /Ecircumflex /Aacute
/Edieresis /Egrave /Iacute /Icircumflex /Idieresis /Igrave /Oacute /Ocircumflex
/.notdef /Ograve /Uacute /Ucircumflex /Ugrave /dotlessi /circumflex /tilde
/macron /breve /dotaccent /ring /cedilla /hungarumlaut /ogonek /caron
]
%% As used by PDF 1.3
/PDFDocEncoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/breve /caron /circumflex /dotaccent /hungarumlaut /ogonek /ring /tilde
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand
/quoteright /parenleft /parenright /asterisk /plus /comma /hyphen /period /slash
%% 060
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
%% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
%% 0140
/grave /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/bullet /dagger /daggerdbl /ellipsis /emdash /endash /florin /fraction
/guilsinglleft /guilsinglright /minus /perthousand /quotedblbase /quotedblleft /quotedblright /quoteleft
%% 0220
/quoteright /quotesinglbase /trademark /fi /fl /Lslash /OE /Scaron
/Ydieresis /Zcaron /dotlessi /lslash /oe /scaron /zcaron /.notdef
%% 0240
/Euro /exclamdown /cent /sterling /currency /yen /brokenbar /section
/dieresis /copyright /ordfeminine /guillemotleft /logicalnot /.notdef /registered /macron
/degree /plusminus /twosuperior /threesuperior /acute /mu /paragraph /periodcentered
/cedilla /onesuperior /ordmasculine /guillemotright /onequarter /onehalf /threequarters /questiondown
%% 0300
/Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla
/Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis
/Eth /Ntilde /Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply
/Oslash /Ugrave /Uacute /Ucircumflex /Udieresis /Yacute /Thorn /germandbls
/agrave /aacute /acircumflex /atilde /adieresis /aring /ae /ccedilla
/egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis
/eth /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide
/oslash /ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis
]
%% This should be a postscript fragment of an array of length exactly 256
/TeXtextEncoding [
/minus /Delta /Theta /Lambda /Xi /Pi /Sigma /Upsilon
/Phi /Psi /Omega /ff /fi /fl /ffi /ffl
/dotlessi /dotlessj /grave /acute /caron /breve /macron /ring
/cedilla /germandbls /ae /oe /oslash /AE /OE /Oslash
%% 040
/space /exclam /quotedblright /numbersign /dollar /percent /ampersand
/quoteright /parenleft /parenright /asterisk /plus /comma /minus /period /slash
%% 060
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /exclamdown /equal /questiondown /question
%% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /quotedblleft /bracketright /circumflex /dotaccent
%% 0140
/quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /endash /emdash /hungarumlaut /tilde /dieresis
%% 0200
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 0220
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 0240
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 0300
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
]
%% As used by PDF 1.3, but with Euro at 128, and bullet only at 149
%% as that is what Windows actually uses.
/WinAnsiEncoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
%% 040
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand
/quoteright /parenleft /parenright /asterisk /plus /comma /hyphen /period /slash
%% 060
/zero /one /two /three /four /five /six /seven /eight /nine
/colon /semicolon /less /equal /greater /question
%% 0100
/at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V
/W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
%% 0140
/grave /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t
/u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef
%% 0200
/Euro /.notdef /quotesinglbase /florin /quotedblbase /ellipsis /dagger /daggerdbl
/circumflex /perthousand /Scaron /guilsinglleft /OE /.notdef /Zcaron /.notdef
%% 0220
/.notdef /quoteleft /quoteright /quotedblleft /quotedblright /bullet /endash /emdash
/tilde /trademark /scaron /guilsinglright /oe /.notdef /zcaron /Ydieresis
%% 0240
/space /exclamdown /cent /sterling /currency /yen /brokenbar /section
/dieresis /copyright /ordfeminine /guillemotleft /logicalnot /hyphen /registered /macron
/degree /plusminus /twosuperior /threesuperior /acute /mu /paragraph /periodcentered
/cedilla /onesuperior /ordmasculine /guillemotright /onequarter /onehalf /threequarters /questiondown
%% 0300
/Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla
/Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis
/Eth /Ntilde /Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply
/Oslash /Ugrave /Uacute /Ucircumflex /Udieresis /Yacute /Thorn /germandbls
/agrave /aacute /acircumflex /atilde /adieresis /aring /ae /ccedilla
/egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis
/eth /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide
/oslash /ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis
]

View file

@ -0,0 +1 @@
{"files":[{"filename":"/AdobeStd.enc","start":0,"end":2094},{"filename":"/AdobeSym.enc","start":2094,"end":4608},{"filename":"/CP1250.enc","start":4608,"end":6832},{"filename":"/CP1251.enc","start":6832,"end":9221},{"filename":"/CP1253.enc","start":9221,"end":11406},{"filename":"/CP1257.enc","start":11406,"end":13653},{"filename":"/Cyrillic.enc","start":13653,"end":16002},{"filename":"/Greek.enc","start":16002,"end":18214},{"filename":"/ISOLatin1.enc","start":18214,"end":20427},{"filename":"/ISOLatin2.enc","start":20427,"end":22614},{"filename":"/ISOLatin7.enc","start":22614,"end":24886},{"filename":"/ISOLatin9.enc","start":24886,"end":27082},{"filename":"/KOI8-R.enc","start":27082,"end":29372},{"filename":"/KOI8-U.enc","start":29372,"end":31680},{"filename":"/MacRoman.enc","start":31680,"end":33942},{"filename":"/PDFDoc.enc","start":33942,"end":36149},{"filename":"/TeXtext.enc","start":36149,"end":38240},{"filename":"/WinAnsi.enc","start":38240,"end":40551}],"remote_package_size":40551}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/Montserrat/static/Montserrat-BoldItalic.ttf","start":0,"end":202492},{"filename":"/Montserrat/static/Montserrat-Medium.ttf","start":202492,"end":400596},{"filename":"/Roboto/LICENSE.txt","start":400596,"end":412156},{"filename":"/Roboto/Roboto-Medium.ttf","start":412156,"end":580800}],"remote_package_size":580800}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/AnIndex","start":0,"end":3983},{"filename":"/aliases.rds","start":3983,"end":5596},{"filename":"/grDevices.rdb","start":5596,"end":404447},{"filename":"/grDevices.rdx","start":404447,"end":406221},{"filename":"/paths.rds","start":406221,"end":406973}],"remote_package_size":406973}

View file

@ -0,0 +1,650 @@
<!DOCTYPE html>
<html>
<head><title>R: The R Graphics Devices and Support for Colours and Fonts</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body><div class="container">
<h1> The R Graphics Devices and Support for Colours and Fonts
<img class="toplogo" src="../../../doc/html/Rlogo.svg" alt="[R logo]" />
</h1>
<hr/>
<div style="text-align: center;">
<a href="../../../doc/html/packages.html"><img class="arrow" src="../../../doc/html/left.jpg" alt="[Up]" /></a>
<a href="../../../doc/html/index.html"><img class="arrow" src="../../../doc/html/up.jpg" alt="[Top]" /></a>
</div><h2>Documentation for package &lsquo;grDevices&rsquo; version 4.3.0</h2>
<ul><li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li>
<li><a href="../demo">Code demos</a>. Use <a href="../../utils/help/demo">demo()</a> to run them.</li>
</ul>
<h2>Help Pages</h2>
<p style="text-align: center;">
<a href="# "> </a>
<a href="#A">A</a>
<a href="#B">B</a>
<a href="#C">C</a>
<a href="#D">D</a>
<a href="#E">E</a>
<a href="#F">F</a>
<a href="#G">G</a>
<a href="#H">H</a>
<a href="#I">I</a>
<a href="#J">J</a>
<a href="#M">M</a>
<a href="#N">N</a>
<a href="#O">O</a>
<a href="#P">P</a>
<a href="#Q">Q</a>
<a href="#R">R</a>
<a href="#S">S</a>
<a href="#T">T</a>
<a href="#U">U</a>
<a href="#W">W</a>
<a href="#X">X</a>
<a href="#misc">misc</a>
</p>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="grDevices-package.html">grDevices-package</a></td>
<td>The R Graphics Devices and Support for Colours and Fonts</td></tr>
</table>
<h2><a id="A">-- A --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="adjustcolor.html">adjustcolor</a></td>
<td>Adjust Colors in One or More Directions Conveniently.</td></tr>
<tr><td style="width: 25%;"><a href="as.graphicsAnnot.html">as.graphicsAnnot</a></td>
<td>Coerce an Object for Graphics Annotation</td></tr>
<tr><td style="width: 25%;"><a href="as.raster.html">as.raster</a></td>
<td>Create a Raster Object</td></tr>
<tr><td style="width: 25%;"><a href="as.raster.html">as.raster.array</a></td>
<td>Create a Raster Object</td></tr>
<tr><td style="width: 25%;"><a href="as.raster.html">as.raster.character</a></td>
<td>Create a Raster Object</td></tr>
<tr><td style="width: 25%;"><a href="as.raster.html">as.raster.logical</a></td>
<td>Create a Raster Object</td></tr>
<tr><td style="width: 25%;"><a href="as.raster.html">as.raster.matrix</a></td>
<td>Create a Raster Object</td></tr>
<tr><td style="width: 25%;"><a href="as.raster.html">as.raster.numeric</a></td>
<td>Create a Raster Object</td></tr>
<tr><td style="width: 25%;"><a href="as.raster.html">as.raster.raw</a></td>
<td>Create a Raster Object</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">atop</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="axisTicks.html">axisTicks</a></td>
<td>Compute Pretty Axis Tick Scales</td></tr>
</table>
<h2><a id="B">-- B --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="plotmath.html">bar</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">bgroup</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="dev2bitmap.html">bitmap</a></td>
<td>Graphics Device for Bitmap Files via Ghostscript</td></tr>
<tr><td style="width: 25%;"><a href="densCols.html">blues9</a></td>
<td>Colors for Smooth Density Plots</td></tr>
<tr><td style="width: 25%;"><a href="png.html">bmp</a></td>
<td>BMP, JPEG, PNG and TIFF graphics devices</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">bold</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">bolditalic</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="boxplot.stats.html">boxplot.stats</a></td>
<td>Box Plot Statistics</td></tr>
<tr><td style="width: 25%;"><a href="bringToTop.html">bringToTop</a></td>
<td>Assign Focus to a Window</td></tr>
</table>
<h2><a id="C">-- C --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="cairoSymbolFont.html">cairoSymbolFont</a></td>
<td>Specify a Symbol Font</td></tr>
<tr><td style="width: 25%;"><a href="cairo.html">cairo_pdf</a></td>
<td>Cairographics-based SVG, PDF and PostScript Graphics Devices</td></tr>
<tr><td style="width: 25%;"><a href="cairo.html">cairo_ps</a></td>
<td>Cairographics-based SVG, PDF and PostScript Graphics Devices</td></tr>
<tr><td style="width: 25%;"><a href="check.options.html">check.options</a></td>
<td>Set Options with Consistency Checks</td></tr>
<tr><td style="width: 25%;"><a href="chull.html">chull</a></td>
<td>Compute Convex Hull of a Set of Points</td></tr>
<tr><td style="width: 25%;"><a href="Type1Font.html">CIDFont</a></td>
<td>Type 1 and CID Fonts</td></tr>
<tr><td style="width: 25%;"><a href="cm.html">cm</a></td>
<td>Unit Transformation</td></tr>
<tr><td style="width: 25%;"><a href="palettes.html">cm.colors</a></td>
<td>Color Palettes</td></tr>
<tr><td style="width: 25%;"><a href="col2rgb.html">col2rgb</a></td>
<td>Color to RGB Conversion</td></tr>
<tr><td style="width: 25%;"><a href="make.rgb.html">colorConverter</a></td>
<td>Create colour spaces</td></tr>
<tr><td style="width: 25%;"><a href="colorRamp.html">colorRamp</a></td>
<td>Color interpolation</td></tr>
<tr><td style="width: 25%;"><a href="colorRamp.html">colorRampPalette</a></td>
<td>Color interpolation</td></tr>
<tr><td style="width: 25%;"><a href="colors.html">colors</a></td>
<td>Color Names</td></tr>
<tr><td style="width: 25%;"><a href="convertColor.html">colorspaces</a></td>
<td>Convert between Colour Spaces</td></tr>
<tr><td style="width: 25%;"><a href="colors.html">colours</a></td>
<td>Color Names</td></tr>
<tr><td style="width: 25%;"><a href="contourLines.html">contourLines</a></td>
<td>Calculate Contour Lines</td></tr>
<tr><td style="width: 25%;"><a href="convertColor.html">convertColor</a></td>
<td>Convert between Colour Spaces</td></tr>
</table>
<h2><a id="D">-- D --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="densCols.html">densCols</a></td>
<td>Colors for Smooth Density Plots</td></tr>
<tr><td style="width: 25%;"><a href="dev.capabilities.html">dev.capabilities</a></td>
<td>Query Capabilities of the Current Graphics Device</td></tr>
<tr><td style="width: 25%;"><a href="dev.capture.html">dev.capture</a></td>
<td>Capture device output as a raster image</td></tr>
<tr><td style="width: 25%;"><a href="dev2.html">dev.control</a></td>
<td>Copy Graphics Between Multiple Devices</td></tr>
<tr><td style="width: 25%;"><a href="dev2.html">dev.copy</a></td>
<td>Copy Graphics Between Multiple Devices</td></tr>
<tr><td style="width: 25%;"><a href="dev2.html">dev.copy2eps</a></td>
<td>Copy Graphics Between Multiple Devices</td></tr>
<tr><td style="width: 25%;"><a href="dev2.html">dev.copy2pdf</a></td>
<td>Copy Graphics Between Multiple Devices</td></tr>
<tr><td style="width: 25%;"><a href="dev.html">dev.cur</a></td>
<td>Control Multiple Devices</td></tr>
<tr><td style="width: 25%;"><a href="dev.flush.html">dev.flush</a></td>
<td>Hold or Flush Output on an On-Screen Graphics Device.</td></tr>
<tr><td style="width: 25%;"><a href="dev.flush.html">dev.hold</a></td>
<td>Hold or Flush Output on an On-Screen Graphics Device.</td></tr>
<tr><td style="width: 25%;"><a href="dev.interactive.html">dev.interactive</a></td>
<td>Is the Current Graphics Device Interactive?</td></tr>
<tr><td style="width: 25%;"><a href="dev.html">dev.list</a></td>
<td>Control Multiple Devices</td></tr>
<tr><td style="width: 25%;"><a href="dev.html">dev.new</a></td>
<td>Control Multiple Devices</td></tr>
<tr><td style="width: 25%;"><a href="dev.html">dev.next</a></td>
<td>Control Multiple Devices</td></tr>
<tr><td style="width: 25%;"><a href="dev.html">dev.off</a></td>
<td>Control Multiple Devices</td></tr>
<tr><td style="width: 25%;"><a href="dev.html">dev.prev</a></td>
<td>Control Multiple Devices</td></tr>
<tr><td style="width: 25%;"><a href="dev2.html">dev.print</a></td>
<td>Copy Graphics Between Multiple Devices</td></tr>
<tr><td style="width: 25%;"><a href="dev.html">dev.set</a></td>
<td>Control Multiple Devices</td></tr>
<tr><td style="width: 25%;"><a href="dev.size.html">dev.size</a></td>
<td>Find Size of Device Surface</td></tr>
<tr><td style="width: 25%;"><a href="dev2bitmap.html">dev2bitmap</a></td>
<td>Graphics Device for Bitmap Files via Ghostscript</td></tr>
<tr><td style="width: 25%;"><a href="devAskNewPage.html">devAskNewPage</a></td>
<td>Prompt before New Page</td></tr>
<tr><td style="width: 25%;"><a href="Devices.html">device</a></td>
<td>List of Graphical Devices</td></tr>
<tr><td style="width: 25%;"><a href="dev.interactive.html">deviceIsInteractive</a></td>
<td>Is the Current Graphics Device Interactive?</td></tr>
<tr><td style="width: 25%;"><a href="Devices.html">Devices</a></td>
<td>List of Graphical Devices</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">displaystyle</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">dot</a></td>
<td>Mathematical Annotation in R</td></tr>
</table>
<h2><a id="E">-- E --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="embedFonts.html">embedFonts</a></td>
<td>Embed Fonts in PostScript and PDF</td></tr>
<tr><td style="width: 25%;"><a href="embedFonts.html">embedGlyphs</a></td>
<td>Embed Fonts in PostScript and PDF</td></tr>
<tr><td style="width: 25%;"><a href="extendrange.html">extendrange</a></td>
<td>Extend a Numerical Range by a Small Percentage</td></tr>
</table>
<h2><a id="F">-- F --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="plotmath.html">frac</a></td>
<td>Mathematical Annotation in R</td></tr>
</table>
<h2><a id="G">-- G --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="getGraphicsEvent.html">getGraphicsEvent</a></td>
<td>Wait for a mouse or keyboard event from a graphics window</td></tr>
<tr><td style="width: 25%;"><a href="getGraphicsEvent.html">getGraphicsEventEnv</a></td>
<td>Wait for a mouse or keyboard event from a graphics window</td></tr>
<tr><td style="width: 25%;"><a href="glyphInfo.html">glyphAnchor</a></td>
<td>Describe a Set of Typeset Glyphs.</td></tr>
<tr><td style="width: 25%;"><a href="glyphInfo.html">glyphFont</a></td>
<td>Describe a Set of Typeset Glyphs.</td></tr>
<tr><td style="width: 25%;"><a href="glyphInfo.html">glyphFontList</a></td>
<td>Describe a Set of Typeset Glyphs.</td></tr>
<tr><td style="width: 25%;"><a href="glyphInfo.html">glyphHeight</a></td>
<td>Describe a Set of Typeset Glyphs.</td></tr>
<tr><td style="width: 25%;"><a href="glyphInfo.html">glyphHeightBottom</a></td>
<td>Describe a Set of Typeset Glyphs.</td></tr>
<tr><td style="width: 25%;"><a href="glyphInfo.html">glyphInfo</a></td>
<td>Describe a Set of Typeset Glyphs.</td></tr>
<tr><td style="width: 25%;"><a href="glyphInfo.html">glyphJust</a></td>
<td>Describe a Set of Typeset Glyphs.</td></tr>
<tr><td style="width: 25%;"><a href="glyphInfo.html">glyphJust.character</a></td>
<td>Describe a Set of Typeset Glyphs.</td></tr>
<tr><td style="width: 25%;"><a href="glyphInfo.html">glyphJust.GlyphJust</a></td>
<td>Describe a Set of Typeset Glyphs.</td></tr>
<tr><td style="width: 25%;"><a href="glyphInfo.html">glyphJust.numeric</a></td>
<td>Describe a Set of Typeset Glyphs.</td></tr>
<tr><td style="width: 25%;"><a href="glyphInfo.html">glyphWidth</a></td>
<td>Describe a Set of Typeset Glyphs.</td></tr>
<tr><td style="width: 25%;"><a href="glyphInfo.html">glyphWidthLeft</a></td>
<td>Describe a Set of Typeset Glyphs.</td></tr>
<tr><td style="width: 25%;"><a href="dev.html">graphics.off</a></td>
<td>Control Multiple Devices</td></tr>
<tr><td style="width: 25%;"><a href="gray.html">gray</a></td>
<td>Gray Level Specification</td></tr>
<tr><td style="width: 25%;"><a href="gray.colors.html">gray.colors</a></td>
<td>Gray Color Palette</td></tr>
<tr><td style="width: 25%;"><a href="grDevices-package.html">grDevices</a></td>
<td>The R Graphics Devices and Support for Colours and Fonts</td></tr>
<tr><td style="width: 25%;"><a href="gray.html">grey</a></td>
<td>Gray Level Specification</td></tr>
<tr><td style="width: 25%;"><a href="gray.colors.html">grey.colors</a></td>
<td>Gray Color Palette</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">group</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="grSoftVersion.html">grSoftVersion</a></td>
<td>Report Versions of Graphics Software</td></tr>
</table>
<h2><a id="H">-- H --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="plotmath.html">hat</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="hcl.html">hcl</a></td>
<td>HCL Color Specification</td></tr>
<tr><td style="width: 25%;"><a href="palettes.html">hcl.colors</a></td>
<td>Color Palettes</td></tr>
<tr><td style="width: 25%;"><a href="palettes.html">hcl.pals</a></td>
<td>Color Palettes</td></tr>
<tr><td style="width: 25%;"><a href="palettes.html">heat.colors</a></td>
<td>Color Palettes</td></tr>
<tr><td style="width: 25%;"><a href="Hershey.html">Hershey</a></td>
<td>Hershey Vector Fonts in R</td></tr>
<tr><td style="width: 25%;"><a href="hsv.html">hsv</a></td>
<td>HSV Color Specification</td></tr>
</table>
<h2><a id="I">-- I --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="plotmath.html">inf</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">integral</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="as.raster.html">is.raster</a></td>
<td>Create a Raster Object</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">italic</a></td>
<td>Mathematical Annotation in R</td></tr>
</table>
<h2><a id="J">-- J --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="Japanese.html">Japanese</a></td>
<td>Japanese characters in R</td></tr>
<tr><td style="width: 25%;"><a href="png.html">jpeg</a></td>
<td>BMP, JPEG, PNG and TIFF graphics devices</td></tr>
</table>
<h2><a id="M">-- M --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="make.rgb.html">make.rgb</a></td>
<td>Create colour spaces</td></tr>
<tr><td style="width: 25%;"><a href="msgWindow.html">msgWindow</a></td>
<td>Manipulate a Window</td></tr>
</table>
<h2><a id="N">-- N --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="n2mfrow.html">n2mfrow</a></td>
<td>Compute Default 'mfrow' From Number of Plots</td></tr>
<tr><td style="width: 25%;"><a href="nclass.html">nclass.FD</a></td>
<td>Compute the Number of Classes for a Histogram</td></tr>
<tr><td style="width: 25%;"><a href="nclass.html">nclass.scott</a></td>
<td>Compute the Number of Classes for a Histogram</td></tr>
<tr><td style="width: 25%;"><a href="nclass.html">nclass.Sturges</a></td>
<td>Compute the Number of Classes for a Histogram</td></tr>
</table>
<h2><a id="O">-- O --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="plotmath.html">over</a></td>
<td>Mathematical Annotation in R</td></tr>
</table>
<h2><a id="P">-- P --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="palette.html">palette</a></td>
<td>Set or View the Graphics Palette</td></tr>
<tr><td style="width: 25%;"><a href="palette.html">palette.colors</a></td>
<td>Set or View the Graphics Palette</td></tr>
<tr><td style="width: 25%;"><a href="palette.html">palette.pals</a></td>
<td>Set or View the Graphics Palette</td></tr>
<tr><td style="width: 25%;"><a href="pdf.html">pdf</a></td>
<td>PDF Graphics Device</td></tr>
<tr><td style="width: 25%;"><a href="pdf.options.html">pdf.options</a></td>
<td>Auxiliary Function to Set/View Defaults for Arguments of pdf</td></tr>
<tr><td style="width: 25%;"><a href="postscriptFonts.html">pdfFonts</a></td>
<td>PostScript and PDF Font Families</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">phantom</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="pictex.html">pictex</a></td>
<td>A PicTeX Graphics Driver</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">plain</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">plotmath</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="png.html">png</a></td>
<td>BMP, JPEG, PNG and TIFF graphics devices</td></tr>
<tr><td style="width: 25%;"><a href="postscript.html">postscript</a></td>
<td>PostScript Graphics</td></tr>
<tr><td style="width: 25%;"><a href="postscriptFonts.html">postscriptFonts</a></td>
<td>PostScript and PDF Font Families</td></tr>
<tr><td style="width: 25%;"><a href="pretty.Date.html">pretty.Date</a></td>
<td>Pretty Breakpoints for Date-Time Classes</td></tr>
<tr><td style="width: 25%;"><a href="pretty.Date.html">pretty.POSIXt</a></td>
<td>Pretty Breakpoints for Date-Time Classes</td></tr>
<tr><td style="width: 25%;"><a href="recordplot.html">print.recordedplot</a></td>
<td>Record and Replay Plots</td></tr>
<tr><td style="width: 25%;"><a href="windows.html">print.SavedPlots</a></td>
<td>Windows Graphics Devices</td></tr>
<tr><td style="width: 25%;"><a href="ps.options.html">ps.options</a></td>
<td>Auxiliary Function to Set/View Defaults for Arguments of postscript</td></tr>
</table>
<h2><a id="Q">-- Q --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="quartz.html">quartz</a></td>
<td>macOS Quartz Device</td></tr>
<tr><td style="width: 25%;"><a href="quartz.html">quartz.options</a></td>
<td>macOS Quartz Device</td></tr>
<tr><td style="width: 25%;"><a href="quartz.html">quartz.save</a></td>
<td>macOS Quartz Device</td></tr>
<tr><td style="width: 25%;"><a href="quartzFonts.html">quartzFont</a></td>
<td>Quartz Fonts Setup</td></tr>
<tr><td style="width: 25%;"><a href="quartzFonts.html">quartzFonts</a></td>
<td>Quartz Fonts Setup</td></tr>
</table>
<h2><a id="R">-- R --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="palettes.html">rainbow</a></td>
<td>Color Palettes</td></tr>
<tr><td style="width: 25%;"><a href="recordGraphics.html">recordGraphics</a></td>
<td>Record Graphics Operations</td></tr>
<tr><td style="width: 25%;"><a href="recordplot.html">recordPlot</a></td>
<td>Record and Replay Plots</td></tr>
<tr><td style="width: 25%;"><a href="recordplot.html">replayPlot</a></td>
<td>Record and Replay Plots</td></tr>
<tr><td style="width: 25%;"><a href="rgb.html">rgb</a></td>
<td>RGB Color Specification</td></tr>
<tr><td style="width: 25%;"><a href="rgb2hsv.html">rgb2hsv</a></td>
<td>RGB to HSV Conversion</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">ring</a></td>
<td>Mathematical Annotation in R</td></tr>
</table>
<h2><a id="S">-- S --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="savePlot.html">savePlot</a></td>
<td>Save Cairo X11 Plot to File</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">scriptscriptstyle</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">scriptstyle</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="ps.options.html">setEPS</a></td>
<td>Auxiliary Function to Set/View Defaults for Arguments of postscript</td></tr>
<tr><td style="width: 25%;"><a href="getGraphicsEvent.html">setGraphicsEventEnv</a></td>
<td>Wait for a mouse or keyboard event from a graphics window</td></tr>
<tr><td style="width: 25%;"><a href="getGraphicsEvent.html">setGraphicsEventHandlers</a></td>
<td>Wait for a mouse or keyboard event from a graphics window</td></tr>
<tr><td style="width: 25%;"><a href="ps.options.html">setPS</a></td>
<td>Auxiliary Function to Set/View Defaults for Arguments of postscript</td></tr>
<tr><td style="width: 25%;"><a href="bringToTop.html">stayOnTop</a></td>
<td>Assign Focus to a Window</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">sup</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="cairo.html">svg</a></td>
<td>Cairographics-based SVG, PDF and PostScript Graphics Devices</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">symbol</a></td>
<td>Mathematical Annotation in R</td></tr>
</table>
<h2><a id="T">-- T --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="palettes.html">terrain.colors</a></td>
<td>Color Palettes</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">textstyle</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="png.html">tiff</a></td>
<td>BMP, JPEG, PNG and TIFF graphics devices</td></tr>
<tr><td style="width: 25%;"><a href="palettes.html">topo.colors</a></td>
<td>Color Palettes</td></tr>
<tr><td style="width: 25%;"><a href="trans3d.html">trans3d</a></td>
<td>3D to 2D Transformation for Perspective Plots</td></tr>
<tr><td style="width: 25%;"><a href="Type1Font.html">Type1Font</a></td>
<td>Type 1 and CID Fonts</td></tr>
</table>
<h2><a id="U">-- U --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="plotmath.html">underline</a></td>
<td>Mathematical Annotation in R</td></tr>
</table>
<h2><a id="W">-- W --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="plotmath.html">widehat</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="plotmath.html">widetilde</a></td>
<td>Mathematical Annotation in R</td></tr>
<tr><td style="width: 25%;"><a href="windows.html">win.graph</a></td>
<td>Windows Graphics Devices</td></tr>
<tr><td style="width: 25%;"><a href="windows.html">win.metafile</a></td>
<td>Windows Graphics Devices</td></tr>
<tr><td style="width: 25%;"><a href="windows.html">win.print</a></td>
<td>Windows Graphics Devices</td></tr>
<tr><td style="width: 25%;"><a href="windows.html">windows</a></td>
<td>Windows Graphics Devices</td></tr>
<tr><td style="width: 25%;"><a href="windows.options.html">windows.options</a></td>
<td>Auxiliary Function to Set/View Defaults for Arguments of windows()</td></tr>
<tr><td style="width: 25%;"><a href="windowsFonts.html">windowsFont</a></td>
<td>Windows Fonts</td></tr>
<tr><td style="width: 25%;"><a href="windowsFonts.html">windowsFonts</a></td>
<td>Windows Fonts</td></tr>
</table>
<h2><a id="X">-- X --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="x11.html">X11</a></td>
<td>X Window System Graphics (X11)</td></tr>
<tr><td style="width: 25%;"><a href="x11.html">x11</a></td>
<td>X Window System Graphics (X11)</td></tr>
<tr><td style="width: 25%;"><a href="x11.html">X11.options</a></td>
<td>X Window System Graphics (X11)</td></tr>
<tr><td style="width: 25%;"><a href="x11Fonts.html">X11Font</a></td>
<td>X11 Fonts</td></tr>
<tr><td style="width: 25%;"><a href="x11Fonts.html">X11Fonts</a></td>
<td>X11 Fonts</td></tr>
<tr><td style="width: 25%;"><a href="xfig.html">xfig</a></td>
<td>XFig Graphics Device</td></tr>
<tr><td style="width: 25%;"><a href="xy.coords.html">xy.coords</a></td>
<td>Extracting Plotting Structures</td></tr>
<tr><td style="width: 25%;"><a href="xyTable.html">xyTable</a></td>
<td>Multiplicities of (x,y) Points, e.g., for a Sunflower Plot</td></tr>
<tr><td style="width: 25%;"><a href="xyz.coords.html">xyz.coords</a></td>
<td>Extracting Plotting Structures</td></tr>
</table>
<h2><a id="misc">-- misc --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="axisTicks.html">.axisPars</a></td>
<td>Compute Pretty Axis Tick Scales</td></tr>
<tr><td style="width: 25%;"><a href="postscript.html">.ps.prolog</a></td>
<td>PostScript Graphics</td></tr>
<tr><td style="width: 25%;"><a href="windows.html">[.SavedPlots</a></td>
<td>Windows Graphics Devices</td></tr>
</table>
</div></body></html>
@media screen {
.container {
padding-right: 10px;
padding-left: 10px;
margin-right: auto;
margin-left: auto;
max-width: 900px;
}
}
.rimage img { /* from knitr - for examples and demos */
width: 96%;
margin-left: 2%;
}
.katex { font-size: 1.1em; }
code {
color: inherit;
background: inherit;
}
body {
line-height: 1.4;
background: white;
color: black;
}
a:link {
background: white;
color: blue;
}
a:visited {
background: white;
color: rgb(50%, 0%, 50%);
}
h1 {
background: white;
color: rgb(55%, 55%, 55%);
font-family: monospace;
font-size: 1.4em; /* x-large; */
text-align: center;
}
h2 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
text-align: center;
}
h3 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
}
h4 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
font-size: 1.2em; /* large; */
}
h5 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
}
h6 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
}
img.toplogo {
width: 4em;
vertical-align: middle;
}
img.arrow {
width: 30px;
height: 30px;
border: 0;
}
span.acronym {
font-size: small;
}
span.env {
font-family: monospace;
}
span.file {
font-family: monospace;
}
span.option{
font-family: monospace;
}
span.pkg {
font-weight: bold;
}
span.samp{
font-family: monospace;
}
div.vignettes a:hover {
background: rgb(85%, 85%, 85%);
}
tr {
vertical-align: top;
}
span.rlang {
font-family: Courier New, Courier;
color: #666666;
}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/00Index.html","start":0,"end":24177},{"filename":"/R.css","start":24177,"end":26021}],"remote_package_size":26021}

View file

@ -0,0 +1,474 @@
cols <- t(col2rgb(palette()))
## One full space1-XYZ-space2 conversion
convertColor(cols, 'sRGB', 'Lab', scale.in=255)
## to XYZ, then to every defined space
XYZ <- convertColor(cols, 'sRGB', 'XYZ', scale.in=255)
fromXYZ <- vapply(
names(colorspaces), convertColor, FUN.VALUE=XYZ,
from='XYZ', color=XYZ, clip=NA
)
round(fromXYZ, 4)
## Back to XYZ, delta to original XYZ should be close to zero
tol <- 1e-5
toXYZ <- vapply(
dimnames(fromXYZ)[[3]],
function(x) all(abs(convertColor(fromXYZ[,,x], from=x, to='XYZ') - XYZ)<tol),
logical(1)
)
toXYZ
stopifnot(all(toXYZ | is.na(toXYZ)))
## Test Apple and CIE RGB on smaller gamuts since they clip
XYZ2 <- XYZ * .7 + .15
fromXYZ2 <- vapply(
c('Apple RGB', 'CIE RGB'), convertColor, FUN.VALUE=XYZ2,
from='XYZ', color=XYZ2, clip=NA
)
round(fromXYZ2, 4)
toXYZ2 <- vapply(
dimnames(fromXYZ2)[[3]],
function(x)
all(abs(convertColor(fromXYZ2[,,x], from=x, to='XYZ') - XYZ2)<tol),
logical(1)
)
stopifnot(all(toXYZ2))
# Seg.fault in R 3.5.3 -- 4.1.1 (but not 3.4.4) -- PR#18183
stopifnot(identical(character(0),
gray(numeric(), alpha=1/2)))
## xy.coords() and xyz.coords() -- gets *classed* warning
tools::assertWarning(xy.coords(-2:10, log = "y"), verbose=TRUE)
op <- options(warn = 2)# ==> warnings are errors
suppressWarnings(xy.coords(-2:10, log = "y"), classes="log_le_0") -> xy
stopifnot(identical(xy$y, c(rep(NA_real_,3), 1:10)))
options(op) # (reverting)
tools::assertWarning(xy.coords(-2:10, log = "y"), verbose=TRUE)
## [Bug 18476] alpha handling in palette functions (23 Feb 2023)
## https://bugs.r-project.org/show_bug.cgi?id=18476
## Attachment 3131 https://bugs.r-project.org/attachment.cgi?id=3131
## and comment #3 by Achim Zeileis
## from attachment #3131 :
check_alpha <- function(colors = "topo.colors", ncolor = 3, nalpha = 3, ...) {
## alpha sequence of length nalpha
alpha <- seq(0, 1, length.out = nalpha)
## generate colors with alpha=...
col1 <- tryCatch(do.call(colors, c(list(n = ncolor, alpha = alpha), list(...))),
error = identity)
if(inherits(col1, "error")) return(FALSE)
## generate colors without alpha= and add manually afterwards
alpha <- format(as.hexmode(round(alpha * 255 + 0.0001)), width = 2L, upper.case = TRUE)
col2 <- paste0(do.call(colors, c(list(n = ncolor), list(...))),
rep_len(alpha, ncolor))
## check whether both strategies yield identical output
identical(col1, col2)
}
expndGrid <- function(...)
expand.grid(..., KEEP.OUT.ATTRS = FALSE, stringsAsFactors = FALSE)
iSamp <- function(n, f=1/4, nS = max(min(n, 24L), f*n), full = interactive())
if(full) seq_len(n) else sample.int(n, nS)
chkALLalpha <- function(d)
vapply(iSamp(nrow(d)), function(i) do.call(check_alpha, d[i,]), NA)
## Check old palettes ------------------
d1 <- expndGrid(colors = c("rainbow", "topo.colors", "terrain.colors",
"heat.colors", "cm.colors", "gray.colors"),
ncolor = c(1, 3, 9, 100),
nalpha = c(2, 3, 9, 100))
table(L <- chkALLalpha(d1)) ## R-4.2.x: 71 FALSE, 25 TRUE -- now 96 TRUE
if(!all(L)) stop("---> not all ok")
## Check the new palettes -----------------
d2 <- expndGrid(colors = "palette.colors",
ncolor = c(1, 3, 7),
nalpha = c(2, 3, 7),
palette = print(palette.pals()))
table(L <- chkALLalpha(d2)) ## R-4.2.x: 64 FALSE, 80 TRUE -- now 144 TRUE
if(!all(L)) stop("---> not all ok")
d3 <- expndGrid(colors = "hcl.colors",
ncolor = c(1, 3, 9, 100),
nalpha = c(2, 3, 9, 100),
palette = print(hcl.pals()))
table(L <- chkALLalpha(d3)) ## R-4.2.x: 1057 FALSE, 783 TRUE -- now 1840 TRUE
if(!all(L)) stop("---> not all ok")
## tests of the fonts in the postscript() device.
testit <- function(family, encoding="default")
{
postscript("ps-tests.ps", height=7, width=7, family=family,
encoding=encoding)
plot(1:10, type="n")
text(5, 9, "Some text")
text(5, 8 , expression(italic("italic")))
text(5, 7 , expression(bold("bold")))
text(5, 6 , expression(bolditalic("bold & italic")))
text(8, 3, expression(paste(frac(1, sigma*sqrt(2*pi)), " ",
plain(e)^{frac(-(x-mu)^2, 2*sigma^2)})))
dev.off()
}
testit("Helvetica")
testit("AvantGarde")
testit("Bookman")
testit("Courier")
testit("Helvetica-Narrow")
testit("NewCenturySchoolbook")
testit("Palatino")
testit("Times")
testit("URWGothic")
testit("URWBookman")
testit("NimbusMon")
testit("NimbusSan")
testit("NimbusSanCond")
testit("CenturySch")
testit("URWPalladio")
testit("NimbusRom")
testit("URWHelvetica")
testit("URWTimes")
testit("ComputerModern", "TeXtext.enc")
unlink("ps-tests.ps")
R Under development (unstable) (2022-03-19 r81942) -- "Unsuffered Consequences"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> ## tests of the fonts in the postscript() device.
>
> testit <- function(family, encoding="default")
+ {
+ postscript("ps-tests.ps", height=7, width=7, family=family,
+ encoding=encoding)
+ plot(1:10, type="n")
+ text(5, 9, "Some text")
+ text(5, 8 , expression(italic("italic")))
+ text(5, 7 , expression(bold("bold")))
+ text(5, 6 , expression(bolditalic("bold & italic")))
+ text(8, 3, expression(paste(frac(1, sigma*sqrt(2*pi)), " ",
+ plain(e)^{frac(-(x-mu)^2, 2*sigma^2)})))
+ dev.off()
+ }
>
> testit("Helvetica")
null device
1
> testit("AvantGarde")
null device
1
> testit("Bookman")
null device
1
> testit("Courier")
null device
1
> testit("Helvetica-Narrow")
null device
1
> testit("NewCenturySchoolbook")
null device
1
> testit("Palatino")
null device
1
> testit("Times")
null device
1
>
> testit("URWGothic")
null device
1
> testit("URWBookman")
null device
1
> testit("NimbusMon")
null device
1
> testit("NimbusSan")
null device
1
> testit("NimbusSanCond")
null device
1
> testit("CenturySch")
null device
1
> testit("URWPalladio")
null device
1
> testit("NimbusRom")
null device
1
> testit("URWHelvetica")
null device
1
> testit("URWTimes")
null device
1
>
> testit("ComputerModern", "TeXtext.enc")
null device
1
>
> unlink("ps-tests.ps")
>
> proc.time()
user system elapsed
0.995 0.084 1.062
## From: Winston Chang
## To: R Devel List ...@r-project.org
## Subject: [Rd] recordPlot/replayPlot not working with saveRDS/readRDS
## Date: Mon, 2 Apr 2018 12:23:06 -0500
if (FALSE) { # bitmap png() device is optional for webR
# Save displaylist for a simple plot
png('test.png')
dev.control(displaylist ="enable")
plot(1:5, 1:5)
r <- recordPlot()
dev.off()
# Replay plot. This works.
png('test1.png')
replayPlot(r)
dev.off()
## Save the plot and load it, then replay it (in *same* R session):
## Now works, too
saveRDS(r, 'recordedplot.rds')
r2 <- readRDS('recordedplot.rds')
png('test2.png')
replayPlot(r2)
## Gave Error: NULL value passed as symbol address
dev.off()
## Now check the three PNG graphics files do not differ:
(files <- dir(pattern = "test.*[.]png"))
tt <- lapply(files, readBin, what = "raw", n = 2^12)
lengths(tt)
sapply(tt, head)
stopifnot(
identical(tt[[1]], tt[[2]]),
identical(tt[[3]], tt[[2]]))
}
## tests for the xfig device
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=TRUE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=FALSE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=TRUE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=FALSE)
unlink("xfig-tests.fig")
## tests for the xfig device
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=TRUE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=FALSE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=TRUE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=FALSE)
unlink("xfig-tests.fig")
## tests for the xfig device
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=TRUE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=FALSE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=TRUE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=FALSE)
unlink("xfig-tests.fig")
## tests for the xfig device
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=TRUE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=FALSE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=TRUE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=FALSE)
unlink("xfig-tests.fig")
## tests for the xfig device
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=TRUE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=FALSE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=TRUE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=FALSE)
unlink("xfig-tests.fig")
## tests for the xfig device
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=TRUE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=FALSE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=TRUE)
xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=FALSE)
unlink("xfig-tests.fig")
R Under development (unstable) (2022-03-19 r81942) -- "Unsuffered Consequences"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> ## tests for the xfig device
>
>
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=TRUE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=FALSE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=TRUE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=FALSE)
>
> unlink("xfig-tests.fig")
>
> ## tests for the xfig device
>
>
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=TRUE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=FALSE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=TRUE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=FALSE)
>
> unlink("xfig-tests.fig")
>
> ## tests for the xfig device
>
>
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=TRUE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=FALSE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=TRUE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=FALSE)
>
> unlink("xfig-tests.fig")
>
> ## tests for the xfig device
>
>
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=TRUE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=FALSE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=TRUE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=FALSE)
>
> unlink("xfig-tests.fig")
>
> ## tests for the xfig device
>
>
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=TRUE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=FALSE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=TRUE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=FALSE)
>
> unlink("xfig-tests.fig")
>
> ## tests for the xfig device
>
>
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=TRUE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=TRUE,textspecial=FALSE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=TRUE)
>
> xfig("xfig-tests.fig",onefile=TRUE,defaultfont=FALSE,textspecial=FALSE)
>
> unlink("xfig-tests.fig")
>
>
> proc.time()
user system elapsed
0.392 0.073 0.446

View file

@ -0,0 +1 @@
{"files":[{"filename":"/convertColor-tests.R","start":0,"end":1131},{"filename":"/grDev-tsts.R","start":1131,"end":1517},{"filename":"/palettes-tests.R","start":1517,"end":3689},{"filename":"/ps-tests.R","start":3689,"end":4661},{"filename":"/ps-tests.Rout.save","start":4661,"end":6932},{"filename":"/saved-recordPlot.R","start":6932,"end":7868},{"filename":"/xfig-tests.R","start":7868,"end":9944},{"filename":"/xfig-tests.Rout.save","start":9944,"end":12915}],"remote_package_size":12915}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
{"files":[{"filename":"/Hershey.R","start":0,"end":19972},{"filename":"/Japanese.R","start":19972,"end":54491},{"filename":"/graphics.R","start":54491,"end":59530},{"filename":"/image.R","start":59530,"end":60635},{"filename":"/persp.R","start":60635,"end":63426},{"filename":"/plotmath.R","start":63426,"end":72185}],"remote_package_size":72185}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/AnIndex","start":0,"end":2565},{"filename":"/aliases.rds","start":2565,"end":3588},{"filename":"/figures/mai.pdf","start":3588,"end":6129},{"filename":"/figures/mai.png","start":6129,"end":10796},{"filename":"/figures/oma.pdf","start":10796,"end":14559},{"filename":"/figures/oma.png","start":14559,"end":19673},{"filename":"/figures/pch.pdf","start":19673,"end":24667},{"filename":"/figures/pch.png","start":24667,"end":33954},{"filename":"/figures/pch.svg","start":33954,"end":61141},{"filename":"/graphics.rdb","start":61141,"end":538590},{"filename":"/graphics.rdx","start":538590,"end":540247},{"filename":"/paths.rds","start":540247,"end":540902}],"remote_package_size":540902}

View file

@ -0,0 +1,352 @@
<!DOCTYPE html>
<html>
<head><title>R: The R Graphics Package</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body><div class="container">
<h1> The R Graphics Package
<img class="toplogo" src="../../../doc/html/Rlogo.svg" alt="[R logo]" />
</h1>
<hr/>
<div style="text-align: center;">
<a href="../../../doc/html/packages.html"><img class="arrow" src="../../../doc/html/left.jpg" alt="[Up]" /></a>
<a href="../../../doc/html/index.html"><img class="arrow" src="../../../doc/html/up.jpg" alt="[Top]" /></a>
</div><h2>Documentation for package &lsquo;graphics&rsquo; version 4.3.0</h2>
<ul><li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li>
<li><a href="../demo">Code demos</a>. Use <a href="../../utils/help/demo">demo()</a> to run them.</li>
</ul>
<h2>Help Pages</h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="graphics-package.html">graphics-package</a></td>
<td>The R Graphics Package</td></tr>
<tr><td style="width: 25%;"><a href="filled.contour.html">.filled.contour</a></td>
<td>Level (Contour) Plots</td></tr>
<tr><td style="width: 25%;"><a href="par.html">.Pars</a></td>
<td>Set or Query Graphical Parameters</td></tr>
<tr><td style="width: 25%;"><a href="abline.html">abline</a></td>
<td>Add Straight Lines to a Plot</td></tr>
<tr><td style="width: 25%;"><a href="arrows.html">arrows</a></td>
<td>Add Arrows to a Plot</td></tr>
<tr><td style="width: 25%;"><a href="plot.window.html">asp</a></td>
<td>Set up World Coordinates for Graphics Window</td></tr>
<tr><td style="width: 25%;"><a href="assocplot.html">assocplot</a></td>
<td>Association Plots</td></tr>
<tr><td style="width: 25%;"><a href="zAxis.html">Axis</a></td>
<td>Generic Function to Add an Axis to a Plot</td></tr>
<tr><td style="width: 25%;"><a href="axis.html">axis</a></td>
<td>Add an Axis to a Plot</td></tr>
<tr><td style="width: 25%;"><a href="axis.POSIXct.html">axis.POSIXct</a></td>
<td>Date and Date-time Plotting Functions</td></tr>
<tr><td style="width: 25%;"><a href="axTicks.html">axTicks</a></td>
<td>Compute Axis Tickmark Locations</td></tr>
<tr><td style="width: 25%;"><a href="barplot.html">barplot</a></td>
<td>Bar Plots</td></tr>
<tr><td style="width: 25%;"><a href="box.html">box</a></td>
<td>Draw a Box around a Plot</td></tr>
<tr><td style="width: 25%;"><a href="boxplot.html">boxplot</a></td>
<td>Box Plots</td></tr>
<tr><td style="width: 25%;"><a href="boxplot.matrix.html">boxplot.matrix</a></td>
<td>Draw a Boxplot for each Column (Row) of a Matrix</td></tr>
<tr><td style="width: 25%;"><a href="bxp.html">bxp</a></td>
<td>Draw Box Plots from Summaries</td></tr>
<tr><td style="width: 25%;"><a href="cdplot.html">cdplot</a></td>
<td>Conditional Density Plots</td></tr>
<tr><td style="width: 25%;"><a href="clip.html">clip</a></td>
<td>Set Clipping Region</td></tr>
<tr><td style="width: 25%;"><a href="screen.html">close.screen</a></td>
<td>Creating and Controlling Multiple Screens on a Single Device</td></tr>
<tr><td style="width: 25%;"><a href="coplot.html">co.intervals</a></td>
<td>Conditioning Plots</td></tr>
<tr><td style="width: 25%;"><a href="contour.html">contour</a></td>
<td>Display Contours</td></tr>
<tr><td style="width: 25%;"><a href="coplot.html">coplot</a></td>
<td>Conditioning Plots</td></tr>
<tr><td style="width: 25%;"><a href="curve.html">curve</a></td>
<td>Draw Function Plots</td></tr>
<tr><td style="width: 25%;"><a href="dotchart.html">dotchart</a></td>
<td>Cleveland's Dot Plots</td></tr>
<tr><td style="width: 25%;"><a href="screen.html">erase.screen</a></td>
<td>Creating and Controlling Multiple Screens on a Single Device</td></tr>
<tr><td style="width: 25%;"><a href="filled.contour.html">filled.contour</a></td>
<td>Level (Contour) Plots</td></tr>
<tr><td style="width: 25%;"><a href="fourfoldplot.html">fourfoldplot</a></td>
<td>Fourfold Plots</td></tr>
<tr><td style="width: 25%;"><a href="frame.html">frame</a></td>
<td>Create / Start a New Plot Frame</td></tr>
<tr><td style="width: 25%;"><a href="par.html">graphical parameter</a></td>
<td>Set or Query Graphical Parameters</td></tr>
<tr><td style="width: 25%;"><a href="par.html">graphical parameters</a></td>
<td>Set or Query Graphical Parameters</td></tr>
<tr><td style="width: 25%;"><a href="graphics-package.html">graphics</a></td>
<td>The R Graphics Package</td></tr>
<tr><td style="width: 25%;"><a href="convertXY.html">grconvertX</a></td>
<td>Convert between Graphics Coordinate Systems</td></tr>
<tr><td style="width: 25%;"><a href="convertXY.html">grconvertY</a></td>
<td>Convert between Graphics Coordinate Systems</td></tr>
<tr><td style="width: 25%;"><a href="grid.html">grid</a></td>
<td>Add Grid to a Plot</td></tr>
<tr><td style="width: 25%;"><a href="hist.html">hist</a></td>
<td>Histograms</td></tr>
<tr><td style="width: 25%;"><a href="hist.POSIXt.html">hist.POSIXt</a></td>
<td>Histogram of a Date or Date-Time Object</td></tr>
<tr><td style="width: 25%;"><a href="identify.html">identify</a></td>
<td>Identify Points in a Scatter Plot</td></tr>
<tr><td style="width: 25%;"><a href="image.html">image</a></td>
<td>Display a Color Image</td></tr>
<tr><td style="width: 25%;"><a href="layout.html">layout</a></td>
<td>Specifying Complex Plot Arrangements</td></tr>
<tr><td style="width: 25%;"><a href="layout.html">lcm</a></td>
<td>Specifying Complex Plot Arrangements</td></tr>
<tr><td style="width: 25%;"><a href="legend.html">legend</a></td>
<td>Add Legends to Plots</td></tr>
<tr><td style="width: 25%;"><a href="lines.html">lines</a></td>
<td>Add Connected Line Segments to a Plot</td></tr>
<tr><td style="width: 25%;"><a href="plot.formula.html">lines.formula</a></td>
<td>Formula Notation for Scatterplots</td></tr>
<tr><td style="width: 25%;"><a href="plothistogram.html">lines.histogram</a></td>
<td>Plot Histograms</td></tr>
<tr><td style="width: 25%;"><a href="plot.table.html">lines.table</a></td>
<td>Plot Methods for 'table' Objects</td></tr>
<tr><td style="width: 25%;"><a href="locator.html">locator</a></td>
<td>Graphical Input</td></tr>
<tr><td style="width: 25%;"><a href="matplot.html">matlines</a></td>
<td>Plot Columns of Matrices</td></tr>
<tr><td style="width: 25%;"><a href="matplot.html">matplot</a></td>
<td>Plot Columns of Matrices</td></tr>
<tr><td style="width: 25%;"><a href="matplot.html">matpoints</a></td>
<td>Plot Columns of Matrices</td></tr>
<tr><td style="width: 25%;"><a href="mosaicplot.html">mosaicplot</a></td>
<td>Mosaic Plots</td></tr>
<tr><td style="width: 25%;"><a href="mtext.html">mtext</a></td>
<td>Write Text into the Margins of a Plot</td></tr>
<tr><td style="width: 25%;"><a href="pairs.html">pairs</a></td>
<td>Scatterplot Matrices</td></tr>
<tr><td style="width: 25%;"><a href="panel.smooth.html">panel.smooth</a></td>
<td>Simple Panel Plot</td></tr>
<tr><td style="width: 25%;"><a href="par.html">par</a></td>
<td>Set or Query Graphical Parameters</td></tr>
<tr><td style="width: 25%;"><a href="points.html">pch</a></td>
<td>Add Points to a Plot</td></tr>
<tr><td style="width: 25%;"><a href="persp.html">persp</a></td>
<td>Perspective Plots</td></tr>
<tr><td style="width: 25%;"><a href="pie.html">pie</a></td>
<td>Pie Charts</td></tr>
<tr><td style="width: 25%;"><a href="plot.dataframe.html">plot.data.frame</a></td>
<td>Plot Method for Data Frames</td></tr>
<tr><td style="width: 25%;"><a href="plot.default.html">plot.default</a></td>
<td>The Default Scatterplot Function</td></tr>
<tr><td style="width: 25%;"><a href="plot.design.html">plot.design</a></td>
<td>Plot Univariate Effects of a Design or Model</td></tr>
<tr><td style="width: 25%;"><a href="plot.factor.html">plot.factor</a></td>
<td>Plotting Factor Variables</td></tr>
<tr><td style="width: 25%;"><a href="plot.formula.html">plot.formula</a></td>
<td>Formula Notation for Scatterplots</td></tr>
<tr><td style="width: 25%;"><a href="curve.html">plot.function</a></td>
<td>Draw Function Plots</td></tr>
<tr><td style="width: 25%;"><a href="plothistogram.html">plot.histogram</a></td>
<td>Plot Histograms</td></tr>
<tr><td style="width: 25%;"><a href="frame.html">plot.new</a></td>
<td>Create / Start a New Plot Frame</td></tr>
<tr><td style="width: 25%;"><a href="plot.raster.html">plot.raster</a></td>
<td>Plotting Raster Images</td></tr>
<tr><td style="width: 25%;"><a href="plot.table.html">plot.table</a></td>
<td>Plot Methods for 'table' Objects</td></tr>
<tr><td style="width: 25%;"><a href="plot.window.html">plot.window</a></td>
<td>Set up World Coordinates for Graphics Window</td></tr>
<tr><td style="width: 25%;"><a href="plot.xy.html">plot.xy</a></td>
<td>Basic Internal Plot Function</td></tr>
<tr><td style="width: 25%;"><a href="points.html">points</a></td>
<td>Add Points to a Plot</td></tr>
<tr><td style="width: 25%;"><a href="plot.formula.html">points.formula</a></td>
<td>Formula Notation for Scatterplots</td></tr>
<tr><td style="width: 25%;"><a href="plot.table.html">points.table</a></td>
<td>Plot Methods for 'table' Objects</td></tr>
<tr><td style="width: 25%;"><a href="polygon.html">polygon</a></td>
<td>Polygon Drawing</td></tr>
<tr><td style="width: 25%;"><a href="polypath.html">polypath</a></td>
<td>Path Drawing</td></tr>
<tr><td style="width: 25%;"><a href="rasterImage.html">rasterImage</a></td>
<td>Draw One or More Raster Images</td></tr>
<tr><td style="width: 25%;"><a href="rect.html">rect</a></td>
<td>Draw One or More Rectangles</td></tr>
<tr><td style="width: 25%;"><a href="rug.html">rug</a></td>
<td>Add a Rug to a Plot</td></tr>
<tr><td style="width: 25%;"><a href="screen.html">screen</a></td>
<td>Creating and Controlling Multiple Screens on a Single Device</td></tr>
<tr><td style="width: 25%;"><a href="segments.html">segments</a></td>
<td>Add Line Segments to a Plot</td></tr>
<tr><td style="width: 25%;"><a href="smoothScatter.html">smoothScatter</a></td>
<td>Scatterplots with Smoothed Densities Color Representation</td></tr>
<tr><td style="width: 25%;"><a href="spineplot.html">spineplot</a></td>
<td>Spine Plots and Spinograms</td></tr>
<tr><td style="width: 25%;"><a href="screen.html">split.screen</a></td>
<td>Creating and Controlling Multiple Screens on a Single Device</td></tr>
<tr><td style="width: 25%;"><a href="stars.html">stars</a></td>
<td>Star (Spider/Radar) Plots and Segment Diagrams</td></tr>
<tr><td style="width: 25%;"><a href="stem.html">stem</a></td>
<td>Stem-and-Leaf Plots</td></tr>
<tr><td style="width: 25%;"><a href="strwidth.html">strheight</a></td>
<td>Plotting Dimensions of Character Strings and Math Expressions</td></tr>
<tr><td style="width: 25%;"><a href="stripchart.html">stripchart</a></td>
<td>1-D Scatter Plots</td></tr>
<tr><td style="width: 25%;"><a href="strwidth.html">strwidth</a></td>
<td>Plotting Dimensions of Character Strings and Math Expressions</td></tr>
<tr><td style="width: 25%;"><a href="sunflowerplot.html">sunflowerplot</a></td>
<td>Produce a Sunflower Scatter Plot</td></tr>
<tr><td style="width: 25%;"><a href="symbols.html">symbols</a></td>
<td>Draw Symbols (Circles, Squares, Stars, Thermometers, Boxplots)</td></tr>
<tr><td style="width: 25%;"><a href="text.html">text</a></td>
<td>Add Text to a Plot</td></tr>
<tr><td style="width: 25%;"><a href="plot.formula.html">text.formula</a></td>
<td>Formula Notation for Scatterplots</td></tr>
<tr><td style="width: 25%;"><a href="title.html">title</a></td>
<td>Plot Annotation</td></tr>
<tr><td style="width: 25%;"><a href="units.html">xinch</a></td>
<td>Graphical Units</td></tr>
<tr><td style="width: 25%;"><a href="plot.window.html">xlim</a></td>
<td>Set up World Coordinates for Graphics Window</td></tr>
<tr><td style="width: 25%;"><a href="xspline.html">xspline</a></td>
<td>Draw an X-spline</td></tr>
<tr><td style="width: 25%;"><a href="units.html">xyinch</a></td>
<td>Graphical Units</td></tr>
<tr><td style="width: 25%;"><a href="units.html">yinch</a></td>
<td>Graphical Units</td></tr>
<tr><td style="width: 25%;"><a href="plot.window.html">ylim</a></td>
<td>Set up World Coordinates for Graphics Window</td></tr>
</table>
</div></body></html>
@media screen {
.container {
padding-right: 10px;
padding-left: 10px;
margin-right: auto;
margin-left: auto;
max-width: 900px;
}
}
.rimage img { /* from knitr - for examples and demos */
width: 96%;
margin-left: 2%;
}
.katex { font-size: 1.1em; }
code {
color: inherit;
background: inherit;
}
body {
line-height: 1.4;
background: white;
color: black;
}
a:link {
background: white;
color: blue;
}
a:visited {
background: white;
color: rgb(50%, 0%, 50%);
}
h1 {
background: white;
color: rgb(55%, 55%, 55%);
font-family: monospace;
font-size: 1.4em; /* x-large; */
text-align: center;
}
h2 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
text-align: center;
}
h3 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
}
h4 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
font-size: 1.2em; /* large; */
}
h5 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
}
h6 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
}
img.toplogo {
width: 4em;
vertical-align: middle;
}
img.arrow {
width: 30px;
height: 30px;
border: 0;
}
span.acronym {
font-size: small;
}
span.env {
font-family: monospace;
}
span.file {
font-family: monospace;
}
span.option{
font-family: monospace;
}
span.pkg {
font-weight: bold;
}
span.samp{
font-family: monospace;
}
div.vignettes a:hover {
background: rgb(85%, 85%, 85%);
}
tr {
vertical-align: top;
}
span.rlang {
font-family: Courier New, Courier;
color: #666666;
}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/00Index.html","start":0,"end":12159},{"filename":"/R.css","start":12159,"end":14003}],"remote_package_size":14003}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
{"files":[{"filename":"/DivByZero.txt","start":0,"end":2211},{"filename":"/changes.txt","start":2211,"end":64446},{"filename":"/displaylist.pdf","start":64446,"end":120524},{"filename":"/frame.pdf","start":120524,"end":183018},{"filename":"/grid.pdf","start":183018,"end":286625},{"filename":"/grobs.pdf","start":286625,"end":337960},{"filename":"/interactive.pdf","start":337960,"end":366443},{"filename":"/locndimn.pdf","start":366443,"end":398458},{"filename":"/moveline.pdf","start":398458,"end":427697},{"filename":"/nonfinite.pdf","start":427697,"end":454272},{"filename":"/plotexample.pdf","start":454272,"end":559088},{"filename":"/rotated.pdf","start":559088,"end":611710},{"filename":"/saveload.pdf","start":611710,"end":649052},{"filename":"/sharing.pdf","start":649052,"end":676393},{"filename":"/viewports.pdf","start":676393,"end":742984}],"remote_package_size":742984}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/AnIndex","start":0,"end":6348},{"filename":"/aliases.rds","start":6348,"end":8394},{"filename":"/grid.rdb","start":8394,"end":320940},{"filename":"/grid.rdx","start":320940,"end":323171},{"filename":"/paths.rds","start":323171,"end":324040}],"remote_package_size":324040}

View file

@ -0,0 +1,778 @@
<!DOCTYPE html>
<html>
<head><title>R: The Grid Graphics Package</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body><div class="container">
<h1> The Grid Graphics Package
<img class="toplogo" src="../../../doc/html/Rlogo.svg" alt="[R logo]" />
</h1>
<hr/>
<div style="text-align: center;">
<a href="../../../doc/html/packages.html"><img class="arrow" src="../../../doc/html/left.jpg" alt="[Up]" /></a>
<a href="../../../doc/html/index.html"><img class="arrow" src="../../../doc/html/up.jpg" alt="[Top]" /></a>
</div><h2>Documentation for package &lsquo;grid&rsquo; version 4.3.0</h2>
<ul><li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li>
<li><a href="../doc/index.html">User guides, package vignettes and other documentation.</a></li>
</ul>
<h2>Help Pages</h2>
<p style="text-align: center;">
<a href="# "> </a>
<a href="#A">A</a>
<a href="#B">B</a>
<a href="#C">C</a>
<a href="#D">D</a>
<a href="#E">E</a>
<a href="#F">F</a>
<a href="#G">G</a>
<a href="#H">H</a>
<a href="#I">I</a>
<a href="#L">L</a>
<a href="#M">M</a>
<a href="#N">N</a>
<a href="#P">P</a>
<a href="#R">R</a>
<a href="#S">S</a>
<a href="#T">T</a>
<a href="#U">U</a>
<a href="#V">V</a>
<a href="#W">W</a>
<a href="#X">X</a>
<a href="#Y">Y</a>
</p>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="grid-package.html">grid-package</a></td>
<td>The Grid Graphics Package</td></tr>
</table>
<h2><a id="A">-- A --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="absolute.size.html">absolute.size</a></td>
<td>Absolute Size of a Grob</td></tr>
<tr><td style="width: 25%;"><a href="grid.add.html">addGrob</a></td>
<td>Add a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="gEdit.html">applyEdit</a></td>
<td>Create and Apply Edit Objects</td></tr>
<tr><td style="width: 25%;"><a href="gEdit.html">applyEdits</a></td>
<td>Create and Apply Edit Objects</td></tr>
<tr><td style="width: 25%;"><a href="grid.curve.html">arcCurvature</a></td>
<td>Draw a Curve Between Locations</td></tr>
<tr><td style="width: 25%;"><a href="arrow.html">arrow</a></td>
<td>Describe arrows to add to a line.</td></tr>
<tr><td style="width: 25%;"><a href="as.mask.html">as.mask</a></td>
<td>Define a Soft Mask</td></tr>
<tr><td style="width: 25%;"><a href="grid.stroke.html">as.path</a></td>
<td>Stroke or Fill a Path</td></tr>
<tr><td style="width: 25%;"><a href="widthDetails.html">ascentDetails</a></td>
<td>Width and Height of a grid grob</td></tr>
</table>
<h2><a id="B">-- B --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="grid.bezier.html">bezierGrob</a></td>
<td>Draw a Bezier Curve</td></tr>
<tr><td style="width: 25%;"><a href="xsplinePoints.html">bezierPoints</a></td>
<td>Return the points that would be used to draw an Xspline (or a Bezier curve).</td></tr>
</table>
<h2><a id="C">-- C --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="calcStringMetric.html">calcStringMetric</a></td>
<td>Calculate Metric Information for Text</td></tr>
<tr><td style="width: 25%;"><a href="grid.grob.html">childNames</a></td>
<td>Create Grid Graphical Objects, aka "Grob"s</td></tr>
<tr><td style="width: 25%;"><a href="grid.circle.html">circleGrob</a></td>
<td>Draw a Circle</td></tr>
<tr><td style="width: 25%;"><a href="grid.clip.html">clipGrob</a></td>
<td>Set the Clipping Region</td></tr>
<tr><td style="width: 25%;"><a href="grid.convert.html">convertHeight</a></td>
<td>Convert Between Different grid Coordinate Systems</td></tr>
<tr><td style="width: 25%;"><a href="grid.convert.html">convertUnit</a></td>
<td>Convert Between Different grid Coordinate Systems</td></tr>
<tr><td style="width: 25%;"><a href="grid.convert.html">convertWidth</a></td>
<td>Convert Between Different grid Coordinate Systems</td></tr>
<tr><td style="width: 25%;"><a href="grid.convert.html">convertX</a></td>
<td>Convert Between Different grid Coordinate Systems</td></tr>
<tr><td style="width: 25%;"><a href="grid.convert.html">convertY</a></td>
<td>Convert Between Different grid Coordinate Systems</td></tr>
<tr><td style="width: 25%;"><a href="current.viewport.html">current.parent</a></td>
<td>Get the Current Grid Viewport (Tree)</td></tr>
<tr><td style="width: 25%;"><a href="current.viewport.html">current.rotation</a></td>
<td>Get the Current Grid Viewport (Tree)</td></tr>
<tr><td style="width: 25%;"><a href="current.viewport.html">current.transform</a></td>
<td>Get the Current Grid Viewport (Tree)</td></tr>
<tr><td style="width: 25%;"><a href="current.viewport.html">current.viewport</a></td>
<td>Get the Current Grid Viewport (Tree)</td></tr>
<tr><td style="width: 25%;"><a href="current.viewport.html">current.vpPath</a></td>
<td>Get the Current Grid Viewport (Tree)</td></tr>
<tr><td style="width: 25%;"><a href="current.viewport.html">current.vpTree</a></td>
<td>Get the Current Grid Viewport (Tree)</td></tr>
<tr><td style="width: 25%;"><a href="grid.curve.html">curveGrob</a></td>
<td>Draw a Curve Between Locations</td></tr>
</table>
<h2><a id="D">-- D --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="dataViewport.html">dataViewport</a></td>
<td>Create a Viewport with Scales based on Data</td></tr>
<tr><td style="width: 25%;"><a href="grid.group.html">defineGrob</a></td>
<td>Draw a Group</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">defnRotate</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">defnScale</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">defnTranslate</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="grid.delay.html">delayGrob</a></td>
<td>Encapsulate calculations and generating a grob</td></tr>
<tr><td style="width: 25%;"><a href="depth.html">depth</a></td>
<td>Determine the number of levels in an object.</td></tr>
<tr><td style="width: 25%;"><a href="depth.html">depth.path</a></td>
<td>Determine the number of levels in an object.</td></tr>
<tr><td style="width: 25%;"><a href="depth.html">depth.viewport</a></td>
<td>Determine the number of levels in an object.</td></tr>
<tr><td style="width: 25%;"><a href="widthDetails.html">descentDetails</a></td>
<td>Width and Height of a grid grob</td></tr>
<tr><td style="width: 25%;"><a href="deviceLoc.html">deviceDim</a></td>
<td>Convert Viewport Location to Device Location</td></tr>
<tr><td style="width: 25%;"><a href="deviceLoc.html">deviceLoc</a></td>
<td>Convert Viewport Location to Device Location</td></tr>
<tr><td style="width: 25%;"><a href="viewports.html">downViewport</a></td>
<td>Maintaining and Navigating the Grid Viewport Tree</td></tr>
<tr><td style="width: 25%;"><a href="drawDetails.html">drawDetails</a></td>
<td>Customising grid Drawing</td></tr>
</table>
<h2><a id="E">-- E --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="editDetails.html">editDetails</a></td>
<td>Customising grid Editing</td></tr>
<tr><td style="width: 25%;"><a href="grid.edit.html">editGrob</a></td>
<td>Edit the Description of a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="editViewport.html">editViewport</a></td>
<td>Modify a Viewport</td></tr>
<tr><td style="width: 25%;"><a href="gridCoords.html">emptyCoords</a></td>
<td>Create Sets of Coordinates for Grid Grobs</td></tr>
<tr><td style="width: 25%;"><a href="gridCoords.html">emptyGrobCoords</a></td>
<td>Create Sets of Coordinates for Grid Grobs</td></tr>
<tr><td style="width: 25%;"><a href="gridCoords.html">emptyGTreeCoords</a></td>
<td>Create Sets of Coordinates for Grid Grobs</td></tr>
<tr><td style="width: 25%;"><a href="grid.display.list.html">engine.display.list</a></td>
<td>Control the Grid Display List</td></tr>
<tr><td style="width: 25%;"><a href="explode.html">explode</a></td>
<td>Explode a path into its components.</td></tr>
<tr><td style="width: 25%;"><a href="explode.html">explode.character</a></td>
<td>Explode a path into its components.</td></tr>
<tr><td style="width: 25%;"><a href="explode.html">explode.path</a></td>
<td>Explode a path into its components.</td></tr>
</table>
<h2><a id="F">-- F --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="grid.stroke.html">fillGrob</a></td>
<td>Stroke or Fill a Path</td></tr>
<tr><td style="width: 25%;"><a href="grid.stroke.html">fillGrob.GridPath</a></td>
<td>Stroke or Fill a Path</td></tr>
<tr><td style="width: 25%;"><a href="grid.stroke.html">fillGrob.grob</a></td>
<td>Stroke or Fill a Path</td></tr>
<tr><td style="width: 25%;"><a href="grid.stroke.html">fillStrokeGrob</a></td>
<td>Stroke or Fill a Path</td></tr>
<tr><td style="width: 25%;"><a href="grid.stroke.html">fillStrokeGrob.GridPath</a></td>
<td>Stroke or Fill a Path</td></tr>
<tr><td style="width: 25%;"><a href="grid.stroke.html">fillStrokeGrob.grob</a></td>
<td>Stroke or Fill a Path</td></tr>
<tr><td style="width: 25%;"><a href="grid.force.html">forceGrob</a></td>
<td>Force a grob into its components</td></tr>
<tr><td style="width: 25%;"><a href="grid.frame.html">frameGrob</a></td>
<td>Create a Frame for Packing Objects</td></tr>
<tr><td style="width: 25%;"><a href="grid.function.html">functionGrob</a></td>
<td>Draw a curve representing a function</td></tr>
</table>
<h2><a id="G">-- G --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="gEdit.html">gEdit</a></td>
<td>Create and Apply Edit Objects</td></tr>
<tr><td style="width: 25%;"><a href="gEdit.html">gEditList</a></td>
<td>Create and Apply Edit Objects</td></tr>
<tr><td style="width: 25%;"><a href="gpar.html">get.gpar</a></td>
<td>Handling Grid Graphical Parameters</td></tr>
<tr><td style="width: 25%;"><a href="grid.get.html">getGrob</a></td>
<td>Get a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="getNames.html">getNames</a></td>
<td>List the names of grobs on the display list</td></tr>
<tr><td style="width: 25%;"><a href="grid.grob.html">gList</a></td>
<td>Create Grid Graphical Objects, aka "Grob"s</td></tr>
<tr><td style="width: 25%;"><a href="grid.glyph.html">glyphGrob</a></td>
<td>Draw Typeset Glyphs</td></tr>
<tr><td style="width: 25%;"><a href="gpar.html">gpar</a></td>
<td>Handling Grid Graphical Parameters</td></tr>
<tr><td style="width: 25%;"><a href="gPath.html">gPath</a></td>
<td>Concatenate Grob Names</td></tr>
<tr><td style="width: 25%;"><a href="Grid.html">Grid</a></td>
<td>Grid Graphics</td></tr>
<tr><td style="width: 25%;"><a href="grid.function.html">grid.abline</a></td>
<td>Draw a curve representing a function</td></tr>
<tr><td style="width: 25%;"><a href="grid.add.html">grid.add</a></td>
<td>Add a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="grid.bezier.html">grid.bezier</a></td>
<td>Draw a Bezier Curve</td></tr>
<tr><td style="width: 25%;"><a href="grid.cap.html">grid.cap</a></td>
<td>Capture a raster image</td></tr>
<tr><td style="width: 25%;"><a href="grid.circle.html">grid.circle</a></td>
<td>Draw a Circle</td></tr>
<tr><td style="width: 25%;"><a href="grid.clip.html">grid.clip</a></td>
<td>Set the Clipping Region</td></tr>
<tr><td style="width: 25%;"><a href="grid.copy.html">grid.copy</a></td>
<td>Make a Copy of a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="grid.curve.html">grid.curve</a></td>
<td>Draw a Curve Between Locations</td></tr>
<tr><td style="width: 25%;"><a href="grid.group.html">grid.define</a></td>
<td>Draw a Group</td></tr>
<tr><td style="width: 25%;"><a href="grid.delay.html">grid.delay</a></td>
<td>Encapsulate calculations and generating a grob</td></tr>
<tr><td style="width: 25%;"><a href="grid.display.list.html">grid.display.list</a></td>
<td>Control the Grid Display List</td></tr>
<tr><td style="width: 25%;"><a href="grid.DLapply.html">grid.DLapply</a></td>
<td>Modify the Grid Display List</td></tr>
<tr><td style="width: 25%;"><a href="grid.draw.html">grid.draw</a></td>
<td>Draw a grid grob</td></tr>
<tr><td style="width: 25%;"><a href="grid.edit.html">grid.edit</a></td>
<td>Edit the Description of a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="grid.stroke.html">grid.fill</a></td>
<td>Stroke or Fill a Path</td></tr>
<tr><td style="width: 25%;"><a href="grid.stroke.html">grid.fillStroke</a></td>
<td>Stroke or Fill a Path</td></tr>
<tr><td style="width: 25%;"><a href="grid.force.html">grid.force</a></td>
<td>Force a grob into its components</td></tr>
<tr><td style="width: 25%;"><a href="grid.force.html">grid.force.default</a></td>
<td>Force a grob into its components</td></tr>
<tr><td style="width: 25%;"><a href="grid.force.html">grid.force.gPath</a></td>
<td>Force a grob into its components</td></tr>
<tr><td style="width: 25%;"><a href="grid.force.html">grid.force.grob</a></td>
<td>Force a grob into its components</td></tr>
<tr><td style="width: 25%;"><a href="grid.frame.html">grid.frame</a></td>
<td>Create a Frame for Packing Objects</td></tr>
<tr><td style="width: 25%;"><a href="grid.function.html">grid.function</a></td>
<td>Draw a curve representing a function</td></tr>
<tr><td style="width: 25%;"><a href="grid.edit.html">grid.gedit</a></td>
<td>Edit the Description of a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="grid.get.html">grid.get</a></td>
<td>Get a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="grid.get.html">grid.gget</a></td>
<td>Get a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="grid.glyph.html">grid.glyph</a></td>
<td>Draw Typeset Glyphs</td></tr>
<tr><td style="width: 25%;"><a href="grid.grab.html">grid.grab</a></td>
<td>Grab the current grid output</td></tr>
<tr><td style="width: 25%;"><a href="grid.grab.html">grid.grabExpr</a></td>
<td>Grab the current grid output</td></tr>
<tr><td style="width: 25%;"><a href="grid.remove.html">grid.gremove</a></td>
<td>Remove a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="grid.grep.html">grid.grep</a></td>
<td>Search for Grobs and/or Viewports</td></tr>
<tr><td style="width: 25%;"><a href="grid.grill.html">grid.grill</a></td>
<td>Draw a Grill</td></tr>
<tr><td style="width: 25%;"><a href="grid.group.html">grid.group</a></td>
<td>Draw a Group</td></tr>
<tr><td style="width: 25%;"><a href="grid.layout.html">grid.layout</a></td>
<td>Create a Grid Layout</td></tr>
<tr><td style="width: 25%;"><a href="legendGrob.html">grid.legend</a></td>
<td>Constructing a Legend Grob</td></tr>
<tr><td style="width: 25%;"><a href="grid.move.to.html">grid.line.to</a></td>
<td>Move or Draw to a Specified Position</td></tr>
<tr><td style="width: 25%;"><a href="grid.lines.html">grid.lines</a></td>
<td>Draw Lines in a Grid Viewport</td></tr>
<tr><td style="width: 25%;"><a href="grid.locator.html">grid.locator</a></td>
<td>Capture a Mouse Click</td></tr>
<tr><td style="width: 25%;"><a href="grid.ls.html">grid.ls</a></td>
<td>List the names of grobs or viewports</td></tr>
<tr><td style="width: 25%;"><a href="grid.move.to.html">grid.move.to</a></td>
<td>Move or Draw to a Specified Position</td></tr>
<tr><td style="width: 25%;"><a href="grid.newpage.html">grid.newpage</a></td>
<td>Move to a New Page on a Grid Device</td></tr>
<tr><td style="width: 25%;"><a href="grid.null.html">grid.null</a></td>
<td>Null Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="grid.pack.html">grid.pack</a></td>
<td>Pack an Object within a Frame</td></tr>
<tr><td style="width: 25%;"><a href="grid.path.html">grid.path</a></td>
<td>Draw a Path</td></tr>
<tr><td style="width: 25%;"><a href="grid.place.html">grid.place</a></td>
<td>Place an Object within a Frame</td></tr>
<tr><td style="width: 25%;"><a href="grid.plot.and.legend.html">grid.plot.and.legend</a></td>
<td>A Simple Plot and Legend Demo</td></tr>
<tr><td style="width: 25%;"><a href="grid.points.html">grid.points</a></td>
<td>Draw Data Symbols</td></tr>
<tr><td style="width: 25%;"><a href="grid.polygon.html">grid.polygon</a></td>
<td>Draw a Polygon</td></tr>
<tr><td style="width: 25%;"><a href="grid.lines.html">grid.polyline</a></td>
<td>Draw Lines in a Grid Viewport</td></tr>
<tr><td style="width: 25%;"><a href="grid.pretty.html">grid.pretty</a></td>
<td>Generate a Sensible ("Pretty") Set of Breakpoints</td></tr>
<tr><td style="width: 25%;"><a href="grid.raster.html">grid.raster</a></td>
<td>Render a raster object</td></tr>
<tr><td style="width: 25%;"><a href="grid.record.html">grid.record</a></td>
<td>Encapsulate calculations and drawing</td></tr>
<tr><td style="width: 25%;"><a href="grid.rect.html">grid.rect</a></td>
<td>Draw rectangles</td></tr>
<tr><td style="width: 25%;"><a href="grid.refresh.html">grid.refresh</a></td>
<td>Refresh the current grid scene</td></tr>
<tr><td style="width: 25%;"><a href="grid.remove.html">grid.remove</a></td>
<td>Remove a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="grid.reorder.html">grid.reorder</a></td>
<td>Reorder the children of a gTree</td></tr>
<tr><td style="width: 25%;"><a href="grid.force.html">grid.revert</a></td>
<td>Force a grob into its components</td></tr>
<tr><td style="width: 25%;"><a href="grid.force.html">grid.revert.gPath</a></td>
<td>Force a grob into its components</td></tr>
<tr><td style="width: 25%;"><a href="grid.force.html">grid.revert.grob</a></td>
<td>Force a grob into its components</td></tr>
<tr><td style="width: 25%;"><a href="grid.roundrect.html">grid.roundrect</a></td>
<td>Draw a rectangle with rounded corners</td></tr>
<tr><td style="width: 25%;"><a href="grid.segments.html">grid.segments</a></td>
<td>Draw Line Segments</td></tr>
<tr><td style="width: 25%;"><a href="grid.set.html">grid.set</a></td>
<td>Set a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="grid.show.layout.html">grid.show.layout</a></td>
<td>Draw a Diagram of a Grid Layout</td></tr>
<tr><td style="width: 25%;"><a href="grid.show.viewport.html">grid.show.viewport</a></td>
<td>Draw a Diagram of a Grid Viewport</td></tr>
<tr><td style="width: 25%;"><a href="grid.stroke.html">grid.stroke</a></td>
<td>Stroke or Fill a Path</td></tr>
<tr><td style="width: 25%;"><a href="grid.text.html">grid.text</a></td>
<td>Draw Text</td></tr>
<tr><td style="width: 25%;"><a href="grid.group.html">grid.use</a></td>
<td>Draw a Group</td></tr>
<tr><td style="width: 25%;"><a href="grid.xaxis.html">grid.xaxis</a></td>
<td>Draw an X-Axis</td></tr>
<tr><td style="width: 25%;"><a href="grid.xspline.html">grid.xspline</a></td>
<td>Draw an Xspline</td></tr>
<tr><td style="width: 25%;"><a href="grid.yaxis.html">grid.yaxis</a></td>
<td>Draw a Y-Axis</td></tr>
<tr><td style="width: 25%;"><a href="gridCoords.html">gridCoords</a></td>
<td>Create Sets of Coordinates for Grid Grobs</td></tr>
<tr><td style="width: 25%;"><a href="gridCoords.html">gridGrobCoords</a></td>
<td>Create Sets of Coordinates for Grid Grobs</td></tr>
<tr><td style="width: 25%;"><a href="gridCoords.html">gridGTreeCoords</a></td>
<td>Create Sets of Coordinates for Grid Grobs</td></tr>
<tr><td style="width: 25%;"><a href="grid.grob.html">grob</a></td>
<td>Create Grid Graphical Objects, aka "Grob"s</td></tr>
<tr><td style="width: 25%;"><a href="grobWidth.html">grobAscent</a></td>
<td>Create a Unit Describing the Width of a Grob</td></tr>
<tr><td style="width: 25%;"><a href="grobCoords.html">grobCoords</a></td>
<td>Calculate Points on the Perimeter of a Grob</td></tr>
<tr><td style="width: 25%;"><a href="grobWidth.html">grobDescent</a></td>
<td>Create a Unit Describing the Width of a Grob</td></tr>
<tr><td style="width: 25%;"><a href="grobWidth.html">grobHeight</a></td>
<td>Create a Unit Describing the Width of a Grob</td></tr>
<tr><td style="width: 25%;"><a href="grobName.html">grobName</a></td>
<td>Generate a Name for a Grob</td></tr>
<tr><td style="width: 25%;"><a href="grid.ls.html">grobPathListing</a></td>
<td>List the names of grobs or viewports</td></tr>
<tr><td style="width: 25%;"><a href="grobCoords.html">grobPoints</a></td>
<td>Calculate Points on the Perimeter of a Grob</td></tr>
<tr><td style="width: 25%;"><a href="grid.grob.html">grobTree</a></td>
<td>Create Grid Graphical Objects, aka "Grob"s</td></tr>
<tr><td style="width: 25%;"><a href="grobWidth.html">grobWidth</a></td>
<td>Create a Unit Describing the Width of a Grob</td></tr>
<tr><td style="width: 25%;"><a href="grobX.html">grobX</a></td>
<td>Create a Unit Describing a Grob Boundary Location</td></tr>
<tr><td style="width: 25%;"><a href="grobX.html">grobY</a></td>
<td>Create a Unit Describing a Grob Boundary Location</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">groupFlip</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="grid.group.html">groupGrob</a></td>
<td>Draw a Group</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">groupRotate</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">groupScale</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">groupShear</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">groupTranslate</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="grid.grob.html">gTree</a></td>
<td>Create Grid Graphical Objects, aka "Grob"s</td></tr>
</table>
<h2><a id="H">-- H --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="widthDetails.html">heightDetails</a></td>
<td>Width and Height of a grid grob</td></tr>
</table>
<h2><a id="I">-- I --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="grid.grob.html">is.grob</a></td>
<td>Create Grid Graphical Objects, aka "Grob"s</td></tr>
<tr><td style="width: 25%;"><a href="unit.html">is.unit</a></td>
<td>Function to Create a Unit Object</td></tr>
<tr><td style="width: 25%;"><a href="grobCoords.html">isClosed</a></td>
<td>Calculate Points on the Perimeter of a Grob</td></tr>
<tr><td style="width: 25%;"><a href="gridCoords.html">isEmptyCoords</a></td>
<td>Create Sets of Coordinates for Grid Grobs</td></tr>
</table>
<h2><a id="L">-- L --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="legendGrob.html">legendGrob</a></td>
<td>Constructing a Legend Grob</td></tr>
<tr><td style="width: 25%;"><a href="patterns.html">linearGradient</a></td>
<td>Define Gradient and Pattern Fills</td></tr>
<tr><td style="width: 25%;"><a href="grid.lines.html">linesGrob</a></td>
<td>Draw Lines in a Grid Viewport</td></tr>
<tr><td style="width: 25%;"><a href="grid.move.to.html">lineToGrob</a></td>
<td>Move or Draw to a Specified Position</td></tr>
</table>
<h2><a id="M">-- M --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="makeContent.html">makeContent</a></td>
<td>Customised grid Grobs</td></tr>
<tr><td style="width: 25%;"><a href="makeContent.html">makeContext</a></td>
<td>Customised grid Grobs</td></tr>
<tr><td style="width: 25%;"><a href="grid.move.to.html">moveToGrob</a></td>
<td>Move or Draw to a Specified Position</td></tr>
</table>
<h2><a id="N">-- N --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="grid.ls.html">nestedListing</a></td>
<td>List the names of grobs or viewports</td></tr>
<tr><td style="width: 25%;"><a href="grid.null.html">nullGrob</a></td>
<td>Null Graphical Object</td></tr>
</table>
<h2><a id="P">-- P --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="grid.pack.html">packGrob</a></td>
<td>Pack an Object within a Frame</td></tr>
<tr><td style="width: 25%;"><a href="grid.path.html">pathGrob</a></td>
<td>Draw a Path</td></tr>
<tr><td style="width: 25%;"><a href="grid.ls.html">pathListing</a></td>
<td>List the names of grobs or viewports</td></tr>
<tr><td style="width: 25%;"><a href="patterns.html">pattern</a></td>
<td>Define Gradient and Pattern Fills</td></tr>
<tr><td style="width: 25%;"><a href="patterns.html">patterns</a></td>
<td>Define Gradient and Pattern Fills</td></tr>
<tr><td style="width: 25%;"><a href="grid.place.html">placeGrob</a></td>
<td>Place an Object within a Frame</td></tr>
<tr><td style="width: 25%;"><a href="plotViewport.html">plotViewport</a></td>
<td>Create a Viewport with a Standard Plot Layout</td></tr>
<tr><td style="width: 25%;"><a href="grid.points.html">pointsGrob</a></td>
<td>Draw Data Symbols</td></tr>
<tr><td style="width: 25%;"><a href="grid.polygon.html">polygonGrob</a></td>
<td>Draw a Polygon</td></tr>
<tr><td style="width: 25%;"><a href="grid.lines.html">polylineGrob</a></td>
<td>Draw Lines in a Grid Viewport</td></tr>
<tr><td style="width: 25%;"><a href="viewports.html">popViewport</a></td>
<td>Maintaining and Navigating the Grid Viewport Tree</td></tr>
<tr><td style="width: 25%;"><a href="drawDetails.html">postDrawDetails</a></td>
<td>Customising grid Drawing</td></tr>
<tr><td style="width: 25%;"><a href="drawDetails.html">preDrawDetails</a></td>
<td>Customising grid Drawing</td></tr>
<tr><td style="width: 25%;"><a href="viewports.html">pushViewport</a></td>
<td>Maintaining and Navigating the Grid Viewport Tree</td></tr>
</table>
<h2><a id="R">-- R --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="patterns.html">radialGradient</a></td>
<td>Define Gradient and Pattern Fills</td></tr>
<tr><td style="width: 25%;"><a href="grid.raster.html">rasterGrob</a></td>
<td>Render a raster object</td></tr>
<tr><td style="width: 25%;"><a href="grid.record.html">recordGrob</a></td>
<td>Encapsulate calculations and drawing</td></tr>
<tr><td style="width: 25%;"><a href="grid.rect.html">rectGrob</a></td>
<td>Draw rectangles</td></tr>
<tr><td style="width: 25%;"><a href="grid.remove.html">removeGrob</a></td>
<td>Remove a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="grid.reorder.html">reorderGrob</a></td>
<td>Reorder the children of a gTree</td></tr>
<tr><td style="width: 25%;"><a href="valid.just.html">resolveHJust</a></td>
<td>Validate a Justification</td></tr>
<tr><td style="width: 25%;"><a href="resolveRasterSize.html">resolveRasterSize</a></td>
<td>Utility function to resolve the size of a raster grob</td></tr>
<tr><td style="width: 25%;"><a href="valid.just.html">resolveVJust</a></td>
<td>Validate a Justification</td></tr>
<tr><td style="width: 25%;"><a href="grid.roundrect.html">roundrect</a></td>
<td>Draw a rectangle with rounded corners</td></tr>
<tr><td style="width: 25%;"><a href="grid.roundrect.html">roundrectGrob</a></td>
<td>Draw a rectangle with rounded corners</td></tr>
</table>
<h2><a id="S">-- S --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="viewports.html">seekViewport</a></td>
<td>Maintaining and Navigating the Grid Viewport Tree</td></tr>
<tr><td style="width: 25%;"><a href="grid.segments.html">segmentsGrob</a></td>
<td>Draw Line Segments</td></tr>
<tr><td style="width: 25%;"><a href="grid.add.html">setChildren</a></td>
<td>Add a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="grid.set.html">setGrob</a></td>
<td>Set a Grid Graphical Object</td></tr>
<tr><td style="width: 25%;"><a href="showGrob.html">showGrob</a></td>
<td>Label grid grobs.</td></tr>
<tr><td style="width: 25%;"><a href="showViewport.html">showViewport</a></td>
<td>Display grid viewports.</td></tr>
<tr><td style="width: 25%;"><a href="stringWidth.html">stringAscent</a></td>
<td>Create a Unit Describing the Width and Height of a String or Math Expression</td></tr>
<tr><td style="width: 25%;"><a href="stringWidth.html">stringDescent</a></td>
<td>Create a Unit Describing the Width and Height of a String or Math Expression</td></tr>
<tr><td style="width: 25%;"><a href="stringWidth.html">stringHeight</a></td>
<td>Create a Unit Describing the Width and Height of a String or Math Expression</td></tr>
<tr><td style="width: 25%;"><a href="stringWidth.html">stringWidth</a></td>
<td>Create a Unit Describing the Width and Height of a String or Math Expression</td></tr>
<tr><td style="width: 25%;"><a href="grid.stroke.html">strokeGrob</a></td>
<td>Stroke or Fill a Path</td></tr>
<tr><td style="width: 25%;"><a href="grid.stroke.html">strokeGrob.GridPath</a></td>
<td>Stroke or Fill a Path</td></tr>
<tr><td style="width: 25%;"><a href="grid.stroke.html">strokeGrob.grob</a></td>
<td>Stroke or Fill a Path</td></tr>
</table>
<h2><a id="T">-- T --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="grid.text.html">textGrob</a></td>
<td>Draw Text</td></tr>
</table>
<h2><a id="U">-- U --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="unit.html">unit</a></td>
<td>Function to Create a Unit Object</td></tr>
<tr><td style="width: 25%;"><a href="unit.c.html">unit.c</a></td>
<td>Combine Unit Objects</td></tr>
<tr><td style="width: 25%;"><a href="unit.length.html">unit.length</a></td>
<td>Length of a Unit Object</td></tr>
<tr><td style="width: 25%;"><a href="unit.pmin.html">unit.pmax</a></td>
<td>Parallel Unit Minima and Maxima</td></tr>
<tr><td style="width: 25%;"><a href="unit.pmin.html">unit.pmin</a></td>
<td>Parallel Unit Minima and Maxima</td></tr>
<tr><td style="width: 25%;"><a href="unit.pmin.html">unit.psum</a></td>
<td>Parallel Unit Minima and Maxima</td></tr>
<tr><td style="width: 25%;"><a href="unit.rep.html">unit.rep</a></td>
<td>Replicate Elements of Unit Objects</td></tr>
<tr><td style="width: 25%;"><a href="unitType.html">unitType</a></td>
<td>Return the Units of a Unit Object</td></tr>
<tr><td style="width: 25%;"><a href="viewports.html">upViewport</a></td>
<td>Maintaining and Navigating the Grid Viewport Tree</td></tr>
<tr><td style="width: 25%;"><a href="grid.group.html">useGrob</a></td>
<td>Draw a Group</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">useRotate</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">useScale</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">useTranslate</a></td>
<td>Define a Group Transformation</td></tr>
</table>
<h2><a id="V">-- V --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="valid.just.html">valid.just</a></td>
<td>Validate a Justification</td></tr>
<tr><td style="width: 25%;"><a href="validDetails.html">validDetails</a></td>
<td>Customising grid grob Validation</td></tr>
<tr><td style="width: 25%;"><a href="viewport.html">viewport</a></td>
<td>Create a Grid Viewport</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">viewportRotate</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">viewportScale</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">viewportTransform</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="viewportTransform.html">viewportTranslate</a></td>
<td>Define a Group Transformation</td></tr>
<tr><td style="width: 25%;"><a href="viewport.html">vpList</a></td>
<td>Create a Grid Viewport</td></tr>
<tr><td style="width: 25%;"><a href="vpPath.html">vpPath</a></td>
<td>Concatenate Viewport Names</td></tr>
<tr><td style="width: 25%;"><a href="viewport.html">vpStack</a></td>
<td>Create a Grid Viewport</td></tr>
<tr><td style="width: 25%;"><a href="viewport.html">vpTree</a></td>
<td>Create a Grid Viewport</td></tr>
</table>
<h2><a id="W">-- W --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="widthDetails.html">widthDetails</a></td>
<td>Width and Height of a grid grob</td></tr>
</table>
<h2><a id="X">-- X --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="grid.xaxis.html">xaxisGrob</a></td>
<td>Draw an X-Axis</td></tr>
<tr><td style="width: 25%;"><a href="xDetails.html">xDetails</a></td>
<td>Boundary of a grid grob</td></tr>
<tr><td style="width: 25%;"><a href="grid.xspline.html">xsplineGrob</a></td>
<td>Draw an Xspline</td></tr>
<tr><td style="width: 25%;"><a href="xsplinePoints.html">xsplinePoints</a></td>
<td>Return the points that would be used to draw an Xspline (or a Bezier curve).</td></tr>
</table>
<h2><a id="Y">-- Y --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="grid.yaxis.html">yaxisGrob</a></td>
<td>Draw a Y-Axis</td></tr>
<tr><td style="width: 25%;"><a href="xDetails.html">yDetails</a></td>
<td>Boundary of a grid grob</td></tr>
</table>
</div></body></html>
@media screen {
.container {
padding-right: 10px;
padding-left: 10px;
margin-right: auto;
margin-left: auto;
max-width: 900px;
}
}
.rimage img { /* from knitr - for examples and demos */
width: 96%;
margin-left: 2%;
}
.katex { font-size: 1.1em; }
code {
color: inherit;
background: inherit;
}
body {
line-height: 1.4;
background: white;
color: black;
}
a:link {
background: white;
color: blue;
}
a:visited {
background: white;
color: rgb(50%, 0%, 50%);
}
h1 {
background: white;
color: rgb(55%, 55%, 55%);
font-family: monospace;
font-size: 1.4em; /* x-large; */
text-align: center;
}
h2 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
text-align: center;
}
h3 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
}
h4 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
font-size: 1.2em; /* large; */
}
h5 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
}
h6 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
}
img.toplogo {
width: 4em;
vertical-align: middle;
}
img.arrow {
width: 30px;
height: 30px;
border: 0;
}
span.acronym {
font-size: small;
}
span.env {
font-family: monospace;
}
span.file {
font-family: monospace;
}
span.option{
font-family: monospace;
}
span.pkg {
font-weight: bold;
}
span.samp{
font-family: monospace;
}
div.vignettes a:hover {
background: rgb(85%, 85%, 85%);
}
tr {
vertical-align: top;
}
span.rlang {
font-family: Courier New, Courier;
color: #666666;
}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/00Index.html","start":0,"end":32796},{"filename":"/R.css","start":32796,"end":34640}],"remote_package_size":34640}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
{"files":[{"filename":"/bugs.R","start":0,"end":1307},{"filename":"/clippaths.R","start":1307,"end":12612},{"filename":"/compositing.R","start":12612,"end":15938},{"filename":"/coords.R","start":15938,"end":39430},{"filename":"/glyphs.R","start":39430,"end":52071},{"filename":"/grep.R","start":52071,"end":53343},{"filename":"/grep.Rout.save","start":53343,"end":55618},{"filename":"/groups.R","start":55618,"end":73504},{"filename":"/masks.R","start":73504,"end":88599},{"filename":"/nesting.R","start":88599,"end":92042},{"filename":"/paths.R","start":92042,"end":99555},{"filename":"/patterns.R","start":99555,"end":148267},{"filename":"/reg.R","start":148267,"end":166611},{"filename":"/testls.R","start":166611,"end":171924},{"filename":"/testls.Rout.save","start":171924,"end":180299},{"filename":"/units.R","start":180299,"end":186519}],"remote_package_size":186519}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
{"files":[{"filename":"/AnIndex","start":0,"end":14357},{"filename":"/aliases.rds","start":14357,"end":18469},{"filename":"/methods.rdb","start":18469,"end":535347},{"filename":"/methods.rdx","start":535347,"end":537398},{"filename":"/paths.rds","start":537398,"end":538285}],"remote_package_size":538285}

View file

@ -0,0 +1,857 @@
<!DOCTYPE html>
<html>
<head><title>R: Formal Methods and Classes</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body><div class="container">
<h1> Formal Methods and Classes
<img class="toplogo" src="../../../doc/html/Rlogo.svg" alt="[R logo]" />
</h1>
<hr/>
<div style="text-align: center;">
<a href="../../../doc/html/packages.html"><img class="arrow" src="../../../doc/html/left.jpg" alt="[Up]" /></a>
<a href="../../../doc/html/index.html"><img class="arrow" src="../../../doc/html/up.jpg" alt="[Top]" /></a>
</div><h2>Documentation for package &lsquo;methods&rsquo; version 4.3.0</h2>
<ul><li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li>
</ul>
<h2>Help Pages</h2>
<p style="text-align: center;">
<a href="# "> </a>
<a href="#A">A</a>
<a href="#B">B</a>
<a href="#C">C</a>
<a href="#D">D</a>
<a href="#E">E</a>
<a href="#F">F</a>
<a href="#G">G</a>
<a href="#H">H</a>
<a href="#I">I</a>
<a href="#L">L</a>
<a href="#M">M</a>
<a href="#N">N</a>
<a href="#O">O</a>
<a href="#P">P</a>
<a href="#R">R</a>
<a href="#S">S</a>
<a href="#T">T</a>
<a href="#U">U</a>
<a href="#V">V</a>
<a href="#W">W</a>
<a href="#misc">misc</a>
</p>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="methods-package.html">methods-package</a></td>
<td>Formal Methods and Classes</td></tr>
</table>
<h2><a id="A">-- A --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="refClass.html">activeBindingFunction-class</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">anova-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">anova.glm-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">anova.glm.null-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">ANY-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">aov-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="S4groupGeneric.html">Arith</a></td>
<td>S4 Group Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="StructureClasses.html">array-class</a></td>
<td>Classes Corresponding to Basic Structures</td></tr>
<tr><td style="width: 25%;"><a href="as.html">as</a></td>
<td>Force an Object to Belong to a Class</td></tr>
<tr><td style="width: 25%;"><a href="as.html">as&lt;-</a></td>
<td>Force an Object to Belong to a Class</td></tr>
</table>
<h2><a id="B">-- B --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="MethodsList-class.html">body&lt;--method</a></td>
<td>Class MethodsList, Defunct Representation of Methods</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">builtin-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
</table>
<h2><a id="C">-- C --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="LanguageClasses.html">call-class</a></td>
<td>Classes to Represent Unevaluated Language Objects</td></tr>
<tr><td style="width: 25%;"><a href="callGeneric.html">callGeneric</a></td>
<td>Call the Current Generic Function from a Method</td></tr>
<tr><td style="width: 25%;"><a href="NextMethod.html">callNextMethod</a></td>
<td>Call an Inherited Method</td></tr>
<tr><td style="width: 25%;"><a href="canCoerce.html">canCoerce</a></td>
<td>Can an Object be Coerced to a Certain S4 Class?</td></tr>
<tr><td style="width: 25%;"><a href="cbind2.html">cbind2</a></td>
<td>Combine two Objects by Columns or Rows</td></tr>
<tr><td style="width: 25%;"><a href="cbind2.html">cbind2-method</a></td>
<td>Combine two Objects by Columns or Rows</td></tr>
<tr><td style="width: 25%;"><a href="cbind2.html">cbind2-methods</a></td>
<td>Combine two Objects by Columns or Rows</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">character-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="Classes.html">Classes</a></td>
<td>S4 Class Documentation</td></tr>
<tr><td style="width: 25%;"><a href="classesToAM.html">classesToAM</a></td>
<td>Compute an Adjacency Matrix for Superclasses of Class Definitions</td></tr>
<tr><td style="width: 25%;"><a href="Classes_Details.html">Classes_Details</a></td>
<td>Class Definitions</td></tr>
<tr><td style="width: 25%;"><a href="setClass.html">classGeneratorFunction-class</a></td>
<td>Create a Class Definition</td></tr>
<tr><td style="width: 25%;"><a href="className.html">className</a></td>
<td>Class names including the corresponding package</td></tr>
<tr><td style="width: 25%;"><a href="className.html">className-class</a></td>
<td>Class names including the corresponding package</td></tr>
<tr><td style="width: 25%;"><a href="classRepresentation-class.html">classRepresentation-class</a></td>
<td>Class Objects</td></tr>
<tr><td style="width: 25%;"><a href="setClassUnion.html">ClassUnionRepresentation-class</a></td>
<td>Classes Defined as the Union of Other Classes</td></tr>
<tr><td style="width: 25%;"><a href="setAs.html">coerce</a></td>
<td>Methods for Coercing an Object to a Class</td></tr>
<tr><td style="width: 25%;"><a href="S3Part.html">coerce-method</a></td>
<td>S4 Classes that Contain S3 Classes</td></tr>
<tr><td style="width: 25%;"><a href="setAs.html">coerce-method</a></td>
<td>Methods for Coercing an Object to a Class</td></tr>
<tr><td style="width: 25%;"><a href="setAs.html">coerce-methods</a></td>
<td>Methods for Coercing an Object to a Class</td></tr>
<tr><td style="width: 25%;"><a href="setAs.html">coerce&lt;-</a></td>
<td>Methods for Coercing an Object to a Class</td></tr>
<tr><td style="width: 25%;"><a href="S4groupGeneric.html">Compare</a></td>
<td>S4 Group Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="S4groupGeneric.html">Complex</a></td>
<td>S4 Group Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">complex-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
</table>
<h2><a id="D">-- D --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="setOldClass.html">data.frame-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">data.frameRowLabels-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">Date-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">defaultBindingFunction-class</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">density-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="TraceClasses.html">derivedDefaultMethodWithTrace-class</a></td>
<td>Classes Used Internally to Control Tracing</td></tr>
<tr><td style="width: 25%;"><a href="Documentation.html">Documentation</a></td>
<td>Using and Creating On-line Documentation for Classes and Methods</td></tr>
<tr><td style="width: 25%;"><a href="Documentation.html">Documentation-class</a></td>
<td>Using and Creating On-line Documentation for Classes and Methods</td></tr>
<tr><td style="width: 25%;"><a href="Documentation.html">Documentation-methods</a></td>
<td>Using and Creating On-line Documentation for Classes and Methods</td></tr>
<tr><td style="width: 25%;"><a href="dotsMethods.html">dotsMethods</a></td>
<td>The Use of '...' in Method Signatures</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">double-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">dump.frames-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="GenericFunctions.html">dumpMethod</a></td>
<td>Tools for Managing Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="GenericFunctions.html">dumpMethods</a></td>
<td>Tools for Managing Generic Functions</td></tr>
</table>
<h2><a id="E">-- E --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="EnvironmentClass.html">environment-class</a></td>
<td>Class '"environment"'</td></tr>
<tr><td style="width: 25%;"><a href="stdRefClass.html">envRefClass-class</a></td>
<td>Class '"envRefClass"'</td></tr>
<tr><td style="width: 25%;"><a href="setLoadActions.html">evalOnLoad</a></td>
<td>Set Actions For Package Loading</td></tr>
<tr><td style="width: 25%;"><a href="setLoadActions.html">evalqOnLoad</a></td>
<td>Set Actions For Package Loading</td></tr>
<tr><td style="width: 25%;"><a href="evalSource.html">evalSource</a></td>
<td>Use Function Definitions from a Source File without Reinstalling a Package</td></tr>
<tr><td style="width: 25%;"><a href="getMethod.html">existsMethod</a></td>
<td>Get or Test for the Definition of a Method</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">expression-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="is.html">extends</a></td>
<td>Is an Object from a Class?</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">externalptr-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">externalRefMethod</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">externalRefMethod-class</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
</table>
<h2><a id="F">-- F --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="setOldClass.html">factor-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="findClass.html">findClass</a></td>
<td>Find Class Definitions</td></tr>
<tr><td style="width: 25%;"><a href="GenericFunctions.html">findFunction</a></td>
<td>Tools for Managing Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="getMethod.html">findMethod</a></td>
<td>Get or Test for the Definition of a Method</td></tr>
<tr><td style="width: 25%;"><a href="findMethods.html">findMethods</a></td>
<td>Description of the Methods Defined for a Generic Function</td></tr>
<tr><td style="width: 25%;"><a href="findMethods.html">findMethodSignatures</a></td>
<td>Description of the Methods Defined for a Generic Function</td></tr>
<tr><td style="width: 25%;"><a href="fixPrevious.html">fixPre1.8</a></td>
<td>Fix Objects Saved from R Versions Previous to 1.8</td></tr>
<tr><td style="width: 25%;"><a href="LanguageClasses.html">for-class</a></td>
<td>Classes to Represent Unevaluated Language Objects</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">formula-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">function-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="TraceClasses.html">functionWithTrace-class</a></td>
<td>Classes Used Internally to Control Tracing</td></tr>
</table>
<h2><a id="G">-- G --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="genericFunction-class.html">genericFunction-class</a></td>
<td>Generic Function Objects</td></tr>
<tr><td style="width: 25%;"><a href="GenericFunctions.html">GenericFunctions</a></td>
<td>Tools for Managing Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="TraceClasses.html">genericFunctionWithTrace-class</a></td>
<td>Classes Used Internally to Control Tracing</td></tr>
<tr><td style="width: 25%;"><a href="getClass.html">getClass</a></td>
<td>Get Class Definition</td></tr>
<tr><td style="width: 25%;"><a href="getClass.html">getClassDef</a></td>
<td>Get Class Definition</td></tr>
<tr><td style="width: 25%;"><a href="findClass.html">getClasses</a></td>
<td>Find Class Definitions</td></tr>
<tr><td style="width: 25%;"><a href="GenericFunctions.html">getGenerics</a></td>
<td>Tools for Managing Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="setLoadActions.html">getLoadActions</a></td>
<td>Set Actions For Package Loading</td></tr>
<tr><td style="width: 25%;"><a href="getMethod.html">getMethod</a></td>
<td>Get or Test for the Definition of a Method</td></tr>
<tr><td style="width: 25%;"><a href="findMethods.html">getMethods</a></td>
<td>Description of the Methods Defined for a Generic Function</td></tr>
<tr><td style="width: 25%;"><a href="getPackageName.html">getPackageName</a></td>
<td>The Name associated with a Given Package</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">getRefClass</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="slot.html">getSlots</a></td>
<td>The Slots in an Object from a Formal Class</td></tr>
<tr><td style="width: 25%;"><a href="validObject.html">getValidity</a></td>
<td>Test the Validity of an Object</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">glm-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">glm.null-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="genericFunction-class.html">groupGenericFunction-class</a></td>
<td>Generic Function Objects</td></tr>
<tr><td style="width: 25%;"><a href="S4groupGeneric.html">GroupGenericFunctions</a></td>
<td>S4 Group Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="TraceClasses.html">groupGenericFunctionWithTrace-class</a></td>
<td>Classes Used Internally to Control Tracing</td></tr>
</table>
<h2><a id="H">-- H --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="hasArg.html">hasArg</a></td>
<td>Look for an Argument in the Call</td></tr>
<tr><td style="width: 25%;"><a href="setLoadActions.html">hasLoadAction</a></td>
<td>Set Actions For Package Loading</td></tr>
<tr><td style="width: 25%;"><a href="getMethod.html">hasMethod</a></td>
<td>Get or Test for the Definition of a Method</td></tr>
<tr><td style="width: 25%;"><a href="findMethods.html">hasMethods</a></td>
<td>Description of the Methods Defined for a Generic Function</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">hsearch-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
</table>
<h2><a id="I">-- I --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="LanguageClasses.html">if-class</a></td>
<td>Classes to Represent Unevaluated Language Objects</td></tr>
<tr><td style="width: 25%;"><a href="implicitGeneric.html">implicit generic</a></td>
<td>Manage Implicit Versions of Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="implicitGeneric.html">implicitGeneric</a></td>
<td>Manage Implicit Versions of Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="inheritedSlotNames.html">inheritedSlotNames</a></td>
<td>Names of Slots Inherited From a Super Class</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">initFieldArgs</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="new.html">initialize</a></td>
<td>Generate an Object from a Class</td></tr>
<tr><td style="width: 25%;"><a href="StructureClasses.html">initialize-method</a></td>
<td>Classes Corresponding to Basic Structures</td></tr>
<tr><td style="width: 25%;"><a href="initialize-methods.html">initialize-method</a></td>
<td>Methods to Initialize New Objects from a Class</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">initialize-method</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="stdRefClass.html">initialize-method</a></td>
<td>Class '"envRefClass"'</td></tr>
<tr><td style="width: 25%;"><a href="initialize-methods.html">initialize-methods</a></td>
<td>Methods to Initialize New Objects from a Class</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">initRefFields</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="evalSource.html">insertSource</a></td>
<td>Use Function Definitions from a Source File without Reinstalling a Package</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">integer-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">integrate-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="Introduction.html">Introduction</a></td>
<td>Basic use of S4 Methods and Classes</td></tr>
<tr><td style="width: 25%;"><a href="is.html">is</a></td>
<td>Is an Object from a Class?</td></tr>
<tr><td style="width: 25%;"><a href="findClass.html">isClass</a></td>
<td>Find Class Definitions</td></tr>
<tr><td style="width: 25%;"><a href="setClassUnion.html">isClassUnion</a></td>
<td>Classes Defined as the Union of Other Classes</td></tr>
<tr><td style="width: 25%;"><a href="GenericFunctions.html">isGeneric</a></td>
<td>Tools for Managing Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="GenericFunctions.html">isGroup</a></td>
<td>Tools for Managing Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="isSealedMethod.html">isSealedClass</a></td>
<td>Check for a Sealed Method or Class</td></tr>
<tr><td style="width: 25%;"><a href="isSealedMethod.html">isSealedMethod</a></td>
<td>Check for a Sealed Method or Class</td></tr>
<tr><td style="width: 25%;"><a href="S3Part.html">isXS3Class</a></td>
<td>S4 Classes that Contain S3 Classes</td></tr>
</table>
<h2><a id="L">-- L --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="LanguageClasses.html">language-class</a></td>
<td>Classes to Represent Unevaluated Language Objects</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">libraryIQR-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="LinearMethodsList-class.html">LinearMethodsList-class</a></td>
<td>Class "LinearMethodsList"</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">list-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="findMethods.html">listOfMethods-class</a></td>
<td>Description of the Methods Defined for a Generic Function</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">lm-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="localRefClass.html">localRefClass-class</a></td>
<td>Localized Objects based on Reference Classes</td></tr>
<tr><td style="width: 25%;"><a href="localRefClass.html">LocalReferenceClasses</a></td>
<td>Localized Objects based on Reference Classes</td></tr>
<tr><td style="width: 25%;"><a href="S4groupGeneric.html">Logic</a></td>
<td>S4 Group Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">logical-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">logLik-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
</table>
<h2><a id="M">-- M --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="setSClass.html">makeClassRepresentation</a></td>
<td>Create a Class Definition</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">maov-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="S4groupGeneric.html">Math</a></td>
<td>S4 Group Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="StructureClasses.html">Math-method</a></td>
<td>Classes Corresponding to Basic Structures</td></tr>
<tr><td style="width: 25%;"><a href="nonStructure-class.html">Math-method</a></td>
<td>A non-structure S4 Class for basic types</td></tr>
<tr><td style="width: 25%;"><a href="S4groupGeneric.html">Math2</a></td>
<td>S4 Group Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="nonStructure-class.html">Math2-method</a></td>
<td>A non-structure S4 Class for basic types</td></tr>
<tr><td style="width: 25%;"><a href="StructureClasses.html">matrix-class</a></td>
<td>Classes Corresponding to Basic Structures</td></tr>
<tr><td style="width: 25%;"><a href="method.skeleton.html">method.skeleton</a></td>
<td>Create a Skeleton File for a New Method</td></tr>
<tr><td style="width: 25%;"><a href="MethodDefinition-class.html">MethodDefinition-class</a></td>
<td>Classes to Represent Method Definitions</td></tr>
<tr><td style="width: 25%;"><a href="TraceClasses.html">MethodDefinitionWithTrace-class</a></td>
<td>Classes Used Internally to Control Tracing</td></tr>
<tr><td style="width: 25%;"><a href="Methods.html">Methods</a></td>
<td>S4 Class Documentation</td></tr>
<tr><td style="width: 25%;"><a href="testInheritedMethods.html">MethodSelectionReport-class</a></td>
<td>Test for and Report about Selection of Inherited Methods</td></tr>
<tr><td style="width: 25%;"><a href="MethodsList-class.html">MethodsList-class</a></td>
<td>Class MethodsList, Defunct Representation of Methods</td></tr>
<tr><td style="width: 25%;"><a href="Methods_Details.html">Methods_Details</a></td>
<td>General Information on Methods</td></tr>
<tr><td style="width: 25%;"><a href="Methods_for_Nongenerics.html">Methods_for_Nongenerics</a></td>
<td>Methods for Non-Generic Functions in Other Packages</td></tr>
<tr><td style="width: 25%;"><a href="Methods_for_S3.html">Methods_for_S3</a></td>
<td>Methods For S3 and S4 Dispatch</td></tr>
<tr><td style="width: 25%;"><a href="MethodWithNext-class.html">MethodWithNext-class</a></td>
<td>Class MethodWithNext</td></tr>
<tr><td style="width: 25%;"><a href="TraceClasses.html">MethodWithNextWithTrace-class</a></td>
<td>Classes Used Internally to Control Tracing</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">missing-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">mlm-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">mtable-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">mts-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="className.html">multipleClasses</a></td>
<td>Class names including the corresponding package</td></tr>
</table>
<h2><a id="N">-- N --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="LanguageClasses.html">name-class</a></td>
<td>Classes to Represent Unevaluated Language Objects</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">namedList-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="new.html">new</a></td>
<td>Generate an Object from a Class</td></tr>
<tr><td style="width: 25%;"><a href="TraceClasses.html">nonstandardGenericWithTrace-class</a></td>
<td>Classes Used Internally to Control Tracing</td></tr>
<tr><td style="width: 25%;"><a href="nonStructure-class.html">nonStructure-class</a></td>
<td>A non-structure S4 Class for basic types</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">NULL-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">numeric-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
</table>
<h2><a id="O">-- O --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="ObjectsWithPackage-class.html">ObjectsWithPackage-class</a></td>
<td>A Vector of Object Names, with associated Package Names</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">oldClass-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="S4groupGeneric.html">Ops</a></td>
<td>S4 Group Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="StructureClasses.html">Ops-method</a></td>
<td>Classes Corresponding to Basic Structures</td></tr>
<tr><td style="width: 25%;"><a href="nonStructure-class.html">Ops-method</a></td>
<td>A non-structure S4 Class for basic types</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">ordered-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
</table>
<h2><a id="P">-- P --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="setOldClass.html">packageInfo-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">packageIQR-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="getPackageName.html">packageSlot</a></td>
<td>The Name associated with a Given Package</td></tr>
<tr><td style="width: 25%;"><a href="getPackageName.html">packageSlot&lt;-</a></td>
<td>The Name associated with a Given Package</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">POSIXct-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">POSIXlt-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">POSIXt-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="implicitGeneric.html">prohibitGeneric</a></td>
<td>Manage Implicit Versions of Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="promptClass.html">promptClass</a></td>
<td>Generate a Shell for Documentation of a Formal Class</td></tr>
<tr><td style="width: 25%;"><a href="promptMethods.html">promptMethods</a></td>
<td>Generate a Shell for Documentation of Formal Methods</td></tr>
<tr><td style="width: 25%;"><a href="representation.html">prototype</a></td>
<td>Construct a Representation or a Prototype for a Class Definition</td></tr>
</table>
<h2><a id="R">-- R --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="BasicClasses.html">raw-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="cbind2.html">rbind2</a></td>
<td>Combine two Objects by Columns or Rows</td></tr>
<tr><td style="width: 25%;"><a href="cbind2.html">rbind2-method</a></td>
<td>Combine two Objects by Columns or Rows</td></tr>
<tr><td style="width: 25%;"><a href="cbind2.html">rbind2-methods</a></td>
<td>Combine two Objects by Columns or Rows</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">recordedplot-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">refClass-class</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">refClassRepresentation-class</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">ReferenceClasses</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">refGeneratorSlot-class</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">refMethodDef-class</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">refMethodDefWithTrace-class</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">refObject-class</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">refObjectGenerator-class</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="implicitGeneric.html">registerImplicitGenerics</a></td>
<td>Manage Implicit Versions of Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="findClass.html">removeClass</a></td>
<td>Find Class Definitions</td></tr>
<tr><td style="width: 25%;"><a href="GenericFunctions.html">removeGeneric</a></td>
<td>Tools for Managing Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="removeMethod.html">removeMethod</a></td>
<td>Remove a Method</td></tr>
<tr><td style="width: 25%;"><a href="GenericFunctions.html">removeMethods</a></td>
<td>Tools for Managing Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="LanguageClasses.html">repeat-class</a></td>
<td>Classes to Represent Unevaluated Language Objects</td></tr>
<tr><td style="width: 25%;"><a href="representation.html">representation</a></td>
<td>Construct a Representation or a Prototype for a Class Definition</td></tr>
<tr><td style="width: 25%;"><a href="findClass.html">resetClass</a></td>
<td>Find Class Definitions</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">rle-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
</table>
<h2><a id="S">-- S --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="S3Part.html">S3</a></td>
<td>S4 Classes that Contain S3 Classes</td></tr>
<tr><td style="width: 25%;"><a href="S3Part.html">S3-class</a></td>
<td>S4 Classes that Contain S3 Classes</td></tr>
<tr><td style="width: 25%;"><a href="S3Part.html">S3Class</a></td>
<td>S4 Classes that Contain S3 Classes</td></tr>
<tr><td style="width: 25%;"><a href="S3Part.html">S3Class&lt;-</a></td>
<td>S4 Classes that Contain S3 Classes</td></tr>
<tr><td style="width: 25%;"><a href="S3Part.html">S3Part</a></td>
<td>S4 Classes that Contain S3 Classes</td></tr>
<tr><td style="width: 25%;"><a href="S3Part.html">S3Part&lt;-</a></td>
<td>S4 Classes that Contain S3 Classes</td></tr>
<tr><td style="width: 25%;"><a href="S3Part.html">S4</a></td>
<td>S4 Classes that Contain S3 Classes</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">S4-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="S4groupGeneric.html">S4groupGeneric</a></td>
<td>S4 Group Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="SClassExtension-class.html">SClassExtension-class</a></td>
<td>Class to Represent Inheritance (Extension) Relations</td></tr>
<tr><td style="width: 25%;"><a href="findClass.html">sealClass</a></td>
<td>Find Class Definitions</td></tr>
<tr><td style="width: 25%;"><a href="MethodDefinition-class.html">SealedMethodDefinition-class</a></td>
<td>Classes to Represent Method Definitions</td></tr>
<tr><td style="width: 25%;"><a href="getMethod.html">selectMethod</a></td>
<td>Get or Test for the Definition of a Method</td></tr>
<tr><td style="width: 25%;"><a href="selectSuperClasses.html">selectSuperClasses</a></td>
<td>Super Classes (of Specific Kinds) of a Class</td></tr>
<tr><td style="width: 25%;"><a href="setAs.html">setAs</a></td>
<td>Methods for Coercing an Object to a Class</td></tr>
<tr><td style="width: 25%;"><a href="setClass.html">setClass</a></td>
<td>Create a Class Definition</td></tr>
<tr><td style="width: 25%;"><a href="setClassUnion.html">setClassUnion</a></td>
<td>Classes Defined as the Union of Other Classes</td></tr>
<tr><td style="width: 25%;"><a href="setGeneric.html">setGeneric</a></td>
<td>Create a Generic Version of a Function</td></tr>
<tr><td style="width: 25%;"><a href="implicitGeneric.html">setGenericImplicit</a></td>
<td>Manage Implicit Versions of Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="setGroupGeneric.html">setGroupGeneric</a></td>
<td>Create a Group Generic Version of a Function</td></tr>
<tr><td style="width: 25%;"><a href="setIs.html">setIs</a></td>
<td>Specify a Superclass Explicitly</td></tr>
<tr><td style="width: 25%;"><a href="setLoadActions.html">setLoadAction</a></td>
<td>Set Actions For Package Loading</td></tr>
<tr><td style="width: 25%;"><a href="setLoadActions.html">setLoadActions</a></td>
<td>Set Actions For Package Loading</td></tr>
<tr><td style="width: 25%;"><a href="setMethod.html">setMethod</a></td>
<td>Create and Save a Method</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">setOldClass</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="getPackageName.html">setPackageName</a></td>
<td>The Name associated with a Given Package</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">setRefClass</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="GenericFunctions.html">setReplaceMethod</a></td>
<td>Tools for Managing Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="validObject.html">setValidity</a></td>
<td>Test the Validity of an Object</td></tr>
<tr><td style="width: 25%;"><a href="show.html">show</a></td>
<td>Show an Object</td></tr>
<tr><td style="width: 25%;"><a href="StructureClasses.html">show-method</a></td>
<td>Classes Corresponding to Basic Structures</td></tr>
<tr><td style="width: 25%;"><a href="TraceClasses.html">show-method</a></td>
<td>Classes Used Internally to Control Tracing</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">show-method</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
<tr><td style="width: 25%;"><a href="show.html">show-method</a></td>
<td>Show an Object</td></tr>
<tr><td style="width: 25%;"><a href="signature-class.html">show-method</a></td>
<td>Class '"signature"' For Method Definitions</td></tr>
<tr><td style="width: 25%;"><a href="show.html">show-methods</a></td>
<td>Show an Object</td></tr>
<tr><td style="width: 25%;"><a href="showMethods.html">showMethods</a></td>
<td>Show all the methods for the specified function(s) or class</td></tr>
<tr><td style="width: 25%;"><a href="GenericFunctions.html">signature</a></td>
<td>Tools for Managing Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="signature-class.html">signature-class</a></td>
<td>Class '"signature"' For Method Definitions</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">single-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="slot.html">slot</a></td>
<td>The Slots in an Object from a Formal Class</td></tr>
<tr><td style="width: 25%;"><a href="slot.html">slot&lt;-</a></td>
<td>The Slots in an Object from a Formal Class</td></tr>
<tr><td style="width: 25%;"><a href="slot.html">slotNames</a></td>
<td>The Slots in an Object from a Formal Class</td></tr>
<tr><td style="width: 25%;"><a href="S3Part.html">slotsFromS3</a></td>
<td>S4 Classes that Contain S3 Classes</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">socket-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="evalSource.html">sourceEnvironment-class</a></td>
<td>Use Function Definitions from a Source File without Reinstalling a Package</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">special-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="StructureClasses.html">structure-class</a></td>
<td>Classes Corresponding to Basic Structures</td></tr>
<tr><td style="width: 25%;"><a href="S4groupGeneric.html">Summary</a></td>
<td>S4 Group Generic Functions</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">summary.table-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">summaryDefault-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="refClass.html">SuperClassMethod-class</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
</table>
<h2><a id="T">-- T --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="setOldClass.html">table-class</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="testInheritedMethods.html">testInheritedMethods</a></td>
<td>Test for and Report about Selection of Inherited Methods</td></tr>
<tr><td style="width: 25%;"><a href="TraceClasses.html">traceable-class</a></td>
<td>Classes Used Internally to Control Tracing</td></tr>
<tr><td style="width: 25%;"><a href="StructureClasses.html">ts-class</a></td>
<td>Classes Corresponding to Basic Structures</td></tr>
</table>
<h2><a id="U">-- U --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="refClass.html">uninitializedField-class</a></td>
<td>Objects With Fields Treated by Reference (OOP-style)</td></tr>
</table>
<h2><a id="V">-- V --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="validObject.html">validObject</a></td>
<td>Test the Validity of an Object</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">vector-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
<tr><td style="width: 25%;"><a href="BasicClasses.html">VIRTUAL-class</a></td>
<td>Classes Corresponding to Basic Data Types</td></tr>
</table>
<h2><a id="W">-- W --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="LanguageClasses.html">while-class</a></td>
<td>Classes to Represent Unevaluated Language Objects</td></tr>
</table>
<h2><a id="misc">-- misc --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="stdRefClass.html">$-method</a></td>
<td>Class '"envRefClass"'</td></tr>
<tr><td style="width: 25%;"><a href="localRefClass.html">$&lt;--method</a></td>
<td>Localized Objects based on Reference Classes</td></tr>
<tr><td style="width: 25%;"><a href="stdRefClass.html">$&lt;--method</a></td>
<td>Class '"envRefClass"'</td></tr>
<tr><td style="width: 25%;"><a href="LanguageClasses.html">(-class</a></td>
<td>Classes to Represent Unevaluated Language Objects</td></tr>
<tr><td style="width: 25%;"><a href="zBasicFunsList.html">.BasicFunsList</a></td>
<td>List of Builtin and Special Functions</td></tr>
<tr><td style="width: 25%;"><a href="TraceClasses.html">.doTracePrint</a></td>
<td>Classes Used Internally to Control Tracing</td></tr>
<tr><td style="width: 25%;"><a href="Classes_Details.html">.environment-class</a></td>
<td>Class Definitions</td></tr>
<tr><td style="width: 25%;"><a href="Classes_Details.html">.externalptr-class</a></td>
<td>Class Definitions</td></tr>
<tr><td style="width: 25%;"><a href="slot.html">.hasSlot</a></td>
<td>The Slots in an Object from a Formal Class</td></tr>
<tr><td style="width: 25%;"><a href="TraceClasses.html">.InitTraceFunctions</a></td>
<td>Classes Used Internally to Control Tracing</td></tr>
<tr><td style="width: 25%;"><a href="TraceClasses.html">.makeTracedFunction</a></td>
<td>Classes Used Internally to Control Tracing</td></tr>
<tr><td style="width: 25%;"><a href="Classes_Details.html">.name-class</a></td>
<td>Class Definitions</td></tr>
<tr><td style="width: 25%;"><a href="Classes_Details.html">.NULL-class</a></td>
<td>Class Definitions</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">.OldClassesList</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="testInheritedMethods.html">.Other-class</a></td>
<td>Test for and Report about Selection of Inherited Methods</td></tr>
<tr><td style="width: 25%;"><a href="showMethods.html">.S4methods</a></td>
<td>Show all the methods for the specified function(s) or class</td></tr>
<tr><td style="width: 25%;"><a href="selectSuperClasses.html">.selectSuperClasses</a></td>
<td>Super Classes (of Specific Kinds) of a Class</td></tr>
<tr><td style="width: 25%;"><a href="setOldClass.html">.setOldIs</a></td>
<td>Register Old-Style (S3) Classes and Inheritance</td></tr>
<tr><td style="width: 25%;"><a href="slot.html">.slotNames</a></td>
<td>The Slots in an Object from a Formal Class</td></tr>
<tr><td style="width: 25%;"><a href="TraceClasses.html">.untracedFunction</a></td>
<td>Classes Used Internally to Control Tracing</td></tr>
<tr><td style="width: 25%;"><a href="LanguageClasses.html">&lt;--class</a></td>
<td>Classes to Represent Unevaluated Language Objects</td></tr>
<tr><td style="width: 25%;"><a href="Classes_Details.html">__ClassMetaData</a></td>
<td>Class Definitions</td></tr>
<tr><td style="width: 25%;"><a href="LanguageClasses.html">{-class</a></td>
<td>Classes to Represent Unevaluated Language Objects</td></tr>
</table>
</div></body></html>
@media screen {
.container {
padding-right: 10px;
padding-left: 10px;
margin-right: auto;
margin-left: auto;
max-width: 900px;
}
}
.rimage img { /* from knitr - for examples and demos */
width: 96%;
margin-left: 2%;
}
.katex { font-size: 1.1em; }
code {
color: inherit;
background: inherit;
}
body {
line-height: 1.4;
background: white;
color: black;
}
a:link {
background: white;
color: blue;
}
a:visited {
background: white;
color: rgb(50%, 0%, 50%);
}
h1 {
background: white;
color: rgb(55%, 55%, 55%);
font-family: monospace;
font-size: 1.4em; /* x-large; */
text-align: center;
}
h2 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
text-align: center;
}
h3 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
}
h4 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
font-size: 1.2em; /* large; */
}
h5 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
}
h6 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
}
img.toplogo {
width: 4em;
vertical-align: middle;
}
img.arrow {
width: 30px;
height: 30px;
border: 0;
}
span.acronym {
font-size: small;
}
span.env {
font-family: monospace;
}
span.file {
font-family: monospace;
}
span.option{
font-family: monospace;
}
span.pkg {
font-weight: bold;
}
span.samp{
font-family: monospace;
}
div.vignettes a:hover {
background: rgb(85%, 85%, 85%);
}
tr {
vertical-align: top;
}
span.rlang {
font-family: Courier New, Courier;
color: #666666;
}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/00Index.html","start":0,"end":41434},{"filename":"/R.css","start":41434,"end":43278}],"remote_package_size":43278}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
{"files":[{"filename":"/S3.R","start":0,"end":746},{"filename":"/basicRefClass.R","start":746,"end":18893},{"filename":"/duplicateClass.R","start":18893,"end":20164},{"filename":"/envRefClass.R","start":20164,"end":20864},{"filename":"/fieldAssignments.R","start":20864,"end":21700},{"filename":"/mixinInitialize.R","start":21700,"end":24425},{"filename":"/namesAndSlots.R","start":24425,"end":25187},{"filename":"/nextWithDots.R","start":25187,"end":25829},{"filename":"/refClassExample.R","start":25829,"end":27304},{"filename":"/testConditionalIs.R","start":27304,"end":28362},{"filename":"/testGroupGeneric.R","start":28362,"end":30962},{"filename":"/testIs.R","start":30962,"end":32993}],"remote_package_size":32993}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/DESCRIPTION","start":0,"end":579},{"filename":"/INDEX","start":579,"end":1493},{"filename":"/Meta/Rd.rds","start":1493,"end":2478},{"filename":"/Meta/features.rds","start":2478,"end":2609},{"filename":"/Meta/hsearch.rds","start":2609,"end":3630},{"filename":"/Meta/links.rds","start":3630,"end":4152},{"filename":"/Meta/nsInfo.rds","start":4152,"end":4787},{"filename":"/Meta/package.rds","start":4787,"end":5498},{"filename":"/NAMESPACE","start":5498,"end":6874},{"filename":"/R/parallel","start":6874,"end":7932},{"filename":"/R/parallel.rdb","start":7932,"end":54126},{"filename":"/R/parallel.rdx","start":54126,"end":55892},{"filename":"/doc/parallel.pdf","start":55892,"end":196274},{"filename":"/help/AnIndex","start":196274,"end":197327},{"filename":"/help/aliases.rds","start":197327,"end":197795},{"filename":"/help/parallel.rdb","start":197795,"end":274394},{"filename":"/help/parallel.rdx","start":274394,"end":274853},{"filename":"/help/paths.rds","start":274853,"end":275128},{"filename":"/html/00Index.html","start":275128,"end":282057},{"filename":"/html/R.css","start":282057,"end":283901},{"filename":"/libs/parallel.so","start":283901,"end":294858},{"filename":"/tests/Master.R","start":294858,"end":295890},{"filename":"/tests/RSeed.R","start":295890,"end":296624},{"filename":"/tests/multicore1.RR","start":296624,"end":296902},{"filename":"/tests/multicore2.RR","start":296902,"end":297516},{"filename":"/tests/multicore2.Rout.save","start":297516,"end":299295},{"filename":"/tests/multicore3.RR","start":299295,"end":299531},{"filename":"/tests/snow1.RR","start":299531,"end":300660},{"filename":"/tests/snow2.RR","start":300660,"end":301283},{"filename":"/tests/snow2.Rout.save","start":301283,"end":303112}],"remote_package_size":303112}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/AnIndex","start":0,"end":541},{"filename":"/aliases.rds","start":541,"end":793},{"filename":"/paths.rds","start":793,"end":1058},{"filename":"/splines.rdb","start":1058,"end":41213},{"filename":"/splines.rdx","start":41213,"end":41691}],"remote_package_size":41691}

View file

@ -0,0 +1,199 @@
<!DOCTYPE html>
<html>
<head><title>R: Regression Spline Functions and Classes</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body><div class="container">
<h1> Regression Spline Functions and Classes
<img class="toplogo" src="../../../doc/html/Rlogo.svg" alt="[R logo]" />
</h1>
<hr/>
<div style="text-align: center;">
<a href="../../../doc/html/packages.html"><img class="arrow" src="../../../doc/html/left.jpg" alt="[Up]" /></a>
<a href="../../../doc/html/index.html"><img class="arrow" src="../../../doc/html/up.jpg" alt="[Top]" /></a>
</div><h2>Documentation for package &lsquo;splines&rsquo; version 4.3.0</h2>
<ul><li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li>
</ul>
<h2>Help Pages</h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="splines-package.html">splines-package</a></td>
<td>Regression Spline Functions and Classes</td></tr>
<tr><td style="width: 25%;"><a href="polySpline.html">as.polySpline</a></td>
<td>Piecewise Polynomial Spline Representation</td></tr>
<tr><td style="width: 25%;"><a href="asVector.html">asVector</a></td>
<td>Coerce an Object to a Vector</td></tr>
<tr><td style="width: 25%;"><a href="backSpline.html">backSpline</a></td>
<td>Monotone Inverse Spline</td></tr>
<tr><td style="width: 25%;"><a href="bs.html">bs</a></td>
<td>B-Spline Basis for Polynomial Splines</td></tr>
<tr><td style="width: 25%;"><a href="interpSpline.html">interpSpline</a></td>
<td>Create an Interpolation Spline</td></tr>
<tr><td style="width: 25%;"><a href="ns.html">ns</a></td>
<td>Generate a Basis Matrix for Natural Cubic Splines</td></tr>
<tr><td style="width: 25%;"><a href="periodicSpline.html">periodicSpline</a></td>
<td>Create a Periodic Interpolation Spline</td></tr>
<tr><td style="width: 25%;"><a href="polySpline.html">polySpline</a></td>
<td>Piecewise Polynomial Spline Representation</td></tr>
<tr><td style="width: 25%;"><a href="predict.bs.html">predict.bs</a></td>
<td>Evaluate a Spline Basis</td></tr>
<tr><td style="width: 25%;"><a href="predict.bSpline.html">predict.bSpline</a></td>
<td>Evaluate a Spline at New Values of x</td></tr>
<tr><td style="width: 25%;"><a href="predict.bSpline.html">predict.nbSpline</a></td>
<td>Evaluate a Spline at New Values of x</td></tr>
<tr><td style="width: 25%;"><a href="predict.bSpline.html">predict.npolySpline</a></td>
<td>Evaluate a Spline at New Values of x</td></tr>
<tr><td style="width: 25%;"><a href="predict.bs.html">predict.ns</a></td>
<td>Evaluate a Spline Basis</td></tr>
<tr><td style="width: 25%;"><a href="predict.bSpline.html">predict.pbSpline</a></td>
<td>Evaluate a Spline at New Values of x</td></tr>
<tr><td style="width: 25%;"><a href="predict.bSpline.html">predict.ppolySpline</a></td>
<td>Evaluate a Spline at New Values of x</td></tr>
<tr><td style="width: 25%;"><a href="splineDesign.html">spline.des</a></td>
<td>Design Matrix for B-splines</td></tr>
<tr><td style="width: 25%;"><a href="splineDesign.html">splineDesign</a></td>
<td>Design Matrix for B-splines</td></tr>
<tr><td style="width: 25%;"><a href="splineKnots.html">splineKnots</a></td>
<td>Knot Vector from a Spline</td></tr>
<tr><td style="width: 25%;"><a href="splineOrder.html">splineOrder</a></td>
<td>Determine the Order of a Spline</td></tr>
<tr><td style="width: 25%;"><a href="splines-package.html">splines</a></td>
<td>Regression Spline Functions and Classes</td></tr>
<tr><td style="width: 25%;"><a href="xyVector.html">xyVector</a></td>
<td>Construct an 'xyVector' Object</td></tr>
</table>
</div></body></html>
@media screen {
.container {
padding-right: 10px;
padding-left: 10px;
margin-right: auto;
margin-left: auto;
max-width: 900px;
}
}
.rimage img { /* from knitr - for examples and demos */
width: 96%;
margin-left: 2%;
}
.katex { font-size: 1.1em; }
code {
color: inherit;
background: inherit;
}
body {
line-height: 1.4;
background: white;
color: black;
}
a:link {
background: white;
color: blue;
}
a:visited {
background: white;
color: rgb(50%, 0%, 50%);
}
h1 {
background: white;
color: rgb(55%, 55%, 55%);
font-family: monospace;
font-size: 1.4em; /* x-large; */
text-align: center;
}
h2 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
text-align: center;
}
h3 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
}
h4 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
font-size: 1.2em; /* large; */
}
h5 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
}
h6 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
}
img.toplogo {
width: 4em;
vertical-align: middle;
}
img.arrow {
width: 30px;
height: 30px;
border: 0;
}
span.acronym {
font-size: small;
}
span.env {
font-family: monospace;
}
span.file {
font-family: monospace;
}
span.option{
font-family: monospace;
}
span.pkg {
font-weight: bold;
}
span.samp{
font-family: monospace;
}
div.vignettes a:hover {
background: rgb(85%, 85%, 85%);
}
tr {
vertical-align: top;
}
span.rlang {
font-family: Courier New, Courier;
color: #666666;
}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/00Index.html","start":0,"end":3699},{"filename":"/R.css","start":3699,"end":5543}],"remote_package_size":5543}

View file

@ -0,0 +1,331 @@
###----------------- sparse / dense interpSpline() ---------------------------
## This requires recommended package Matrix.
if(!requireNamespace("Matrix", quietly = TRUE)) q()
require("splines")
## from help(interpSpline) -- ../man/interpSpline.Rd
ispl <- interpSpline( women$height, women$weight)
isp. <- interpSpline( women$height, women$weight, sparse=TRUE)
stopifnot(all.equal(ispl, isp., tol = 1e-12)) # seen 1.65e-14
##' @title Interpolate size-n version of the 'women' data sparsely and densely
##' @param n size of "women-like" data to interpolate
##' @return list with dense and sparse \code{\link{system.time}()}s
##' @author Martin Maechler
ipStime <- function(n) { # and using 'ispl'
h <- seq(55, 75, length.out = n)
w <- predict(ispl, h)$y
c.d <- system.time(is.d <- interpSpline(h, w, sparse=FALSE))
c.s <- system.time(is.s <- interpSpline(h, w, sparse=TRUE ))
stopifnot(all.equal(is.d, is.s, tol = 1e-7)) # seen 9.4e-10 (n=1000), 1.3e-7 (n=5000)
list(d.time = c.d, s.time = c.s)
}
n.s <- 25 * round(2^seq(1,6, by=.5))
if(!interactive())# save 'check time'
n.s <- n.s[100 <= n.s & n.s <= 800]
(ipL <- lapply(setNames(n.s, paste0("n=",n.s)), ipStime))
## sparse is *an order of magnitude* faster for n ~= 1000 but somewhat slower for n ~< 200:
sapply(ipL, function(ip) round(ip$d.time / ip$s.time, 1)[c(1,3)])
## n=50 n=75 n=100 n=150 n=200 n=275 n=400 n=575 n=800 n=1125 n=1600 -- nb-mm4, i7-5600U
## user.self 0.5 0.5 0.5 0.5 0.7 2.5 4.3 12.3 33.7 70.5 116.1
## elapsed 0.5 0.3 0.5 0.7 1.0 2.5 4.3 13.0 26.2 57.4 117.3
require("splines")
## Bug report PR#16549 - 'bad value from splineDesign'
## Date: Wed, 30 Sep 2015 12:12:47 +0000
## https://bugs.r-project.org/show_bug.cgi?id=16549
## Reporter: roconnor@health.usf.edu (extended original example code)
kn8.01 <- c(0,0,0,0,1,1,1,1)
m1 <- rbind(c(1, 0,0,0))
m.1 <- rbind(c(0,0,0, 1))
stopifnot(
## the first gave (0 0 0 0) instead of m1 :
all.equal(splineDesign(kn8.01, c(0,2), outer.ok = TRUE), rbind(m1, 0)),
all.equal(splineDesign(kn8.01, c( 0,1,2), outer.ok = TRUE), rbind(m1, m.1, 0)),
all.equal(splineDesign(kn8.01, c(-1,0,1), outer.ok = TRUE), rbind(0, m1, m.1)),
all.equal(splineDesign(kn8.01, 0, outer.ok = TRUE), m1),
all.equal(splineDesign(kn8.01, 0), m1),
TRUE)
## The original fix proposal introduced a new bug, visible here:
S <- splineDesign(c(-3, -3, -2, 0, 2, 3, 3), x= -3:3, outer.ok=TRUE)
## (had a NaN in the lower-right corner)
stopifnot(all.equal(S,
rbind(0, c(22,3,0)/45, c(193, 6*23, 9)/360,
c(1,3,1)/5,
c(9, 6*23, 193)/360,
c(0,3,22)/45, 0),
tolerance = 1e-14))
chkSum.Ok <- TRUE ## for check
chkSum <- function(knots, n = 1 + 2^9, ord = 4) {
stopifnot(is.numeric(knots), !is.unsorted(knots), (n.k <- length(knots)) >= ord)
dk <- diff(rk <- range(uk <- unique(knots)))
if(dk == 0) dk <- uk[1]/4
d.x <- dk / (2*n.k)
## x: the unique knots
x <- sort(c(uk, seq.int(min(knots)-d.x, max(knots)+d.x, length.out = n)))
bb <- splineDesign(knots, x = x, ord = ord, outer.ok = TRUE)
is.x.in <- knots[ord] <= x & x <= knots[n.k-(ord-1)]
## ~~~~ ~~~~ same as in splineDesign(*, outer.ok=TRUE)
##
### no longer needed:
## work around "infelicity" (or not; not sure if to call "bug")
## n.RHk := #{duplicated RHS boundary knots}
## n.RHk <- match(FALSE, rev(duplicated(knots)))
## if(ord > 1 && n.RHk > ord) { ## the (ord == 1) case "works" via spike = 1
## ## <==> knots[n.k -j ] == knots[n.k] for j = 0,1,..,(n.RHk-1)
## ## then spl(x= RHS-knot, knots) == 0, even though "should" be 1
## ## "FIX it up" for here. FIXME: do in splineDesign() or it's C code ?!
## iR <- which(x == knots[n.k])
## ## ncol(bb) == n.k - ord
## j <- n.k - n.RHk # == ncol(bb) - (n.RHk - ord)
## if(any(bb[iR, j] == 0)) bb[iR, j] <- 1
## }
sumB <- rowSums(bb)
if(any(iBad <- !is.finite(sumB))) {
chkSum.Ok <<- FALSE ## for check
cat("** _FIXME_ NON-finite values in sumB: ord = ", ord, "; |knots| =", n.k,"\n")
cat("knots <- "); dput(knots)
cat("non-finite at x = "); dput(x[iBad])
} else if(length(bb)) { # only when bb[] is not 0-dimensional
eps <- 3*.Machine$double.eps
stopifnot(abs(1 - sumB[is.x.in]) <= 2*eps, 0 <= sumB+eps, sumB-2*eps <= 1,
allow.logical0=TRUE)
## TODO: now also check derivatives
}
invisible(bb)
}
plotSplD <- function(knots, n = 2^10, ord = 4, type = "l",
ylim = c(0,1), ylab = "B-splines", ...) {
stopifnot(is.numeric(knots), !is.unsorted(knots), (n.k <- length(knots)) >= ord)
dk <- diff(range(uk <- unique(knots)))
if(dk == 0) dk <- uk[1]/4
d.x <- dk / (2*n.k)
## x: will contain the unique knots uk
x <- sort(c(uk, seq.int(min(knots)-d.x, max(knots)+d.x, length.out = n)))
bb <- splineDesign(knots, x = x, ord = ord, outer.ok = TRUE)
matplot(x, bb, type=type, ylim=ylim, ylab=ylab, ...)
sumB <- rowSums(bb)
abline(v = knots, lty = 3, col = "light gray")
abline(v = knots[c(ord, n.k-(ord-1))], lty = 3, col = "gray10")
lines(x, sumB, col = adjustcolor("red", 0.4), lwd = 3)
abline(h=1, lty=2, col = adjustcolor(1, 0.4), lwd = 2)
## lty, col,: from matplot()
legend(mean(x), 0.98, legend = paste0("B_", 1:ncol(bb)), lty=1:5, col=1:6,
bty = "n", xjust = 0.5)
invisible(list(x=x, splineDesign = bb))
}
if(!dev.interactive(orNone=TRUE)) pdf("spline-tst.pdf")
plotSplD(kn8.01)
chkSum (kn8.01)
## from ../man/splineDesign.Rd :
knots <- c(1,1.8,3:5,6.5,7,8.1,9.2,10) # 10 => 10-4 = 6 Basis splines
str(plotSplD(knots)) # cubic splines, adding to 1 in [ 4, 7 ]
str(plotSplD(knots, ord=3))# quadratic splines, adding to 1 in [ 3, 8.1]
str(plotSplD(knots, ord=2))# linear splines, adding to 1 in [1.8,9.2]
str(plotSplD(knots, ord=1))# constant splines, adding to 1 in [1, 10]
chkSum(knots)
chkSum(knots, ord=3)
chkSum(knots, ord=2)
chkSum(knots, ord=1)
## cases that failed too {Linux lynne 4.1.6 x86_64}
chkSum(c(1:5, 9,9), ord=2) # ok for ord in {1,3,4}
chkSum(c(1:4, 9,9,9), ord=3)
chkSum(c(1:3, 9,9,9,9), ord=4)
## These failed in R <= 3.2.2 (but not after first fix):
chkSum(c(0,0,0,0, 1:3), ord=4)
chkSum(c(0,0,0, 1:4), ord=3)
chkSum(c(0,0, 1:5), ord=2)
## This should be symmetric, but was not;
## the graphic is maybe most convincing:
k6.01 <- c(0,0,0, 1,1,1)
round(with(plotSplD(k6.01, ord=2, n=16), cbind(x, splineDesign)), 4)
x8 <- (0:8)/8
sp8 <- splineDesign(k6.01, x=x8, ord=2)
print.table(8*sp8, zero.print=".")
stopifnot(all.equal(8*sp8,
cbind(0, 8:0, 0:8, 0), tol = 1e-14))
## or just
splineDesign(k6.01, x=0:1, ord=2)
## 0 1 0 0
## 0 0 1 0 --- [finally !]
stopifnot(identical(cbind(0, diag(2), 0),
splineDesign(k6.01, x=0:1, ord=2)))
## Further:
for(k in 0:8)
chkSum(c(0:k, 9,9,9), ord=2)
for(k in 0:8)
chkSum(c(0:k, 9,9,9,9), ord=3)
for(k in 0:8)
chkSum(c(0:k, 9,9,9,9,9), ord=4)
## look at two examples
r <- plotSplD(c(0:4, 8.9,9,9,9), ord=3)# B_6 is narrow spike
r. <- plotSplD(c(0:4, 9, 9,9,9), ord=3)# B_6 diverged to all zero.
if(interactive())
round(with(r., cbind(x, splineDesign)), 4)
stopifnot(r.$splineDesign[, 6] == 0)
## one could argue that B_6 should also have finite area, and hence be "a delta".
## ==> sum_j B_j(x = 9) would then be Inf or undefined ..
## more sensible: B_6 should be omitted and should have B_5(9) == 1
## now implemented:
stopifnot(identical(c(0, 0, 0, 0, 1, 0),
with(r., splineDesign[x == 9,])))
## Everything is fine, if left-right mirrored / reversed :
r03 <- plotSplD(c(0,0,0,0, 1:5), ord=3)
## here, B_1 is "delta" and should rather be omitted
stopifnot(identical(c(0, 1, 0, 0, 0, 0),
with(r03, splineDesign[x == 0,])))
## 0 1 0 0 0 0 -- as it should be ..
round(with(r03, cbind(x, splineDesign)[50:60,]), 4)
r04 <- plotSplD(c(0,0,0,0, 1:5), ord=4)
## here, B_1 is "delta" and should rather be omitted
stopifnot(identical(c(1, 0, 0, 0, 0),
with(r04, splineDesign[x == 0,])))
round(with(r04, cbind(x, splineDesign)[50:60,]), 4)
r0.4 <- plotSplD(c(0,0,0, 1:5), ord=4) # basis is nice and correct
set.seed(17)
for(n in 1:1000) {
if(n %% 50 == 0) cat(sprintf("n = %4d\n",n))
kn <- sort.int(round(10* rnorm(4 + rpois(1, lambda=4))))
for(oo in 1:4)
## if(inherits(r <- tryCatch(chkSum(kn, ord=oo), error=identity), "error"))
## cat(r$message, "\n chkSum(", deparse(kn), ", ord = ", oo, ")\n")
chkSum(kn, ord = oo)
}
## One of the cases with NaN {when used ( . <= x & x <= . )}:
bb <- chkSum(c(-14, -4, 3, 5, 6, 15, 15))
stopifnot(is.finite(rowSums(bb)))
stopifnot(chkSum.Ok)
proc.time()
###---- "Bug report" (to R-core) from Trevor Hastie ---
###----> bs(*, Boundary.knots = .)
### needing boundary ajustment for correct extrapolation
## Trevor's Example, slightly modified and extended:
x <- seq(1.5, 8.5, by = 1/4)
set.seed(13)
y <- x + .01*(x - 5)^3 + rnorm(x)
fit0 <- lm(y ~ bs(x, degree=3, knots=4))
fit0.<- lm(y ~ bs(x, degree=3, knots=4, Boundary.knots=c(1,9)))# *NOT* outside
fit1 <- lm(y ~ bs(x, degree=3, knots=4, Boundary.knots=c(1,8)))# warning
fit2 <- lm(y ~ bs(x, degree=3, knots=4, Boundary.knots=c(2,8)))# warning "2 x"
jx <- seq(from=-2,to=12, by=0.1)
p0 <- predict(fit0, list(x=jx))
p0.<- predict(fit0, list(x=jx))
p1 <- predict(fit1, list(x=jx))
p2 <- predict(fit2, list(x=jx))
stopifnot(all.equal(p0, p0.,tol=1e-14),
all.equal(p0, p1, tol=1e-14),
all.equal(p0, p2, tol=1e-14))
## ^^ p1 and p2 differed from p0 in R <= 3.2.2
## See numerical fuzz:
all.equal(p0, p0., tol=0)
all.equal(p0, p1, tol=0)
all.equal(p0, p2, tol=0)
all.equal(p1, p2, tol=0)# interestingly almost the same
## formula ==> print for default method
ispl <- with(women, interpSpline( height, weight ))
stopifnot(identical(format(formula(ispl)),
"weight ~ height")) ## was wrongly .Primitive(\"~\")(wei...
###------------- Problems for small n ------- want at least good error messages ---
## This gives an error, but not a "human readable" one for k <= 3
## -- now done: the English error message is "must have at least 'ord'=4 points"
## FIXME: Would like to get degree=0 (constant), 1, 2 interpolation spline here
## (and could use degree = 0 for both n=0 and n=1) ==> would have *no* error here
for(n in 0:4) {
cat("n = ", n,": ")
x <- cumsum(pmax(1, round(10*runif(n)))) # pmax(1,*): x[] must be distinct
y <- (x - 2)^2 + round(8*rnorm(n))/4
if(!inherits(sp <- try(interpSpline(x,y)), "try-error")) print(sp)
cat("-------------------------------\n")
}
## for n=4:
stopifnot(inherits(sp, "polySpline"), is.matrix(sp$coefficients),
identical(dim(sp$coefficients), c(4L, 4L)))
## This also gives a "hard to read" error _FIXME_
try(ns(1[0])) # n = 0
## Error in splineDesign(Aknots, x, ord) :
## length of 'derivs' is larger than length of 'x' -- barely ok + 2 warnings
try(bs(1[0])) # n = 0 : same error etc as ns()
(b1 <- bs(pi)) # n = 1 : works fine
(n1 <- ns(pi)) # n = 1 : now ok; gave error: "qr.default(.. NA ...)"
##' keep {dim, dimnames} but nothing else :
noAttr <- function(x) `mostattributes<-`(x, list(dim=dim(x), dimnames=dimnames(x)))
stopifnot(
identical(noAttr(b1), rbind(c(`1`=0, `2`=0, `3`=0))),
all.equal(noAttr(n1), matrix(0.400891862868637, 1, dimnames=list(NULL,"1")),
tol = 5e-15))
d1 <- data.frame(u = 2, Y = 5) ## data set with 1 observation
summary(mbs <- lm(Y ~ bs(u), data=d1)) # fine though many coef etc are NA
summary(mbs1 <- lm(Y ~ bs(u, degree=1), data=d1)) # ok
stopifnot(
identical(coef(mbs), setNames(c(5, NA, NA, NA),
c("(Intercept)", paste0("bs(u)", 1:3))))
,
identical(coef(mbs1), c("(Intercept)" = 5, "bs(u, degree = 1)" = NA)))
if(FALSE)
summary(mbs0 <- lm(Y ~ bs(u, degree=0), data=d1)) # error: degree >= 1
## ns() has no 'degree' argument!
summary(mns <- lm(Y ~ ns(u), data=d1)) ## gave Error; now ok
stopifnot(identical(coef(mns), c("(Intercept)" = 5, "ns(u)" = NA))
## perfect prediction: all residuals == 0 :
, identical(residuals(mns), c(`1` = 0))
, identical(residuals(mbs), c(`1` = 0))
, identical(residuals(mbs1),c(`1` = 0))
)
## [Bug 18442] ns() fails when quantiles end up on the boundary (2022-12-05)
## ========= ---- 1st example ===> <R>/tests/reg-tests-1e.R 'ns(nn,4)'
##
## a (more extreme) example where bs() is affected similarly:
require(splines)
##
x <- c(rep(0L, 44), 1:10, 2L*(6:15), as.integer(round(1.25^(15:22))))
y <- 10L*x + c(-1L,1L)
B <- bs(x, df = 7)
summary(m <- lm(y ~ B))
stopifnot(exprs = {
qr(B)$rank == 7
all.equal(c(0, 0.03265, 20.53, 21.79, 73.27, 519.8, 964.3, 1361),
unname(coef(m)), tol = 1e-4)
})
## rank was 5, and coef(m) had 3 NA's in R <= 4.2.x

View file

@ -0,0 +1 @@
{"files":[{"filename":"/sparse-tst.R","start":0,"end":1617},{"filename":"/spline-tst.R","start":1617,"end":12877}],"remote_package_size":12877}

View file

@ -0,0 +1,317 @@
# Copyright (C) 1997-2009 The R Core Team
#### -*- R -*-
require(stats)
Fr <- c(68,42,42,30, 37,52,24,43,
66,50,33,23, 47,55,23,47,
63,53,29,27, 57,49,19,29)
Temp <- gl(2, 2, 24, labels = c("Low", "High"))
Soft <- gl(3, 8, 24, labels = c("Hard","Medium","Soft"))
M.user <- gl(2, 4, 24, labels = c("N", "Y"))
Brand <- gl(2, 1, 24, labels = c("X", "M"))
detg <- data.frame(Fr,Temp, Soft,M.user, Brand)
detg.m0 <- glm(Fr ~ M.user*Temp*Soft + Brand, family = poisson, data = detg)
summary(detg.m0)
detg.mod <- glm(terms(Fr ~ M.user*Temp*Soft + Brand*M.user*Temp,
keep.order = TRUE),
family = poisson, data = detg)
summary(detg.mod)
summary(detg.mod, correlation = TRUE, symbolic.cor = TRUE)
anova(detg.m0, detg.mod)
### Examples from: "An Introduction to Statistical Modelling"
### By Annette Dobson
###
### == with some additions ==
# Copyright (C) 1997-2015 The R Core Team
require(stats); require(graphics)
## Plant Weight Data (Page 9)
ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14)
trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69)
group <- gl(2,10, labels=c("Ctl","Trt"))
weight <- c(ctl,trt)
anova (lm(weight~group))
summary(lm(weight~group -1))
## Birth Weight Data (Page 14)
age <- c(40, 38, 40, 35, 36, 37, 41, 40, 37, 38, 40, 38,
40, 36, 40, 38, 42, 39, 40, 37, 36, 38, 39, 40)
birthw <- c(2968, 2795, 3163, 2925, 2625, 2847, 3292, 3473, 2628, 3176,
3421, 2975, 3317, 2729, 2935, 2754, 3210, 2817, 3126, 2539,
2412, 2991, 2875, 3231)
sex <- gl(2,12, labels=c("M","F"))
plot(age, birthw, col=as.numeric(sex), pch=3*as.numeric(sex),
main="Dobson's Birth Weight Data")
lines(lowess(age[sex=='M'], birthw[sex=='M']), col=1)
lines(lowess(age[sex=='F'], birthw[sex=='F']), col=2)
legend("topleft", levels(sex), col=1:2, pch=3*(1:2), lty=1, bty="n")
summary(l1 <- lm(birthw ~ sex + age), correlation=TRUE)
summary(l0 <- lm(birthw ~ sex + age -1), correlation=TRUE)
anova(l1,l0)
summary(li <- lm(birthw ~ sex + sex:age -1), correlation=TRUE)
anova(li,l0)
summary(zi <- glm(birthw ~ sex + age, family=gaussian()))
summary(z0 <- glm(birthw ~ sex + age - 1, family=gaussian()))
anova(zi, z0)
summary(z.o4 <- update(z0, subset = -4))
summary(zz <- update(z0, birthw ~ sex+age-1 + sex:age))
anova(z0,zz)
## Poisson Regression Data (Page 42)
x <- c(-1,-1,0,0,0,0,1,1,1)
y <- c(2,3,6,7,8,9,10,12,15)
summary(glm(y~x, family=poisson(link="identity")))
## Calorie Data (Page 45)
calorie <- data.frame(
carb = c(33,40,37,27,30,43,34,48,30,38,
50,51,30,36,41,42,46,24,35,37),
age = c(33,47,49,35,46,52,62,23,32,42,
31,61,63,40,50,64,56,61,48,28),
wgt = c(100, 92,135,144,140,101, 95,101, 98,105,
108, 85,130,127,109,107,117,100,118,102),
prot = c(14,15,18,12,15,15,14,17,15,14,
17,19,19,20,15,16,18,13,18,14))
summary(lmcal <- lm(carb~age+wgt+prot, data= calorie))
## Extended Plant Data (Page 59)
ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14)
trtA <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69)
trtB <- c(6.31,5.12,5.54,5.50,5.37,5.29,4.92,6.15,5.80,5.26)
group <- gl(3, length(ctl), labels=c("Ctl","A","B"))
weight <- c(ctl,trtA,trtB)
anova(lmwg <- lm(weight~group))
summary(lmwg)
coef(lmwg)
coef(summary(lmwg))#- incl. std.err, t- and P- values.
## Fictitious Anova Data (Page 64)
y <- c(6.8,6.6,5.3,6.1,7.5,7.4,7.2,6.5,7.8,9.1,8.8,9.1)
a <- gl(3,4)
b <- gl(2,2, length(a))
anova(z <- lm(y~a*b))
## Achievement Scores (Page 70)
y <- c(6,4,5,3,4,3,6, 8,9,7,9,8,5,7, 6,7,7,7,8,5,7)
x <- c(3,1,3,1,2,1,4, 4,5,5,4,3,1,2, 3,2,2,3,4,1,4)
m <- gl(3,7)
anova(z <- lm(y~x+m))
## Beetle Data (Page 78)
dose <- c(1.6907, 1.7242, 1.7552, 1.7842, 1.8113, 1.8369, 1.861, 1.8839)
x <- c( 6, 13, 18, 28, 52, 53, 61, 60)
n <- c(59, 60, 62, 56, 63, 59, 62, 60)
dead <- cbind(x, n-x)
summary( glm(dead ~ dose, family=binomial(link=logit)))
summary( glm(dead ~ dose, family=binomial(link=probit)))
summary(z <- glm(dead ~ dose, family=binomial(link=cloglog)))
anova(z, update(z, dead ~ dose -1))
## Anther Data (Page 84)
## Note that the proportions below are not exactly
## in accord with the sample sizes quoted below.
## In particular, the last value, 5/9, should have been 0.556 instead of 0.555:
n <- c(102, 99, 108, 76, 81, 90)
p <- c(0.539,0.525,0.528,0.724,0.617,0.555)
x <- round(n*p)
## x <- n*p
y <- cbind(x,n-x)
f <- rep(c(40,150,350),2)
(g <- gl(2,3))
summary(glm(y ~ g*f, family=binomial(link="logit")))
summary(glm(y ~ g + f, family=binomial(link="logit")))
## The "final model"
summary(glm.p84 <- glm(y~g, family=binomial(link="logit")))
op <- par(mfrow = c(2,2), oma = c(0,0,1,0))
plot(glm.p84) # well ?
par(op)
## Tumour Data (Page 92)
counts <- c(22,2,10,16,54,115,19,33,73,11,17,28)
type <- gl(4,3,12,labels=c("freckle","superficial","nodular","indeterminate"))
site <- gl(3,1,12,labels=c("head/neck","trunk","extremities"))
data.frame(counts,type,site)
summary(z <- glm(counts ~ type + site, family=poisson()))
## Randomized Controlled Trial (Page 93)
counts <- c(18,17,15, 20,10,20, 25,13,12)
outcome <- gl(3, 1, length(counts))
treatment <- gl(3, 3)
summary(z <- glm(counts ~ outcome + treatment, family=poisson()))
## Peptic Ulcers and Blood Groups
counts <- c(579, 4219, 911, 4578, 246, 3775, 361, 4532, 291, 5261, 396, 6598)
group <- gl(2, 1, 12, labels=c("cases","controls"))
blood <- gl(2, 2, 12, labels=c("A","O"))
city <- gl(3, 4, 12, labels=c("London","Manchester","Newcastle"))
cbind(group, blood, city, counts) # gives internal codes for the factors
summary(z1 <- glm(counts ~ group*(city + blood), family=poisson()))
summary(z2 <- glm(counts ~ group*city + blood, family=poisson()),
correlation = TRUE)
anova(z2, z1, test = "Chisq")
# Copyright (C) 1997-2009, 2017 The R Core Team
### Helical Valley Function
### Page 362 Dennis + Schnabel
require(stats); require(graphics); require(utils)
theta <- function(x1,x2) (atan(x2/x1) + (if(x1 <= 0) pi else 0))/ (2*pi)
## but this is easier :
theta <- function(x1,x2) atan2(x2, x1)/(2*pi)
f <- function(x) {
f1 <- 10*(x[3] - 10*theta(x[1],x[2]))
f2 <- 10*(sqrt(x[1]^2+x[2]^2)-1)
f3 <- x[3]
return(f1^2 + f2^2 + f3^2)
}
## explore surface {at x3 = 0}
x <- seq(-1, 2, length.out=50)
y <- seq(-1, 1, length.out=50)
z <- apply(as.matrix(expand.grid(x, y)), 1, function(x) f(c(x, 0)))
contour(x, y, matrix(log10(z), 50, 50))
str(nlm.f <- nlm(f, c(-1,0,0), hessian = TRUE))
points(rbind(nlm.f$estim[1:2]), col = "red", pch = 20)
stopifnot(all.equal(nlm.f$estimate, c(1, 0, 0)))
### the Rosenbrock banana valley function
fR <- function(x)
{
x1 <- x[1]; x2 <- x[2]
100*(x2 - x1*x1)^2 + (1-x1)^2
}
## explore surface
fx <- function(x)
{ ## `vectorized' version of fR()
x1 <- x[,1]; x2 <- x[,2]
100*(x2 - x1*x1)^2 + (1-x1)^2
}
x <- seq(-2, 2, length.out=100)
y <- seq(-0.5, 1.5, length.out=100)
z <- fx(expand.grid(x, y))
op <- par(mfrow = c(2,1), mar = 0.1 + c(3,3,0,0))
contour(x, y, matrix(log10(z), length(x)))
str(nlm.f2 <- nlm(fR, c(-1.2, 1), hessian = TRUE))
points(rbind(nlm.f2$estim[1:2]), col = "red", pch = 20)
## Zoom in :
rect(0.9, 0.9, 1.1, 1.1, border = "orange", lwd = 2)
x <- y <- seq(0.9, 1.1, length.out=100)
z <- fx(expand.grid(x, y))
contour(x, y, matrix(log10(z), length(x)))
mtext("zoomed in");box(col = "orange")
points(rbind(nlm.f2$estim[1:2]), col = "red", pch = 20)
par(op)
with(nlm.f2,
stopifnot(all.equal(estimate, c(1,1), tol = 1e-5),
minimum < 1e-11, abs(gradient) < 1e-6, code %in% 1:2))
fg <- function(x)
{
gr <- function(x1, x2)
c(-400*x1*(x2 - x1*x1)-2*(1-x1), 200*(x2 - x1*x1))
x1 <- x[1]; x2 <- x[2]
structure(100*(x2 - x1*x1)^2 + (1-x1)^2,
gradient = gr(x1, x2))
}
nfg <- nlm(fg, c(-1.2, 1), hessian = TRUE)
str(nfg)
with(nfg,
stopifnot(minimum < 1e-17, all.equal(estimate, c(1,1)),
abs(gradient) < 1e-7, code %in% 1:2))
## or use deriv to find the derivatives
fd <- deriv(~ 100*(x2 - x1*x1)^2 + (1-x1)^2, c("x1", "x2"))
fdd <- function(x1, x2) {}
body(fdd) <- fd
nlfd <- nlm(function(x) fdd(x[1], x[2]), c(-1.2,1), hessian = TRUE)
str(nlfd)
with(nlfd,
stopifnot(minimum < 1e-17, all.equal(estimate, c(1,1)),
abs(gradient) < 1e-7, code %in% 1:2))
fgh <- function(x)
{
gr <- function(x1, x2)
c(-400*x1*(x2 - x1*x1) - 2*(1-x1), 200*(x2 - x1*x1))
h <- function(x1, x2) {
a11 <- 2 - 400*x2 + 1200*x1*x1
a21 <- -400*x1
matrix(c(a11, a21, a21, 200), 2, 2)
}
x1 <- x[1]; x2 <- x[2]
structure(100*(x2 - x1*x1)^2 + (1-x1)^2,
gradient = gr(x1, x2),
hessian = h(x1, x2))
}
nlfgh <- nlm(fgh, c(-1.2,1), hessian = TRUE)
str(nlfgh)
## NB: This did _NOT_ converge for R version <= 3.4.0
with(nlfgh,
stopifnot(minimum < 1e-15, # see 1.13e-17 .. slightly worse than above
all.equal(estimate, c(1,1), tol=9e-9), # see 1.236e-9
abs(gradient) < 7e-7, code %in% 1:2)) # g[1] = 1.3e-7
### This used to be in example(smooth) before we had package-specific demos
# Copyright (C) 1997-2009 The R Core Team
require(stats); require(graphics); require(datasets)
op <- par(mfrow = c(1,1))
## The help(smooth) examples:
example(smooth, package="stats")
## Didactical investigation:
showSmooth <- function(x, leg.x = 1, leg.y = max(x)) {
ss <- cbind(x, "3c" = smooth(x, "3", end="copy"),
"3" = smooth(x, "3"),
"3Rc" = smooth(x, "3R", end="copy"),
"3R" = smooth(x, "3R"),
sm = smooth(x))
k <- ncol(ss) - 1
n <- length(x)
slwd <- c(1,1,4,1,3,2)
slty <- c(0, 2:(k+1))
matplot(ss, main = "Tukey Smoothers", ylab = "y ; sm(y)",
type= c("p",rep("l",k)), pch= par("pch"), lwd= slwd, lty= slty)
legend(leg.x, leg.y,
c("Data", "3 (copy)", "3 (Tukey)",
"3R (copy)", "3R (Tukey)", "smooth()"),
pch= c(par("pch"),rep(-1,k)), col=1:(k+1), lwd= slwd, lty= slty)
ss
}
## 4 simple didactical examples, showing different steps in smooth():
for(x in list(c(4, 6, 2, 2, 6, 3, 6, 6, 5, 2),
c(3, 2, 1, 4, 5, 1, 3, 2, 4, 5, 2),
c(2, 4, 2, 6, 1, 1, 2, 6, 3, 1, 6),
x1))
print(t(showSmooth(x)))
par(op)

View file

@ -0,0 +1 @@
{"files":[{"filename":"/glm.vr.R","start":0,"end":744},{"filename":"/lm.glm.R","start":744,"end":5737},{"filename":"/nlm.R","start":5737,"end":8987},{"filename":"/smooth.R","start":8987,"end":10269}],"remote_package_size":10269}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
{"files":[{"filename":"/AnIndex","start":0,"end":16245},{"filename":"/aliases.rds","start":16245,"end":21660},{"filename":"/paths.rds","start":21660,"end":24025},{"filename":"/stats.rdb","start":24025,"end":1622678},{"filename":"/stats.rdx","start":1622678,"end":1629293}],"remote_package_size":1629293}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
{"files":[{"filename":"/00Index.html","start":0,"end":73369},{"filename":"/R.css","start":73369,"end":75213}],"remote_package_size":75213}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/NLSstClosest.R","start":0,"end":443},{"filename":"/anorexia.rda","start":443,"end":1026},{"filename":"/arimaML.R","start":1026,"end":10001},{"filename":"/bandwidth.R","start":10001,"end":10651},{"filename":"/bandwidth.Rout.save","start":10651,"end":12294},{"filename":"/birthwt.rda","start":12294,"end":14210},{"filename":"/cmdscale.R","start":14210,"end":14589},{"filename":"/drop1-polr.R","start":14589,"end":15354},{"filename":"/glm-etc.R","start":15354,"end":22156},{"filename":"/glm.R","start":22156,"end":25179},{"filename":"/glm.Rout.save","start":25179,"end":31885},{"filename":"/hills.rds","start":31885,"end":32685},{"filename":"/ig_glm.R","start":32685,"end":35024},{"filename":"/ks-test.R","start":35024,"end":39064},{"filename":"/ks-test.Rout.save","start":39064,"end":50502},{"filename":"/nafns.R","start":50502,"end":54331},{"filename":"/nlm.R","start":54331,"end":58282},{"filename":"/nls.R","start":58282,"end":72240},{"filename":"/nls.Rout.save","start":72240,"end":99391},{"filename":"/offsets.R","start":99391,"end":100652},{"filename":"/ppr.R","start":100652,"end":100803},{"filename":"/ppr_test.csv","start":100803,"end":121083},{"filename":"/simulate.R","start":121083,"end":123737},{"filename":"/simulate.Rout.save","start":123737,"end":142325},{"filename":"/smooth.spline.R","start":142325,"end":150199},{"filename":"/table-margins.R","start":150199,"end":150933},{"filename":"/ts-tests.R","start":150933,"end":157042}],"remote_package_size":157042}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/AnIndex","start":0,"end":1120},{"filename":"/aliases.rds","start":1120,"end":1490},{"filename":"/paths.rds","start":1490,"end":1759},{"filename":"/stats4.rdb","start":1759,"end":36001},{"filename":"/stats4.rdx","start":36001,"end":36487}],"remote_package_size":36487}

View file

@ -0,0 +1,205 @@
<!DOCTYPE html>
<html>
<head><title>R: Statistical Functions using S4 Classes</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body><div class="container">
<h1> Statistical Functions using S4 Classes
<img class="toplogo" src="../../../doc/html/Rlogo.svg" alt="[R logo]" />
</h1>
<hr/>
<div style="text-align: center;">
<a href="../../../doc/html/packages.html"><img class="arrow" src="../../../doc/html/left.jpg" alt="[Up]" /></a>
<a href="../../../doc/html/index.html"><img class="arrow" src="../../../doc/html/up.jpg" alt="[Top]" /></a>
</div><h2>Documentation for package &lsquo;stats4&rsquo; version 4.3.0</h2>
<ul><li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li>
</ul>
<h2>Help Pages</h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="stats4-package.html">stats4-package</a></td>
<td>Statistical Functions using S4 Classes</td></tr>
<tr><td style="width: 25%;"><a href="coef-methods.html">coef-method</a></td>
<td>Methods for Function 'coef' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="coef-methods.html">coef-methods</a></td>
<td>Methods for Function 'coef' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="confint-methods.html">confint-method</a></td>
<td>Methods for Function 'confint' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="confint-methods.html">confint-methods</a></td>
<td>Methods for Function 'confint' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="logLik-methods.html">logLik-method</a></td>
<td>Methods for Function 'logLik' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="logLik-methods.html">logLik-methods</a></td>
<td>Methods for Function 'logLik' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="mle.html">mle</a></td>
<td>Maximum Likelihood Estimation</td></tr>
<tr><td style="width: 25%;"><a href="mle-class.html">mle-class</a></td>
<td>Class '"mle"' for Results of Maximum Likelihood Estimation</td></tr>
<tr><td style="width: 25%;"><a href="mle-class.html">nobs-method</a></td>
<td>Class '"mle"' for Results of Maximum Likelihood Estimation</td></tr>
<tr><td style="width: 25%;"><a href="plot-methods.html">plot-method</a></td>
<td>Methods for Function 'plot' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="plot-methods.html">plot-methods</a></td>
<td>Methods for Function 'plot' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="profile-methods.html">profile-method</a></td>
<td>Methods for Function 'profile' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="profile-methods.html">profile-methods</a></td>
<td>Methods for Function 'profile' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="profile.mle-class.html">profile.mle-class</a></td>
<td>Class '"profile.mle"'; Profiling information for '"mle"' object</td></tr>
<tr><td style="width: 25%;"><a href="show-methods.html">show-method</a></td>
<td>Methods for Function 'show' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="show-methods.html">show-methods</a></td>
<td>Methods for Function 'show' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="stats4-package.html">stats4</a></td>
<td>Statistical Functions using S4 Classes</td></tr>
<tr><td style="width: 25%;"><a href="summary-methods.html">summary-method</a></td>
<td>Methods for Function 'summary' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="summary-methods.html">summary-methods</a></td>
<td>Methods for Function 'summary' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="summary.mle-class.html">summary.mle-class</a></td>
<td>Class '"summary.mle"', Summary of '"mle"' Objects</td></tr>
<tr><td style="width: 25%;"><a href="update-methods.html">update-method</a></td>
<td>Methods for Function 'update' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="update-methods.html">update-methods</a></td>
<td>Methods for Function 'update' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="vcov-methods.html">vcov-method</a></td>
<td>Methods for Function 'vcov' in Package 'stats4'</td></tr>
<tr><td style="width: 25%;"><a href="vcov-methods.html">vcov-methods</a></td>
<td>Methods for Function 'vcov' in Package 'stats4'</td></tr>
</table>
</div></body></html>
@media screen {
.container {
padding-right: 10px;
padding-left: 10px;
margin-right: auto;
margin-left: auto;
max-width: 900px;
}
}
.rimage img { /* from knitr - for examples and demos */
width: 96%;
margin-left: 2%;
}
.katex { font-size: 1.1em; }
code {
color: inherit;
background: inherit;
}
body {
line-height: 1.4;
background: white;
color: black;
}
a:link {
background: white;
color: blue;
}
a:visited {
background: white;
color: rgb(50%, 0%, 50%);
}
h1 {
background: white;
color: rgb(55%, 55%, 55%);
font-family: monospace;
font-size: 1.4em; /* x-large; */
text-align: center;
}
h2 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
text-align: center;
}
h3 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
}
h4 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
font-size: 1.2em; /* large; */
}
h5 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
}
h6 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
}
img.toplogo {
width: 4em;
vertical-align: middle;
}
img.arrow {
width: 30px;
height: 30px;
border: 0;
}
span.acronym {
font-size: small;
}
span.env {
font-family: monospace;
}
span.file {
font-family: monospace;
}
span.option{
font-family: monospace;
}
span.pkg {
font-weight: bold;
}
span.samp{
font-family: monospace;
}
div.vignettes a:hover {
background: rgb(85%, 85%, 85%);
}
tr {
vertical-align: top;
}
span.rlang {
font-family: Courier New, Courier;
color: #666666;
}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/00Index.html","start":0,"end":4513},{"filename":"/R.css","start":4513,"end":6357}],"remote_package_size":6357}

View file

@ -0,0 +1,23 @@
## PR#14646
library(stats4)
minusLogL1 <- function(mu, logsigma2)
N*log(2*pi*exp(logsigma2))/2 + N*(var(x)+(mean(x)-mu)^2)/(2*exp(logsigma2))
minusLogL2 <- function(mu) {
logsigma2 <- 0;
N*log(2*pi*exp(logsigma2))/2 + N*(var(x)+(mean(x)-mu)^2)/(2*exp(logsigma2))
}
N <- 100
set.seed(123)
x <- rnorm(N, 0, 1)
fit <- mle(minusLogL1, start = list(mu=0, logsigma2=0))
confint(fit)
fit2 <- mle(minusLogL1, start = list(mu=0), fixed = list(logsigma2=0))
confint(fit2) # failed
fit3 <- mle(minusLogL2, start = list(mu=0))
confint(fit3) # same

View file

@ -0,0 +1 @@
{"files":[{"filename":"/confint.R","start":0,"end":554}],"remote_package_size":554}

Binary file not shown.

View file

@ -0,0 +1 @@
{"files":[{"filename":"/DESCRIPTION","start":0,"end":402},{"filename":"/INDEX","start":402,"end":1028},{"filename":"/Meta/Rd.rds","start":1028,"end":3433},{"filename":"/Meta/demo.rds","start":3433,"end":3719},{"filename":"/Meta/features.rds","start":3719,"end":3850},{"filename":"/Meta/hsearch.rds","start":3850,"end":6316},{"filename":"/Meta/links.rds","start":6316,"end":8416},{"filename":"/Meta/nsInfo.rds","start":8416,"end":8896},{"filename":"/Meta/package.rds","start":8896,"end":9492},{"filename":"/NAMESPACE","start":9492,"end":10472},{"filename":"/R/tcltk","start":10472,"end":11333},{"filename":"/demo/tkcanvas.R","start":11333,"end":16561},{"filename":"/demo/tkdensity.R","start":16561,"end":20037},{"filename":"/demo/tkfaq.R","start":20037,"end":21266},{"filename":"/demo/tkttest.R","start":21266,"end":24241},{"filename":"/exec/Tk-frontend.R","start":24241,"end":25190},{"filename":"/exec/console.tcl","start":25190,"end":27425},{"filename":"/exec/hierarchy.tcl","start":27425,"end":66585},{"filename":"/exec/pkgIndex.tcl","start":66585,"end":67928},{"filename":"/exec/progressbar.tcl","start":67928,"end":146562},{"filename":"/exec/util-dump.tcl","start":146562,"end":164392},{"filename":"/exec/util-expand.tcl","start":164392,"end":170145},{"filename":"/exec/util-number.tcl","start":170145,"end":172260},{"filename":"/exec/util-string.tcl","start":172260,"end":175860},{"filename":"/exec/util-tk.tcl","start":175860,"end":183017},{"filename":"/exec/util.tcl","start":183017,"end":206284},{"filename":"/exec/widget.tcl","start":206284,"end":238987},{"filename":"/help/AnIndex","start":238987,"end":246442},{"filename":"/help/aliases.rds","start":246442,"end":248542},{"filename":"/help/paths.rds","start":248542,"end":248834},{"filename":"/help/tcltk.rdb","start":248834,"end":300393},{"filename":"/help/tcltk.rdx","start":300393,"end":300905},{"filename":"/html/00Index.html","start":300905,"end":335800},{"filename":"/html/R.css","start":335800,"end":337644}],"remote_package_size":337644}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/AnIndex","start":0,"end":4100},{"filename":"/aliases.rds","start":4100,"end":5705},{"filename":"/paths.rds","start":5705,"end":6498},{"filename":"/tools.rdb","start":6498,"end":262857},{"filename":"/tools.rdx","start":262857,"end":264578}],"remote_package_size":264578}

View file

@ -0,0 +1,585 @@
<!DOCTYPE html>
<html>
<head><title>R: Tools for Package Development</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body><div class="container">
<h1> Tools for Package Development
<img class="toplogo" src="../../../doc/html/Rlogo.svg" alt="[R logo]" />
</h1>
<hr/>
<div style="text-align: center;">
<a href="../../../doc/html/packages.html"><img class="arrow" src="../../../doc/html/left.jpg" alt="[Up]" /></a>
<a href="../../../doc/html/index.html"><img class="arrow" src="../../../doc/html/up.jpg" alt="[Top]" /></a>
</div><h2>Documentation for package &lsquo;tools&rsquo; version 4.3.0</h2>
<ul><li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li>
</ul>
<h2>Help Pages</h2>
<p style="text-align: center;">
<a href="# "> </a>
<a href="#A">A</a>
<a href="#B">B</a>
<a href="#C">C</a>
<a href="#D">D</a>
<a href="#E">E</a>
<a href="#F">F</a>
<a href="#G">G</a>
<a href="#H">H</a>
<a href="#L">L</a>
<a href="#M">M</a>
<a href="#N">N</a>
<a href="#P">P</a>
<a href="#Q">Q</a>
<a href="#R">R</a>
<a href="#S">S</a>
<a href="#T">T</a>
<a href="#U">U</a>
<a href="#V">V</a>
<a href="#W">W</a>
<a href="#X">X</a>
<a href="#misc">misc</a>
</p>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="tools-package.html">tools-package</a></td>
<td>Tools for Package Development</td></tr>
</table>
<h2><a id="A">-- A --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="matchConcordance.html">activeConcordance</a></td>
<td>Concordance between source and target lines.</td></tr>
<tr><td style="width: 25%;"><a href="add_datalist.html">add_datalist</a></td>
<td>Add a 'datalist' File to a Source Package</td></tr>
<tr><td style="width: 25%;"><a href="charsets.html">Adobe_glyphs</a></td>
<td>Conversion Tables between Character Sets</td></tr>
<tr><td style="width: 25%;"><a href="matchConcordance.html">as.character.Rconcordance</a></td>
<td>Concordance between source and target lines.</td></tr>
<tr><td style="width: 25%;"><a href="parse_Rd.html">as.character.Rd</a></td>
<td>Parse an Rd File</td></tr>
<tr><td style="width: 25%;"><a href="matchConcordance.html">as.Rconcordance</a></td>
<td>Concordance between source and target lines.</td></tr>
<tr><td style="width: 25%;"><a href="matchConcordance.html">as.Rconcordance.default</a></td>
<td>Concordance between source and target lines.</td></tr>
<tr><td style="width: 25%;"><a href="assertCondition.html">assertCondition</a></td>
<td>Asserting Error Conditions</td></tr>
<tr><td style="width: 25%;"><a href="assertCondition.html">assertError</a></td>
<td>Asserting Error Conditions</td></tr>
<tr><td style="width: 25%;"><a href="assertCondition.html">assertWarning</a></td>
<td>Asserting Error Conditions</td></tr>
</table>
<h2><a id="B">-- B --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="bibstyle.html">bibstyle</a></td>
<td>Select or Define a Bibliography Style</td></tr>
<tr><td style="width: 25%;"><a href="buildVignette.html">buildVignette</a></td>
<td>Build One Vignette</td></tr>
<tr><td style="width: 25%;"><a href="buildVignettes.html">buildVignettes</a></td>
<td>List and Build Package Vignettes</td></tr>
</table>
<h2><a id="C">-- C --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="charsets.html">charset_to_Unicode</a></td>
<td>Conversion Tables between Character Sets</td></tr>
<tr><td style="width: 25%;"><a href="QC.html">checkDocFiles</a></td>
<td>QC Checks for R Code and/or Documentation</td></tr>
<tr><td style="width: 25%;"><a href="QC.html">checkDocStyle</a></td>
<td>QC Checks for R Code and/or Documentation</td></tr>
<tr><td style="width: 25%;"><a href="checkFF.html">checkFF</a></td>
<td>Check Foreign Function Calls</td></tr>
<tr><td style="width: 25%;"><a href="checkMD5sums.html">checkMD5sums</a></td>
<td>Check and Create MD5 Checksum Files</td></tr>
<tr><td style="width: 25%;"><a href="checkPoFiles.html">checkPoFile</a></td>
<td>Check Translation Files for Inconsistent Format Strings</td></tr>
<tr><td style="width: 25%;"><a href="checkPoFiles.html">checkPoFiles</a></td>
<td>Check Translation Files for Inconsistent Format Strings</td></tr>
<tr><td style="width: 25%;"><a href="checkRd.html">checkRd</a></td>
<td>Check an Rd Object</td></tr>
<tr><td style="width: 25%;"><a href="checkRdaFiles.html">checkRdaFiles</a></td>
<td>Report on Details of Saved Images or Re-saves them</td></tr>
<tr><td style="width: 25%;"><a href="QC.html">checkRdContents</a></td>
<td>QC Checks for R Code and/or Documentation</td></tr>
<tr><td style="width: 25%;"><a href="QC.html">checkReplaceFuns</a></td>
<td>QC Checks for R Code and/or Documentation</td></tr>
<tr><td style="width: 25%;"><a href="QC.html">checkS3methods</a></td>
<td>QC Checks for R Code and/or Documentation</td></tr>
<tr><td style="width: 25%;"><a href="checkTnF.html">checkTnF</a></td>
<td>Check R Packages or Code for T/F</td></tr>
<tr><td style="width: 25%;"><a href="checkVignettes.html">checkVignettes</a></td>
<td>Check Package Vignettes</td></tr>
<tr><td style="width: 25%;"><a href="check_packages_in_dir.html">check_packages_in_dir</a></td>
<td>Check Source Packages and Their Reverse Dependencies</td></tr>
<tr><td style="width: 25%;"><a href="check_packages_in_dir.html">check_packages_in_dir_changes</a></td>
<td>Check Source Packages and Their Reverse Dependencies</td></tr>
<tr><td style="width: 25%;"><a href="check_packages_in_dir.html">check_packages_in_dir_details</a></td>
<td>Check Source Packages and Their Reverse Dependencies</td></tr>
<tr><td style="width: 25%;"><a href="codoc.html">codoc</a></td>
<td>Check Code/Documentation Consistency</td></tr>
<tr><td style="width: 25%;"><a href="codoc.html">codocClasses</a></td>
<td>Check Code/Documentation Consistency</td></tr>
<tr><td style="width: 25%;"><a href="codoc.html">codocData</a></td>
<td>Check Code/Documentation Consistency</td></tr>
<tr><td style="width: 25%;"><a href="compactPDF.html">compactPDF</a></td>
<td>Compact PDF Files</td></tr>
<tr><td style="width: 25%;"><a href="CRANtools.html">CRAN_check_details</a></td>
<td>CRAN Package Repository Tools</td></tr>
<tr><td style="width: 25%;"><a href="CRANtools.html">CRAN_check_issues</a></td>
<td>CRAN Package Repository Tools</td></tr>
<tr><td style="width: 25%;"><a href="CRANtools.html">CRAN_check_results</a></td>
<td>CRAN Package Repository Tools</td></tr>
<tr><td style="width: 25%;"><a href="CRANtools.html">CRAN_package_db</a></td>
<td>CRAN Package Repository Tools</td></tr>
</table>
<h2><a id="D">-- D --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="delimMatch.html">delimMatch</a></td>
<td>Delimited Pattern Matching</td></tr>
<tr><td style="width: 25%;"><a href="parseLatex.html">deparseLatex</a></td>
<td>Experimental Functions to Work with LaTeX Code</td></tr>
<tr><td style="width: 25%;"><a href="dependsOnPkgs.html">dependsOnPkgs</a></td>
<td>Find Reverse Dependencies</td></tr>
</table>
<h2><a id="E">-- E --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="encoded.html">encoded_text_to_latex</a></td>
<td>Translate non-ASCII Text to LaTeX Escapes</td></tr>
</table>
<h2><a id="F">-- F --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="fileutils.html">file_ext</a></td>
<td>File Utilities</td></tr>
<tr><td style="width: 25%;"><a href="fileutils.html">file_path_as_absolute</a></td>
<td>File Utilities</td></tr>
<tr><td style="width: 25%;"><a href="fileutils.html">file_path_sans_ext</a></td>
<td>File Utilities</td></tr>
<tr><td style="width: 25%;"><a href="HTMLlinks.html">findHTMLlinks</a></td>
<td>Collect HTML Links from Package Documentation</td></tr>
<tr><td style="width: 25%;"><a href="find_gs_cmd.html">find_gs_cmd</a></td>
<td>Find a GhostScript Executable</td></tr>
<tr><td style="width: 25%;"><a href="matchConcordance.html">followConcordance</a></td>
<td>Concordance between source and target lines.</td></tr>
<tr><td style="width: 25%;"><a href="compactPDF.html">format.compactPDF</a></td>
<td>Compact PDF Files</td></tr>
</table>
<h2><a id="G">-- G --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="bibstyle.html">getBibstyle</a></td>
<td>Select or Define a Bibliography Style</td></tr>
<tr><td style="width: 25%;"><a href="getVignetteInfo.html">getVignetteInfo</a></td>
<td>Get Information on Installed Vignettes</td></tr>
<tr><td style="width: 25%;"><a href="find_gs_cmd.html">GSC</a></td>
<td>Find a GhostScript Executable</td></tr>
</table>
<h2><a id="H">-- H --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="startDynamicHelp.html">help.ports</a></td>
<td>Start the Dynamic HTML Help System</td></tr>
<tr><td style="width: 25%;"><a href="HTMLheader.html">HTMLheader</a></td>
<td>Generate a Standard HTML Header for R Help</td></tr>
</table>
<h2><a id="L">-- L --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="QC.html">langElts</a></td>
<td>QC Checks for R Code and/or Documentation</td></tr>
<tr><td style="width: 25%;"><a href="parseLatex.html">latexToUtf8</a></td>
<td>Experimental Functions to Work with LaTeX Code</td></tr>
<tr><td style="width: 25%;"><a href="fileutils.html">list_files_with_exts</a></td>
<td>File Utilities</td></tr>
<tr><td style="width: 25%;"><a href="fileutils.html">list_files_with_type</a></td>
<td>File Utilities</td></tr>
<tr><td style="width: 25%;"><a href="loadRdMacros.html">loadPkgRdMacros</a></td>
<td>Load User-defined Rd Help System Macros</td></tr>
<tr><td style="width: 25%;"><a href="loadRdMacros.html">loadRdMacros</a></td>
<td>Load User-defined Rd Help System Macros</td></tr>
</table>
<h2><a id="M">-- M --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="makevars.html">makevars_site</a></td>
<td>User and Site Compilation Variables</td></tr>
<tr><td style="width: 25%;"><a href="makevars.html">makevars_user</a></td>
<td>User and Site Compilation Variables</td></tr>
<tr><td style="width: 25%;"><a href="make_translations_pkg.html">make_translations_pkg</a></td>
<td>Package the Current Translations in the R Sources</td></tr>
<tr><td style="width: 25%;"><a href="matchConcordance.html">matchConcordance</a></td>
<td>Concordance between source and target lines.</td></tr>
<tr><td style="width: 25%;"><a href="md5sum.html">md5sum</a></td>
<td>Compute MD5 Checksums</td></tr>
</table>
<h2><a id="N">-- N --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="QC.html">nonS3methods</a></td>
<td>QC Checks for R Code and/or Documentation</td></tr>
</table>
<h2><a id="P">-- P --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="package_dependencies.html">package_dependencies</a></td>
<td>Computations on the Dependency Hierarchy of Packages</td></tr>
<tr><td style="width: 25%;"><a href="package_native_routine_registration_skeleton.html">package_native_routine_registration_skeleton</a></td>
<td>Write Skeleton for Adding Native Routine Registration to a Package</td></tr>
<tr><td style="width: 25%;"><a href="parseLatex.html">parseLatex</a></td>
<td>Experimental Functions to Work with LaTeX Code</td></tr>
<tr><td style="width: 25%;"><a href="parse_Rd.html">parse_Rd</a></td>
<td>Parse an Rd File</td></tr>
<tr><td style="width: 25%;"><a href="buildVignettes.html">pkgVignettes</a></td>
<td>List and Build Package Vignettes</td></tr>
<tr><td style="width: 25%;"><a href="QC.html">print.checkDocFiles</a></td>
<td>QC Checks for R Code and/or Documentation</td></tr>
<tr><td style="width: 25%;"><a href="QC.html">print.checkDocStyle</a></td>
<td>QC Checks for R Code and/or Documentation</td></tr>
<tr><td style="width: 25%;"><a href="checkFF.html">print.checkFF</a></td>
<td>Check Foreign Function Calls</td></tr>
<tr><td style="width: 25%;"><a href="QC.html">print.checkRdContents</a></td>
<td>QC Checks for R Code and/or Documentation</td></tr>
<tr><td style="width: 25%;"><a href="QC.html">print.checkReplaceFuns</a></td>
<td>QC Checks for R Code and/or Documentation</td></tr>
<tr><td style="width: 25%;"><a href="QC.html">print.checkS3methods</a></td>
<td>QC Checks for R Code and/or Documentation</td></tr>
<tr><td style="width: 25%;"><a href="checkTnF.html">print.checkTnF</a></td>
<td>Check R Packages or Code for T/F</td></tr>
<tr><td style="width: 25%;"><a href="checkVignettes.html">print.checkVignettes</a></td>
<td>Check Package Vignettes</td></tr>
<tr><td style="width: 25%;"><a href="codoc.html">print.codoc</a></td>
<td>Check Code/Documentation Consistency</td></tr>
<tr><td style="width: 25%;"><a href="codoc.html">print.codocClasses</a></td>
<td>Check Code/Documentation Consistency</td></tr>
<tr><td style="width: 25%;"><a href="codoc.html">print.codocData</a></td>
<td>Check Code/Documentation Consistency</td></tr>
<tr><td style="width: 25%;"><a href="parse_Rd.html">print.Rd</a></td>
<td>Parse an Rd File</td></tr>
<tr><td style="width: 25%;"><a href="undoc.html">print.undoc</a></td>
<td>Find Undocumented Objects</td></tr>
<tr><td style="width: 25%;"><a href="pskill.html">pskill</a></td>
<td>Kill a Process</td></tr>
<tr><td style="width: 25%;"><a href="psnice.html">psnice</a></td>
<td>Get or Set the Priority (Niceness) of a Process</td></tr>
</table>
<h2><a id="Q">-- Q --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="QC.html">QC</a></td>
<td>QC Checks for R Code and/or Documentation</td></tr>
</table>
<h2><a id="R">-- R --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="Rcmd.html">Rcmd</a></td>
<td>R CMD Interface</td></tr>
<tr><td style="width: 25%;"><a href="matchConcordance.html">Rconcordance</a></td>
<td>Concordance between source and target lines.</td></tr>
<tr><td style="width: 25%;"><a href="Rd2HTML.html">Rd2ex</a></td>
<td>Rd Converters</td></tr>
<tr><td style="width: 25%;"><a href="Rd2HTML.html">Rd2HTML</a></td>
<td>Rd Converters</td></tr>
<tr><td style="width: 25%;"><a href="Rd2HTML.html">Rd2latex</a></td>
<td>Rd Converters</td></tr>
<tr><td style="width: 25%;"><a href="Rd2HTML.html">Rd2txt</a></td>
<td>Rd Converters</td></tr>
<tr><td style="width: 25%;"><a href="Rd2txt_options.html">Rd2txt_options</a></td>
<td>Set Formatting Options for Text Help</td></tr>
<tr><td style="width: 25%;"><a href="Rdiff.html">Rdiff</a></td>
<td>Difference R Output Files</td></tr>
<tr><td style="width: 25%;"><a href="Rdindex.html">Rdindex</a></td>
<td>Generate Index from Rd Files</td></tr>
<tr><td style="width: 25%;"><a href="RdTextFilter.html">RdTextFilter</a></td>
<td>Select Text in an Rd File</td></tr>
<tr><td style="width: 25%;"><a href="Rdutils.html">Rd_db</a></td>
<td>Rd Utilities</td></tr>
<tr><td style="width: 25%;"><a href="read.00Index.html">read.00Index</a></td>
<td>Read 00Index-style Files</td></tr>
<tr><td style="width: 25%;"><a href="checkRdaFiles.html">resaveRdaFiles</a></td>
<td>Report on Details of Saved Images or Re-saves them</td></tr>
<tr><td style="width: 25%;"><a href="CRANtools.html">R_CRAN_SRC</a></td>
<td>CRAN Package Repository Tools</td></tr>
<tr><td style="width: 25%;"><a href="CRANtools.html">R_CRAN_WEB</a></td>
<td>CRAN Package Repository Tools</td></tr>
<tr><td style="width: 25%;"><a href="startDynamicHelp.html">R_DISABLE_HTTPD</a></td>
<td>Start the Dynamic HTML Help System</td></tr>
<tr><td style="width: 25%;"><a href="find_gs_cmd.html">R_GSCMD</a></td>
<td>Find a GhostScript Executable</td></tr>
<tr><td style="width: 25%;"><a href="userdir.html">R_user_dir</a></td>
<td>R User Directories</td></tr>
</table>
<h2><a id="S">-- S --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="showNonASCII.html">showNonASCII</a></td>
<td>Pick Out Non-ASCII Characters</td></tr>
<tr><td style="width: 25%;"><a href="showNonASCII.html">showNonASCIIfile</a></td>
<td>Pick Out Non-ASCII Characters</td></tr>
<tr><td style="width: 25%;"><a href="pskill.html">SIGCHLD</a></td>
<td>Kill a Process</td></tr>
<tr><td style="width: 25%;"><a href="pskill.html">SIGCONT</a></td>
<td>Kill a Process</td></tr>
<tr><td style="width: 25%;"><a href="pskill.html">SIGHUP</a></td>
<td>Kill a Process</td></tr>
<tr><td style="width: 25%;"><a href="pskill.html">SIGINT</a></td>
<td>Kill a Process</td></tr>
<tr><td style="width: 25%;"><a href="pskill.html">SIGKILL</a></td>
<td>Kill a Process</td></tr>
<tr><td style="width: 25%;"><a href="pskill.html">SIGQUIT</a></td>
<td>Kill a Process</td></tr>
<tr><td style="width: 25%;"><a href="pskill.html">SIGSTOP</a></td>
<td>Kill a Process</td></tr>
<tr><td style="width: 25%;"><a href="pskill.html">SIGTERM</a></td>
<td>Kill a Process</td></tr>
<tr><td style="width: 25%;"><a href="pskill.html">SIGTSTP</a></td>
<td>Kill a Process</td></tr>
<tr><td style="width: 25%;"><a href="pskill.html">SIGUSR1</a></td>
<td>Kill a Process</td></tr>
<tr><td style="width: 25%;"><a href="pskill.html">SIGUSR2</a></td>
<td>Kill a Process</td></tr>
<tr><td style="width: 25%;"><a href="startDynamicHelp.html">startDynamicHelp</a></td>
<td>Start the Dynamic HTML Help System</td></tr>
<tr><td style="width: 25%;"><a href="check_packages_in_dir.html">summarize_check_packages_in_dir_depends</a></td>
<td>Check Source Packages and Their Reverse Dependencies</td></tr>
<tr><td style="width: 25%;"><a href="check_packages_in_dir.html">summarize_check_packages_in_dir_results</a></td>
<td>Check Source Packages and Their Reverse Dependencies</td></tr>
<tr><td style="width: 25%;"><a href="check_packages_in_dir.html">summarize_check_packages_in_dir_timings</a></td>
<td>Check Source Packages and Their Reverse Dependencies</td></tr>
<tr><td style="width: 25%;"><a href="CRANtools.html">summarize_CRAN_check_status</a></td>
<td>CRAN Package Repository Tools</td></tr>
<tr><td style="width: 25%;"><a href="SweaveTeXFilter.html">SweaveTeXFilter</a></td>
<td>Strip R Code out of Sweave File</td></tr>
</table>
<h2><a id="T">-- T --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="testInstalledPackage.html">testInstalledBasic</a></td>
<td>Test Installed Packages</td></tr>
<tr><td style="width: 25%;"><a href="testInstalledPackage.html">testInstalledPackage</a></td>
<td>Test Installed Packages</td></tr>
<tr><td style="width: 25%;"><a href="testInstalledPackage.html">testInstalledPackages</a></td>
<td>Test Installed Packages</td></tr>
<tr><td style="width: 25%;"><a href="testInstalledPackage.html">TEST_MC_CORES</a></td>
<td>Test Installed Packages</td></tr>
<tr><td style="width: 25%;"><a href="texi2dvi.html">texi2dvi</a></td>
<td>Compile LaTeX Files</td></tr>
<tr><td style="width: 25%;"><a href="texi2dvi.html">texi2pdf</a></td>
<td>Compile LaTeX Files</td></tr>
<tr><td style="width: 25%;"><a href="toHTML.html">toHTML</a></td>
<td>Display an Object in HTML</td></tr>
<tr><td style="width: 25%;"><a href="toHTML.html">toHTML.news_db</a></td>
<td>Display an Object in HTML</td></tr>
<tr><td style="width: 25%;"><a href="toHTML.html">toHTML.packageIQR</a></td>
<td>Display an Object in HTML</td></tr>
<tr><td style="width: 25%;"><a href="tools-package.html">tools</a></td>
<td>Tools for Package Development</td></tr>
<tr><td style="width: 25%;"><a href="tools-deprecated.html">tools-deprecated</a></td>
<td>Deprecated Objects in Package 'tools'</td></tr>
<tr><td style="width: 25%;"><a href="toRd.html">toRd</a></td>
<td>Generic Function to Convert Object to a Fragment of Rd Code</td></tr>
<tr><td style="width: 25%;"><a href="toRd.html">toRd.bibentry</a></td>
<td>Generic Function to Convert Object to a Fragment of Rd Code</td></tr>
<tr><td style="width: 25%;"><a href="toRd.html">toRd.default</a></td>
<td>Generic Function to Convert Object to a Fragment of Rd Code</td></tr>
<tr><td style="width: 25%;"><a href="toTitleCase.html">toTitleCase</a></td>
<td>Convert Titles to Title Case</td></tr>
</table>
<h2><a id="U">-- U --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="undoc.html">undoc</a></td>
<td>Find Undocumented Objects</td></tr>
<tr><td style="width: 25%;"><a href="updatePACKAGES.html">update_PACKAGES</a></td>
<td>Update Existing PACKAGES Files</td></tr>
<tr><td style="width: 25%;"><a href="update_pkg_po.html">update_pkg_po</a></td>
<td>Prepare Translations for a Package</td></tr>
</table>
<h2><a id="V">-- V --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="vignetteEngine.html">vignetteEngine</a></td>
<td>Set or Get a Vignette Processing Engine</td></tr>
<tr><td style="width: 25%;"><a href="vignetteInfo.html">vignetteInfo</a></td>
<td>Basic Information about a Vignette</td></tr>
</table>
<h2><a id="W">-- W --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="writePACKAGES.html">write_PACKAGES</a></td>
<td>Generate PACKAGES Files</td></tr>
</table>
<h2><a id="X">-- X --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="xgettext.html">xgettext</a></td>
<td>Extract Translatable Messages from R Files in a Package</td></tr>
<tr><td style="width: 25%;"><a href="xgettext.html">xgettext2pot</a></td>
<td>Extract Translatable Messages from R Files in a Package</td></tr>
<tr><td style="width: 25%;"><a href="xgettext.html">xngettext</a></td>
<td>Extract Translatable Messages from R Files in a Package</td></tr>
</table>
<h2><a id="misc">-- misc --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="print.via.format.html">.print.via.format</a></td>
<td>Printing Utilities</td></tr>
</table>
</div></body></html>
@media screen {
.container {
padding-right: 10px;
padding-left: 10px;
margin-right: auto;
margin-left: auto;
max-width: 900px;
}
}
.rimage img { /* from knitr - for examples and demos */
width: 96%;
margin-left: 2%;
}
.katex { font-size: 1.1em; }
code {
color: inherit;
background: inherit;
}
body {
line-height: 1.4;
background: white;
color: black;
}
a:link {
background: white;
color: blue;
}
a:visited {
background: white;
color: rgb(50%, 0%, 50%);
}
h1 {
background: white;
color: rgb(55%, 55%, 55%);
font-family: monospace;
font-size: 1.4em; /* x-large; */
text-align: center;
}
h2 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
text-align: center;
}
h3 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
}
h4 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
font-size: 1.2em; /* large; */
}
h5 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
}
h6 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
}
img.toplogo {
width: 4em;
vertical-align: middle;
}
img.arrow {
width: 30px;
height: 30px;
border: 0;
}
span.acronym {
font-size: small;
}
span.env {
font-family: monospace;
}
span.file {
font-family: monospace;
}
span.option{
font-family: monospace;
}
span.pkg {
font-weight: bold;
}
span.samp{
font-family: monospace;
}
div.vignettes a:hover {
background: rgb(85%, 85%, 85%);
}
tr {
vertical-align: top;
}
span.rlang {
font-family: Courier New, Courier;
color: #666666;
}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/00Index.html","start":0,"end":21584},{"filename":"/R.css","start":21584,"end":23428}],"remote_package_size":23428}

View file

@ -0,0 +1,191 @@
require("tools")
# -------------------------------------------------------------------
# find_wide_Rd_lines_in_Rd_object: render stage=render \Sexpr
# expressions within \examples if installed = TRUE.
rd <- sprintf("
\\name{foo}
\\title{Title}
\\description{Desc.}
\\examples{
\\Sexpr[stage=render]{\"# foobar\"}
\\Sexpr[stage=render]{strrep(\"long \", 30)}
# %s
}", strrep("123456789 ", 10))
rd <- parse_Rd(con <- textConnection(rd)); close(con)
# does not error, but finds long lines, dynamic ones as well
bad <- tools:::find_wide_Rd_lines_in_Rd_object(rd, installed = TRUE)
stopifnot(
"examples" %in% names(bad),
"warn" %in% names(bad$examples),
any(grepl("123456789 ", bad$examples$warn)),
any(grepl("long ", bad$examples$warn))
)
# does error currently
err <- NULL
tryCatch(
tools:::find_wide_Rd_lines_in_Rd_object(rd, installed = FALSE),
error = function(e) err <<- e
)
stopifnot(!is.null(err))
\name{Rd-Sexpr-error}
\title{Trigger an Error when Evaluating Code from \verb{\\Sexpr}}
\description{
\Sexpr[stage=render]{
% this will give an error
1 + "error"
}
}
\name{SexprExample}
\title{title}
\description{description}
\details{
Hello
\Sexpr[stage=build,results=hide]{
invisible(NULL)
invisible(NULL)
invisible(NULL)
invisible(NULL)
invisible(NULL)
invisible(NULL)
invisible(NULL)
invisible(NULL)
invisible(NULL)
"" # workaround: remove results=hide and use the return value
}
}
\name{Rd-Sexpr-warning}
\title{Trigger a \code{checkRd} Warning for \verb{\\Sexpr} Output}
\description{Regression test for c75410}
\section{Rd issue}{ % in line 5 (strong is invalid in code block)
\Sexpr[results=rd,stage=build]{"\\\\code{\\\\strong{x}}"}
}
require("tools")
# -------------------------------------------------------------------
# prepare_Rd() is OK with a top level \Sexpr that is yet to be rendered
txt <- "
\\name{foo}
\\title{Title}
\\description{Desc.}
\\Sexpr[stage=render,results=rd]{\"\\\\\\details{This is dynamic.}\"}
"
rd <- parse_Rd(con <- textConnection(txt)); close(con)
warn <- NULL
withCallingHandlers(
rd2 <- tools:::prepare_Rd(rd),
warning = function(w) { warn <<- w; invokeRestart("muffleWarning") }
)
stopifnot(is.null(warn))
stopifnot("\\Sexpr" %in% tools:::RdTags(rd2))
## \Sexpr[stage=build, results=hide]{ <a dozen "empty" lines> }
tf <- textConnection("RdTeX", "w")
Rd2latex("Rd-Sexpr-hide-empty.Rd", tf, stages="build")
tex <- textConnectionValue(tf); close(tf); rm(tf)
(H2end <- tex[grep("^Hello", tex):length(tex)])
stopifnot((n <- length(H2end)) <= 4, # currently '3'; was 13 in R < 4.2.0
H2end[-c(1L,n)] == "") # also had \\AsIs{ .. } " " " "
## checkRd() gives file name and correct line number of \Sexpr[results=rd] chunk
stopifnot(grepl("Rd-Sexpr-warning.Rd:5:",
print(checkRd("Rd-Sexpr-warning.Rd", stages = "build")),
fixed = TRUE))
## processRdChunk() gives file name and location of eval error
(msg <- tryCatch(checkRd(file_path_as_absolute("Rd-Sexpr-error.Rd")),
error = conditionMessage))
stopifnot(startsWith(msg, "Rd-Sexpr-error.Rd:4-7:"),
length(checkRd("Rd-Sexpr-error.Rd", stages = NULL)) == 0)
## file name and line numbers were missing in R < 4.2.0
## \doi with hash symbol or Rd specials
rd <- parse_Rd("doi.Rd")
writeLines(out <- capture.output(Rd2txt(rd, stages = "build")))
stopifnot(grepl("10.1000/456#789", out[5], fixed = TRUE),
grepl("doi.org/10.1000/456%23789", out[5], fixed = TRUE),
grepl("10.1000/{}", out[7], fixed = TRUE),
grepl("doi.org/10.1000/%7B%7D", out[7], fixed = TRUE))
## R < 4.2.0 failed to encode the hash and lost {}
require("tools")
x <- Rd_db("base")
system.time(y <- lapply(x, function(e)
tryCatch(Rd2HTML(e, out = nullfile()), error = identity))) # 3-5 sec
stopifnot(!vapply(y, inherits, NA, "error"))
## Gave error when "running" \Sexpr{.} DateTimeClasses.Rd
## PR#18052: \dots must not be interpreted inside \preformatted
Rdsnippet <- tempfile()
writeLines(r"(\preformatted{
\item{\dots}{foo(arg = "\\\\dots", ...)}
})", Rdsnippet)
#file.show(Rdsnippet)
stopifnot(exprs = {
identical(capture.output(Rd2HTML(Rdsnippet, fragment = TRUE))[2L],
r"(\item{\dots}{foo(arg = "\\dots", ...)})")
identical(capture.output(Rd2txt(Rdsnippet, fragment = TRUE))[2L],
r"(\item{\dots}{foo(arg = "\\dots", ...)})")
identical(capture.output(Rd2latex(Rdsnippet, fragment = TRUE))[2L],
r"(\bsl{}item\{\bsl{}dots\}\{foo(arg = "\bsl{}\bsl{}dots", ...)\})")
}) # the last two failed in R < 4.1.0
## also do not translate \dots in R code lines in \examples
Rdsnippet <- tempfile()
writeLines(r"(\examples{
foo <- function(arg = "\\\\dots", ...) NULL # \dots
})", Rdsnippet)
#file.show(Rdsnippet)
stopifnot(exprs = {
identical(capture.output(Rd2ex(parse_Rd(Rdsnippet), fragment = TRUE))[5L],
r"(foo <- function(arg = "\\dots", ...) NULL # \dots)")
}) # failed in R < 4.1.0
## \usage: keep quoted "\\\\dots", but _do_ translate formal \dots arg
Rdsnippet <- tempfile()
writeLines(r"(\name{foo}\title{foo}\usage{
## keep this comment to ensure a newline at the end
foo(arg = "\\\\dots", \dots)
})", Rdsnippet)
Rdobj <- parse_Rd(Rdsnippet)
check_dots_usage <- function(FUN) {
out <- trimws(grep("foo(", capture.output(FUN(Rdobj)),
value = TRUE, fixed = TRUE))
if (!identical(out, r"(foo(arg = "\\dots", ...))"))
stop("unexpected output: ", out)
}
check_dots_usage(Rd2HTML)
check_dots_usage(Rd2txt)
check_dots_usage(Rd2latex)
## the last two failed in R < 4.1.0; output was foo(arg = "\...", ...)
## check that all S3 methods in base are registered.
(function() {
old <- Sys.getlocale("LC_COLLATE")
on.exit(Sys.setlocale("LC_COLLATE", old))
Sys.setlocale("LC_COLLATE", "C")
stopifnot(identical(base:::.S3_methods_table, # >>> end of ../../base/R/zzz.R ; update *there* !
tools:::.make_S3_methods_table_for_base()))
})()
\RdOpts{stage = build} % emulate pre-4.2.0 default for \doi
\name{doi}
\title{Test \verb{\\doi} with hash or Rd specials}
\description{
\doi{10.1000/456#789} % example from DOI handbook (Section 2.5.2.3)
\doi{10.1000/\{\}} % hypothetical DOI with curly braces
}
require("tools")
(ud4 <- undoc("stats4"))
stopifnot(sapply(ud4, length) == 0)

View file

@ -0,0 +1 @@
{"files":[{"filename":"/QC.R","start":0,"end":924},{"filename":"/Rd-Sexpr-error.Rd","start":924,"end":1102},{"filename":"/Rd-Sexpr-hide-empty.Rd","start":1102,"end":1468},{"filename":"/Rd-Sexpr-warning.Rd","start":1468,"end":1728},{"filename":"/Rd.R","start":1728,"end":3697},{"filename":"/Rd2HTML.R","start":3697,"end":5673},{"filename":"/S3.R","start":5673,"end":6035},{"filename":"/doi.Rd","start":6035,"end":6311},{"filename":"/undoc.R","start":6311,"end":6390}],"remote_package_size":6390}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,7 @@
Package: translations
Version: 4.3.0
Title: The R Translations Package
Author: R Core Team and contributors worldwide
Maintainer: R Core Team <R-core@r-project.org>
Description: Compiled translations of messages.
License: Part of R 4.3.0

View file

@ -0,0 +1 @@
{"files":[{"filename":"/Sweave.pdf","start":0,"end":168884}],"remote_package_size":168884}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
{"files":[{"filename":"/AnIndex","start":0,"end":8834},{"filename":"/aliases.rds","start":8834,"end":12124},{"filename":"/paths.rds","start":12124,"end":13573},{"filename":"/utils.rdb","start":13573,"end":805471},{"filename":"/utils.rdx","start":805471,"end":809134}],"remote_package_size":809134}

View file

@ -0,0 +1,932 @@
<!DOCTYPE html>
<html>
<head><title>R: The R Utils Package</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body><div class="container">
<h1> The R Utils Package
<img class="toplogo" src="../../../doc/html/Rlogo.svg" alt="[R logo]" />
</h1>
<hr/>
<div style="text-align: center;">
<a href="../../../doc/html/packages.html"><img class="arrow" src="../../../doc/html/left.jpg" alt="[Up]" /></a>
<a href="../../../doc/html/index.html"><img class="arrow" src="../../../doc/html/up.jpg" alt="[Top]" /></a>
</div><h2>Documentation for package &lsquo;utils&rsquo; version 4.3.0</h2>
<ul><li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li>
<li><a href="../doc/index.html">User guides, package vignettes and other documentation.</a></li>
</ul>
<h2>Help Pages</h2>
<p style="text-align: center;">
<a href="# "> </a>
<a href="#A">A</a>
<a href="#B">B</a>
<a href="#C">C</a>
<a href="#D">D</a>
<a href="#E">E</a>
<a href="#F">F</a>
<a href="#G">G</a>
<a href="#H">H</a>
<a href="#I">I</a>
<a href="#L">L</a>
<a href="#M">M</a>
<a href="#N">N</a>
<a href="#O">O</a>
<a href="#P">P</a>
<a href="#Q">Q</a>
<a href="#R">R</a>
<a href="#S">S</a>
<a href="#T">T</a>
<a href="#U">U</a>
<a href="#V">V</a>
<a href="#W">W</a>
<a href="#X">X</a>
<a href="#Z">Z</a>
<a href="#misc">misc</a>
</p>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="utils-package.html">utils-package</a></td>
<td>The R Utils Package</td></tr>
</table>
<h2><a id="A">-- A --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="adist.html">adist</a></td>
<td>Approximate String Distances</td></tr>
<tr><td style="width: 25%;"><a href="alarm.html">alarm</a></td>
<td>Alert the User</td></tr>
<tr><td style="width: 25%;"><a href="apropos.html">apropos</a></td>
<td>Find Objects by (Partial) Name</td></tr>
<tr><td style="width: 25%;"><a href="aregexec.html">aregexec</a></td>
<td>Approximate String Match Positions</td></tr>
<tr><td style="width: 25%;"><a href="getAnywhere.html">argsAnywhere</a></td>
<td>Retrieve an R Object, Including from a Namespace</td></tr>
<tr><td style="width: 25%;"><a href="arrangeWindows.html">arrangeWindows</a></td>
<td>Rearrange Windows on MS Windows</td></tr>
<tr><td style="width: 25%;"><a href="person.html">as.character.person</a></td>
<td>Persons</td></tr>
<tr><td style="width: 25%;"><a href="person.html">as.person</a></td>
<td>Persons</td></tr>
<tr><td style="width: 25%;"><a href="personList.html">as.personList</a></td>
<td>Collections of Persons (Older Interface)</td></tr>
<tr><td style="width: 25%;"><a href="relist.html">as.relistable</a></td>
<td>Allow Re-Listing an unlist()ed Object</td></tr>
<tr><td style="width: 25%;"><a href="roman.html">as.roman</a></td>
<td>Roman Numerals</td></tr>
<tr><td style="width: 25%;"><a href="packageDescription.html">asDateBuilt</a></td>
<td>Package Description</td></tr>
<tr><td style="width: 25%;"><a href="askYesNo.html">askYesNo</a></td>
<td>Ask a Yes/No Question</td></tr>
<tr><td style="width: 25%;"><a href="aspell.html">aspell</a></td>
<td>Spell Check Interface</td></tr>
<tr><td style="width: 25%;"><a href="aspell-utils.html">aspell-utils</a></td>
<td>Spell Check Utilities</td></tr>
<tr><td style="width: 25%;"><a href="aspell-utils.html">aspell_package_C_files</a></td>
<td>Spell Check Utilities</td></tr>
<tr><td style="width: 25%;"><a href="aspell-utils.html">aspell_package_Rd_files</a></td>
<td>Spell Check Utilities</td></tr>
<tr><td style="width: 25%;"><a href="aspell-utils.html">aspell_package_R_files</a></td>
<td>Spell Check Utilities</td></tr>
<tr><td style="width: 25%;"><a href="aspell-utils.html">aspell_package_vignettes</a></td>
<td>Spell Check Utilities</td></tr>
<tr><td style="width: 25%;"><a href="aspell-utils.html">aspell_write_personal_dictionary_file</a></td>
<td>Spell Check Utilities</td></tr>
<tr><td style="width: 25%;"><a href="getFromNamespace.html">assignInMyNamespace</a></td>
<td>Utility Functions for Developing Namespaces</td></tr>
<tr><td style="width: 25%;"><a href="getFromNamespace.html">assignInNamespace</a></td>
<td>Utility Functions for Developing Namespaces</td></tr>
<tr><td style="width: 25%;"><a href="available.packages.html">available.packages</a></td>
<td>List Available Packages at CRAN-like Repositories</td></tr>
</table>
<h2><a id="B">-- B --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="BATCH.html">BATCH</a></td>
<td>Batch Execution of R</td></tr>
<tr><td style="width: 25%;"><a href="bibentry.html">bibentry</a></td>
<td>Bibliography Entries</td></tr>
<tr><td style="width: 25%;"><a href="browseEnv.html">browseEnv</a></td>
<td>Browse Objects in Environment</td></tr>
<tr><td style="width: 25%;"><a href="browseURL.html">browseURL</a></td>
<td>Load URL into an HTML Browser</td></tr>
<tr><td style="width: 25%;"><a href="browseVignettes.html">browseVignettes</a></td>
<td>List Vignettes in an HTML Browser</td></tr>
<tr><td style="width: 25%;"><a href="bug.report.html">bug.report</a></td>
<td>Send a Bug Report</td></tr>
<tr><td style="width: 25%;"><a href="PkgUtils.html">build</a></td>
<td>Utilities for Building and Checking Add-on Packages</td></tr>
</table>
<h2><a id="C">-- C --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="person.html">c.person</a></td>
<td>Persons</td></tr>
<tr><td style="width: 25%;"><a href="capture.output.html">capture.output</a></td>
<td>Send Output to a Character String or File</td></tr>
<tr><td style="width: 25%;"><a href="changedFiles.html">changedFiles</a></td>
<td>Detect which Files Have Changed</td></tr>
<tr><td style="width: 25%;"><a href="charClass.html">charClass</a></td>
<td>Character Classification</td></tr>
<tr><td style="width: 25%;"><a href="PkgUtils.html">check</a></td>
<td>Utilities for Building and Checking Add-on Packages</td></tr>
<tr><td style="width: 25%;"><a href="mirrorAdmin.html">checkCRAN</a></td>
<td>Managing Repository Mirrors</td></tr>
<tr><td style="width: 25%;"><a href="choose.dir.html">choose.dir</a></td>
<td>Choose a Folder Interactively on MS Windows</td></tr>
<tr><td style="width: 25%;"><a href="choose.files.html">choose.files</a></td>
<td>Choose a List of Files Interactively on MS Windows</td></tr>
<tr><td style="width: 25%;"><a href="chooseBioCmirror.html">chooseBioCmirror</a></td>
<td>Select a Bioconductor Mirror</td></tr>
<tr><td style="width: 25%;"><a href="chooseCRANmirror.html">chooseCRANmirror</a></td>
<td>Select a CRAN Mirror</td></tr>
<tr><td style="width: 25%;"><a href="citation.html">CITATION</a></td>
<td>Citing R and R Packages in Publications</td></tr>
<tr><td style="width: 25%;"><a href="citation.html">citation</a></td>
<td>Citing R and R Packages in Publications</td></tr>
<tr><td style="width: 25%;"><a href="cite.html">cite</a></td>
<td>Cite a Bibliography Entry</td></tr>
<tr><td style="width: 25%;"><a href="cite.html">citeNatbib</a></td>
<td>Cite a Bibliography Entry</td></tr>
<tr><td style="width: 25%;"><a href="citEntry.html">citEntry</a></td>
<td>Bibliography Entries (Older Interface)</td></tr>
<tr><td style="width: 25%;"><a href="citation.html">citFooter</a></td>
<td>Citing R and R Packages in Publications</td></tr>
<tr><td style="width: 25%;"><a href="citation.html">citHeader</a></td>
<td>Citing R and R Packages in Publications</td></tr>
<tr><td style="width: 25%;"><a href="clipboard.html">clipboard</a></td>
<td>Read/Write to/from the Clipboard in MS Windows</td></tr>
<tr><td style="width: 25%;"><a href="close.socket.html">close.socket</a></td>
<td>Close a Socket</td></tr>
<tr><td style="width: 25%;"><a href="txtProgressBar.html">close.txtProgressBar</a></td>
<td>Text Progress Bar</td></tr>
<tr><td style="width: 25%;"><a href="winProgressBar.html">close.winProgressBar</a></td>
<td>Progress Bars under MS Windows</td></tr>
<tr><td style="width: 25%;"><a href="hashtab.html">clrhash</a></td>
<td>Hash Tables (Experimental)</td></tr>
<tr><td style="width: 25%;"><a href="combn.html">combn</a></td>
<td>Generate All Combinations of n Elements, Taken m at a Time</td></tr>
<tr><td style="width: 25%;"><a href="compareVersion.html">compareVersion</a></td>
<td>Compare Two Package Version Numbers</td></tr>
<tr><td style="width: 25%;"><a href="COMPILE.html">COMPILE</a></td>
<td>Compile Files for Use with R on Unix-alikes</td></tr>
<tr><td style="width: 25%;"><a href="rcompgen.html">completion</a></td>
<td>A Completion Generator for R</td></tr>
<tr><td style="width: 25%;"><a href="contrib.url.html">contrib.url</a></td>
<td>Find Appropriate Paths in CRAN-like Repositories</td></tr>
<tr><td style="width: 25%;"><a href="count.fields.html">count.fields</a></td>
<td>Count the Number of Fields per Line</td></tr>
<tr><td style="width: 25%;"><a href="create.post.html">create.post</a></td>
<td>Ancillary Function for Preparing Emails and Postings</td></tr>
</table>
<h2><a id="D">-- D --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="data.html">data</a></td>
<td>Data Sets</td></tr>
<tr><td style="width: 25%;"><a href="dataentry.html">data.entry</a></td>
<td>Spreadsheet Interface for Entering Data</td></tr>
<tr><td style="width: 25%;"><a href="dataentry.html">dataentry</a></td>
<td>Spreadsheet Interface for Entering Data</td></tr>
<tr><td style="width: 25%;"><a href="dataentry.html">de</a></td>
<td>Spreadsheet Interface for Entering Data</td></tr>
<tr><td style="width: 25%;"><a href="debugcall.html">debugcall</a></td>
<td>Debug a Call</td></tr>
<tr><td style="width: 25%;"><a href="debugger.html">debugger</a></td>
<td>Post-Mortem Debugging</td></tr>
<tr><td style="width: 25%;"><a href="demo.html">demo</a></td>
<td>Demonstrations of R Functionality</td></tr>
<tr><td style="width: 25%;"><a href="DLL.version.html">DLL.version</a></td>
<td>DLL Version Information on MS Windows</td></tr>
<tr><td style="width: 25%;"><a href="download.file.html">download.file</a></td>
<td>Download File from the Internet</td></tr>
<tr><td style="width: 25%;"><a href="download.packages.html">download.packages</a></td>
<td>Download Packages from CRAN-like Repositories</td></tr>
<tr><td style="width: 25%;"><a href="debugger.html">dump.frames</a></td>
<td>Post-Mortem Debugging</td></tr>
</table>
<h2><a id="E">-- E --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="edit.html">edit</a></td>
<td>Invoke a Text Editor</td></tr>
<tr><td style="width: 25%;"><a href="edit.data.frame.html">edit.data.frame</a></td>
<td>Edit Data Frames and Matrices</td></tr>
<tr><td style="width: 25%;"><a href="vignette.html">edit.vignette</a></td>
<td>View, List or Get R Source of Package Vignettes</td></tr>
<tr><td style="width: 25%;"><a href="edit.html">emacs</a></td>
<td>Invoke a Text Editor</td></tr>
<tr><td style="width: 25%;"><a href="example.html">example</a></td>
<td>Run an Examples Section from the Online Help</td></tr>
</table>
<h2><a id="F">-- F --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="file.edit.html">file.edit</a></td>
<td>Edit One or More Files</td></tr>
<tr><td style="width: 25%;"><a href="changedFiles.html">fileSnapshot</a></td>
<td>Detect which Files Have Changed</td></tr>
<tr><td style="width: 25%;"><a href="filetest.html">file_test</a></td>
<td>Shell-style Tests on Files</td></tr>
<tr><td style="width: 25%;"><a href="choose.files.html">Filters</a></td>
<td>Choose a List of Files Interactively on MS Windows</td></tr>
<tr><td style="width: 25%;"><a href="apropos.html">find</a></td>
<td>Find Objects by (Partial) Name</td></tr>
<tr><td style="width: 25%;"><a href="findCRANmirror.html">findCRANmirror</a></td>
<td>Find CRAN Mirror Preference</td></tr>
<tr><td style="width: 25%;"><a href="findLineNum.html">findLineNum</a></td>
<td>Find the Location of a Line of Source Code, or Set a Breakpoint There</td></tr>
<tr><td style="width: 25%;"><a href="rcompgen.html">findMatches</a></td>
<td>A Completion Generator for R</td></tr>
<tr><td style="width: 25%;"><a href="fix.html">fix</a></td>
<td>Fix an Object</td></tr>
<tr><td style="width: 25%;"><a href="getFromNamespace.html">fixInNamespace</a></td>
<td>Utility Functions for Developing Namespaces</td></tr>
<tr><td style="width: 25%;"><a href="flush.console.html">flush.console</a></td>
<td>Flush Output to a Console</td></tr>
<tr><td style="width: 25%;"><a href="bibentry.html">format.bibentry</a></td>
<td>Bibliography Entries</td></tr>
<tr><td style="width: 25%;"><a href="bibentry.html">format.citation</a></td>
<td>Bibliography Entries</td></tr>
<tr><td style="width: 25%;"><a href="hashtab.html">format.hashtab</a></td>
<td>Hash Tables (Experimental)</td></tr>
<tr><td style="width: 25%;"><a href="methods.html">format.MethodsFunction</a></td>
<td>List Methods for S3 Generic Functions or Classes</td></tr>
<tr><td style="width: 25%;"><a href="object.size.html">format.object_size</a></td>
<td>Report the Space Allocated for an Object</td></tr>
<tr><td style="width: 25%;"><a href="person.html">format.person</a></td>
<td>Persons</td></tr>
<tr><td style="width: 25%;"><a href="format.html">formatOL</a></td>
<td>Format Unordered and Ordered Lists</td></tr>
<tr><td style="width: 25%;"><a href="format.html">formatUL</a></td>
<td>Format Unordered and Ordered Lists</td></tr>
</table>
<h2><a id="G">-- G --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="getAnywhere.html">getAnywhere</a></td>
<td>Retrieve an R Object, Including from a Namespace</td></tr>
<tr><td style="width: 25%;"><a href="chooseBioCmirror.html">getBioCmirrors</a></td>
<td>Select a Bioconductor Mirror</td></tr>
<tr><td style="width: 25%;"><a href="clipboard.html">getClipboardFormats</a></td>
<td>Read/Write to/from the Clipboard in MS Windows</td></tr>
<tr><td style="width: 25%;"><a href="chooseCRANmirror.html">getCRANmirrors</a></td>
<td>Select a CRAN Mirror</td></tr>
<tr><td style="width: 25%;"><a href="getFromNamespace.html">getFromNamespace</a></td>
<td>Utility Functions for Developing Namespaces</td></tr>
<tr><td style="width: 25%;"><a href="hashtab.html">gethash</a></td>
<td>Hash Tables (Experimental)</td></tr>
<tr><td style="width: 25%;"><a href="setWindowTitle.html">getIdentification</a></td>
<td>Set the Window Title or the Statusbar of the RGui in Windows</td></tr>
<tr><td style="width: 25%;"><a href="getParseData.html">getParseData</a></td>
<td>Get Detailed Parse Information from Object</td></tr>
<tr><td style="width: 25%;"><a href="getParseData.html">getParseText</a></td>
<td>Get Detailed Parse Information from Object</td></tr>
<tr><td style="width: 25%;"><a href="getS3method.html">getS3method</a></td>
<td>Get an S3 Method</td></tr>
<tr><td style="width: 25%;"><a href="sourceutils.html">getSrcDirectory</a></td>
<td>Source Reference Utilities</td></tr>
<tr><td style="width: 25%;"><a href="sourceutils.html">getSrcFilename</a></td>
<td>Source Reference Utilities</td></tr>
<tr><td style="width: 25%;"><a href="sourceutils.html">getSrcLocation</a></td>
<td>Source Reference Utilities</td></tr>
<tr><td style="width: 25%;"><a href="sourceutils.html">getSrcref</a></td>
<td>Source Reference Utilities</td></tr>
<tr><td style="width: 25%;"><a href="txtProgressBar.html">getTxtProgressBar</a></td>
<td>Text Progress Bar</td></tr>
<tr><td style="width: 25%;"><a href="getWindowsHandle.html">getWindowsHandle</a></td>
<td>Get a Windows Handle</td></tr>
<tr><td style="width: 25%;"><a href="getWindowsHandles.html">getWindowsHandles</a></td>
<td>Get handles of Windows in the MS Windows RGui</td></tr>
<tr><td style="width: 25%;"><a href="setWindowTitle.html">getWindowTitle</a></td>
<td>Set the Window Title or the Statusbar of the RGui in Windows</td></tr>
<tr><td style="width: 25%;"><a href="winProgressBar.html">getWinProgressBar</a></td>
<td>Progress Bars under MS Windows</td></tr>
<tr><td style="width: 25%;"><a href="glob2rx.html">glob2rx</a></td>
<td>Change Wildcard or Globbing Pattern into Regular Expression</td></tr>
<tr><td style="width: 25%;"><a href="globalVariables.html">globalVariables</a></td>
<td>Declarations Used in Checking a Package</td></tr>
</table>
<h2><a id="H">-- H --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="hashtab.html">hashtab</a></td>
<td>Hash Tables (Experimental)</td></tr>
<tr><td style="width: 25%;"><a href="hasName.html">hasName</a></td>
<td>Check for Name</td></tr>
<tr><td style="width: 25%;"><a href="head.html">head</a></td>
<td>Return the First or Last Parts of an Object</td></tr>
<tr><td style="width: 25%;"><a href="help.html">help</a></td>
<td>Documentation</td></tr>
<tr><td style="width: 25%;"><a href="help.request.html">help.request</a></td>
<td>Send a Post to R-help</td></tr>
<tr><td style="width: 25%;"><a href="help.search.html">help.search</a></td>
<td>Search the Help System</td></tr>
<tr><td style="width: 25%;"><a href="help.start.html">help.start</a></td>
<td>Hypertext Documentation</td></tr>
<tr><td style="width: 25%;"><a href="savehistory.html">history</a></td>
<td>Load or Save or Display the Commands History</td></tr>
<tr><td style="width: 25%;"><a href="hsearch-utils.html">hsearch_db</a></td>
<td>Help Search Utilities</td></tr>
<tr><td style="width: 25%;"><a href="hsearch-utils.html">hsearch_db_concepts</a></td>
<td>Help Search Utilities</td></tr>
<tr><td style="width: 25%;"><a href="hsearch-utils.html">hsearch_db_keywords</a></td>
<td>Help Search Utilities</td></tr>
</table>
<h2><a id="I">-- I --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="INSTALL.html">INSTALL</a></td>
<td>Install Add-on Packages</td></tr>
<tr><td style="width: 25%;"><a href="install.packages.html">install.packages</a></td>
<td>Install Packages from Repositories or Local Files</td></tr>
<tr><td style="width: 25%;"><a href="installed.packages.html">installed.packages</a></td>
<td>Find Installed Packages</td></tr>
<tr><td style="width: 25%;"><a href="hashtab.html">is.hashtab</a></td>
<td>Hash Tables (Experimental)</td></tr>
<tr><td style="width: 25%;"><a href="relist.html">is.relistable</a></td>
<td>Allow Re-Listing an unlist()ed Object</td></tr>
<tr><td style="width: 25%;"><a href="isS3method.html">isS3method</a></td>
<td>Is 'method' the Name of an S3 Method?</td></tr>
<tr><td style="width: 25%;"><a href="isS3stdGen.html">isS3stdGeneric</a></td>
<td>Check if a Function Acts as an S3 Generic</td></tr>
</table>
<h2><a id="L">-- L --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="hashtab.html">length.hashtab</a></td>
<td>Hash Tables (Experimental)</td></tr>
<tr><td style="width: 25%;"><a href="debugger.html">limitedLabels</a></td>
<td>Post-Mortem Debugging</td></tr>
<tr><td style="width: 25%;"><a href="LINK.html">LINK</a></td>
<td>Create Executable Programs on Unix-alikes</td></tr>
<tr><td style="width: 25%;"><a href="savehistory.html">loadhistory</a></td>
<td>Load or Save or Display the Commands History</td></tr>
<tr><td style="width: 25%;"><a href="Rconsole.html">loadRconsole</a></td>
<td>R for Windows Configuration</td></tr>
<tr><td style="width: 25%;"><a href="localeToCharset.html">localeToCharset</a></td>
<td>Select a Suitable Encoding Name from a Locale Name</td></tr>
<tr><td style="width: 25%;"><a href="ls_str.html">ls.str</a></td>
<td>List Objects and their Structure</td></tr>
<tr><td style="width: 25%;"><a href="ls_str.html">lsf.str</a></td>
<td>List Objects and their Structure</td></tr>
</table>
<h2><a id="M">-- M --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="maintainer.html">maintainer</a></td>
<td>Show Package Maintainer</td></tr>
<tr><td style="width: 25%;"><a href="make.packages.html.html">make.packages.html</a></td>
<td>Update HTML Package List</td></tr>
<tr><td style="width: 25%;"><a href="make.socket.html">make.socket</a></td>
<td>Create a Socket Connection</td></tr>
<tr><td style="width: 25%;"><a href="hashtab.html">maphash</a></td>
<td>Hash Tables (Experimental)</td></tr>
<tr><td style="width: 25%;"><a href="menu.html">menu</a></td>
<td>Menu Interaction Function</td></tr>
<tr><td style="width: 25%;"><a href="methods.html">methods</a></td>
<td>List Methods for S3 Generic Functions or Classes</td></tr>
<tr><td style="width: 25%;"><a href="mirrorAdmin.html">mirror2html</a></td>
<td>Managing Repository Mirrors</td></tr>
<tr><td style="width: 25%;"><a href="mirrorAdmin.html">mirrorAdmin</a></td>
<td>Managing Repository Mirrors</td></tr>
<tr><td style="width: 25%;"><a href="modifyList.html">modifyList</a></td>
<td>Recursively Modify Elements of a List</td></tr>
</table>
<h2><a id="N">-- N --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="update.packages.html">new.packages</a></td>
<td>Compare Installed Packages with CRAN-like Repositories</td></tr>
<tr><td style="width: 25%;"><a href="news.html">news</a></td>
<td>Build and Query R or Package News Information</td></tr>
<tr><td style="width: 25%;"><a href="nsl.html">nsl</a></td>
<td>Look up the IP Address by Hostname (on Unix-alikes)</td></tr>
<tr><td style="width: 25%;"><a href="hashtab.html">numhash</a></td>
<td>Hash Tables (Experimental)</td></tr>
</table>
<h2><a id="O">-- O --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="object.size.html">object.size</a></td>
<td>Report the Space Allocated for an Object</td></tr>
<tr><td style="width: 25%;"><a href="update.packages.html">old.packages</a></td>
<td>Compare Installed Packages with CRAN-like Repositories</td></tr>
<tr><td style="width: 25%;"><a href="roman.html">Ops.roman</a></td>
<td>Roman Numerals</td></tr>
<tr><td style="width: 25%;"><a href="sessionInfo.html">osVersion</a></td>
<td>Collect Information About the Current R Session</td></tr>
</table>
<h2><a id="P">-- P --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="package.skeleton.html">package.skeleton</a></td>
<td>Create a Skeleton for a New Source Package</td></tr>
<tr><td style="width: 25%;"><a href="packageDescription.html">packageDate</a></td>
<td>Package Description</td></tr>
<tr><td style="width: 25%;"><a href="packageDescription.html">packageDescription</a></td>
<td>Package Description</td></tr>
<tr><td style="width: 25%;"><a href="packageName.html">packageName</a></td>
<td>Find Package Associated with an Environment</td></tr>
<tr><td style="width: 25%;"><a href="packageStatus.html">packageStatus</a></td>
<td>Package Management Tools</td></tr>
<tr><td style="width: 25%;"><a href="packageDescription.html">packageVersion</a></td>
<td>Package Description</td></tr>
<tr><td style="width: 25%;"><a href="page.html">page</a></td>
<td>Invoke a Pager on an R Object</td></tr>
<tr><td style="width: 25%;"><a href="person.html">person</a></td>
<td>Persons</td></tr>
<tr><td style="width: 25%;"><a href="personList.html">personList</a></td>
<td>Collections of Persons (Older Interface)</td></tr>
<tr><td style="width: 25%;"><a href="edit.html">pico</a></td>
<td>Invoke a Text Editor</td></tr>
<tr><td style="width: 25%;"><a href="bibentry.html">print.bibentry</a></td>
<td>Bibliography Entries</td></tr>
<tr><td style="width: 25%;"><a href="toLatex.html">print.Bibtex</a></td>
<td>Converting R Objects to BibTeX or LaTeX</td></tr>
<tr><td style="width: 25%;"><a href="browseVignettes.html">print.browseVignettes</a></td>
<td>List Vignettes in an HTML Browser</td></tr>
<tr><td style="width: 25%;"><a href="changedFiles.html">print.changedFiles</a></td>
<td>Detect which Files Have Changed</td></tr>
<tr><td style="width: 25%;"><a href="bibentry.html">print.citation</a></td>
<td>Bibliography Entries</td></tr>
<tr><td style="width: 25%;"><a href="getAnywhere.html">print.getAnywhere</a></td>
<td>Retrieve an R Object, Including from a Namespace</td></tr>
<tr><td style="width: 25%;"><a href="hashtab.html">print.hashtab</a></td>
<td>Hash Tables (Experimental)</td></tr>
<tr><td style="width: 25%;"><a href="help.search.html">print.hsearch</a></td>
<td>Search the Help System</td></tr>
<tr><td style="width: 25%;"><a href="toLatex.html">print.Latex</a></td>
<td>Converting R Objects to BibTeX or LaTeX</td></tr>
<tr><td style="width: 25%;"><a href="ls_str.html">print.ls_str</a></td>
<td>List Objects and their Structure</td></tr>
<tr><td style="width: 25%;"><a href="methods.html">print.MethodsFunction</a></td>
<td>List Methods for S3 Generic Functions or Classes</td></tr>
<tr><td style="width: 25%;"><a href="news.html">print.news_db</a></td>
<td>Build and Query R or Package News Information</td></tr>
<tr><td style="width: 25%;"><a href="object.size.html">print.object_size</a></td>
<td>Report the Space Allocated for an Object</td></tr>
<tr><td style="width: 25%;"><a href="packageDescription.html">print.packageDescription</a></td>
<td>Package Description</td></tr>
<tr><td style="width: 25%;"><a href="data.html">print.packageIQR</a></td>
<td>Data Sets</td></tr>
<tr><td style="width: 25%;"><a href="packageStatus.html">print.packageStatus</a></td>
<td>Package Management Tools</td></tr>
<tr><td style="width: 25%;"><a href="person.html">print.person</a></td>
<td>Persons</td></tr>
<tr><td style="width: 25%;"><a href="sessionInfo.html">print.sessionInfo</a></td>
<td>Collect Information About the Current R Session</td></tr>
<tr><td style="width: 25%;"><a href="make.socket.html">print.socket</a></td>
<td>Create a Socket Connection</td></tr>
<tr><td style="width: 25%;"><a href="vignette.html">print.vignette</a></td>
<td>View, List or Get R Source of Package Vignettes</td></tr>
<tr><td style="width: 25%;"><a href="process.events.html">process.events</a></td>
<td>Trigger Event Handling</td></tr>
<tr><td style="width: 25%;"><a href="prompt.html">prompt</a></td>
<td>Produce Prototype of an R Documentation File</td></tr>
<tr><td style="width: 25%;"><a href="promptData.html">promptData</a></td>
<td>Generate Outline Documentation for a Data Set</td></tr>
<tr><td style="width: 25%;"><a href="prompt.html">promptImport</a></td>
<td>Produce Prototype of an R Documentation File</td></tr>
<tr><td style="width: 25%;"><a href="promptPackage.html">promptPackage</a></td>
<td>Generate a Shell for Documentation of a Package</td></tr>
</table>
<h2><a id="Q">-- Q --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="Question.html">Question</a></td>
<td>Documentation Shortcuts</td></tr>
</table>
<h2><a id="R">-- R --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="rcompgen.html">rc.settings</a></td>
<td>A Completion Generator for R</td></tr>
<tr><td style="width: 25%;"><a href="rcompgen.html">rcompgen</a></td>
<td>A Completion Generator for R</td></tr>
<tr><td style="width: 25%;"><a href="Rconsole.html">Rconsole</a></td>
<td>R for Windows Configuration</td></tr>
<tr><td style="width: 25%;"><a href="Rconsole.html">Rdevga</a></td>
<td>R for Windows Configuration</td></tr>
<tr><td style="width: 25%;"><a href="read.DIF.html">read.DIF</a></td>
<td>Data Input from Spreadsheet</td></tr>
<tr><td style="width: 25%;"><a href="read.fortran.html">read.fortran</a></td>
<td>Read Fixed-Format Data in a Fortran-like Style</td></tr>
<tr><td style="width: 25%;"><a href="read.fwf.html">read.fwf</a></td>
<td>Read Fixed Width Format Files</td></tr>
<tr><td style="width: 25%;"><a href="read.socket.html">read.socket</a></td>
<td>Read from or Write to a Socket</td></tr>
<tr><td style="width: 25%;"><a href="read.table.html">read.table</a></td>
<td>Data Input</td></tr>
<tr><td style="width: 25%;"><a href="citation.html">readCitationFile</a></td>
<td>Citing R and R Packages in Publications</td></tr>
<tr><td style="width: 25%;"><a href="clipboard.html">readClipboard</a></td>
<td>Read/Write to/from the Clipboard in MS Windows</td></tr>
<tr><td style="width: 25%;"><a href="readRegistry.html">readRegistry</a></td>
<td>Read a Windows Registry Hive</td></tr>
<tr><td style="width: 25%;"><a href="recover.html">recover</a></td>
<td>Browsing after an Error</td></tr>
<tr><td style="width: 25%;"><a href="relist.html">relist</a></td>
<td>Allow Re-Listing an unlist()ed Object</td></tr>
<tr><td style="width: 25%;"><a href="hashtab.html">remhash</a></td>
<td>Hash Tables (Experimental)</td></tr>
<tr><td style="width: 25%;"><a href="REMOVE.html">REMOVE</a></td>
<td>Remove Add-on Packages</td></tr>
<tr><td style="width: 25%;"><a href="remove.packages.html">remove.packages</a></td>
<td>Remove Installed Packages</td></tr>
<tr><td style="width: 25%;"><a href="removeSource.html">removeSource</a></td>
<td>Remove Stored Source from a Function or Language Object</td></tr>
<tr><td style="width: 25%;"><a href="RHOME.html">RHOME</a></td>
<td>R Home Directory</td></tr>
<tr><td style="width: 25%;"><a href="Rprof.html">Rprof</a></td>
<td>Enable Profiling of R's Execution</td></tr>
<tr><td style="width: 25%;"><a href="Rprofmem.html">Rprofmem</a></td>
<td>Enable Profiling of R's Memory Use</td></tr>
<tr><td style="width: 25%;"><a href="Rscript.html">Rscript</a></td>
<td>Scripting Front-End for R</td></tr>
<tr><td style="width: 25%;"><a href="RShowDoc.html">RShowDoc</a></td>
<td>Show R Manuals and Other Documentation</td></tr>
<tr><td style="width: 25%;"><a href="RSiteSearch.html">RSiteSearch</a></td>
<td>Search for Key Words or Phrases in Documentation</td></tr>
<tr><td style="width: 25%;"><a href="rtags.html">rtags</a></td>
<td>An Etags-like Tagging Utility for R</td></tr>
<tr><td style="width: 25%;"><a href="Rtangle.html">Rtangle</a></td>
<td>R Driver for Stangle</td></tr>
<tr><td style="width: 25%;"><a href="Rtangle.html">RtangleSetup</a></td>
<td>R Driver for Stangle</td></tr>
<tr><td style="width: 25%;"><a href="RweaveLatex.html">RweaveLatex</a></td>
<td>R/LaTeX Driver for Sweave</td></tr>
<tr><td style="width: 25%;"><a href="RweaveLatex.html">RweaveLatexSetup</a></td>
<td>R/LaTeX Driver for Sweave</td></tr>
<tr><td style="width: 25%;"><a href="available.packages.html">R_AVAILABLE_PACKAGES_CACHE_CONTROL_MAX_AGE</a></td>
<td>List Available Packages at CRAN-like Repositories</td></tr>
<tr><td style="width: 25%;"><a href="setRepositories.html">R_BIOC_VERSION</a></td>
<td>Select Package Repositories</td></tr>
<tr><td style="width: 25%;"><a href="INSTALL.html">R_INSTALL_STAGED</a></td>
<td>Install Add-on Packages</td></tr>
<tr><td style="width: 25%;"><a href="INSTALL.html">R_INSTALL_TAR</a></td>
<td>Install Add-on Packages</td></tr>
<tr><td style="width: 25%;"><a href="setRepositories.html">R_REPOSITORIES</a></td>
<td>Select Package Repositories</td></tr>
</table>
<h2><a id="S">-- S --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="savehistory.html">savehistory</a></td>
<td>Load or Save or Display the Commands History</td></tr>
<tr><td style="width: 25%;"><a href="select.list.html">select.list</a></td>
<td>Select Items from a List</td></tr>
<tr><td style="width: 25%;"><a href="sessionInfo.html">sessionInfo</a></td>
<td>Collect Information About the Current R Session</td></tr>
<tr><td style="width: 25%;"><a href="findLineNum.html">setBreakpoint</a></td>
<td>Find the Location of a Line of Source Code, or Set a Breakpoint There</td></tr>
<tr><td style="width: 25%;"><a href="hashtab.html">sethash</a></td>
<td>Hash Tables (Experimental)</td></tr>
<tr><td style="width: 25%;"><a href="setRepositories.html">setRepositories</a></td>
<td>Select Package Repositories</td></tr>
<tr><td style="width: 25%;"><a href="setWindowTitle.html">setStatusBar</a></td>
<td>Set the Window Title or the Statusbar of the RGui in Windows</td></tr>
<tr><td style="width: 25%;"><a href="txtProgressBar.html">setTxtProgressBar</a></td>
<td>Text Progress Bar</td></tr>
<tr><td style="width: 25%;"><a href="setWindowTitle.html">setWindowTitle</a></td>
<td>Set the Window Title or the Statusbar of the RGui in Windows</td></tr>
<tr><td style="width: 25%;"><a href="winProgressBar.html">setWinProgressBar</a></td>
<td>Progress Bars under MS Windows</td></tr>
<tr><td style="width: 25%;"><a href="SHLIB.html">SHLIB</a></td>
<td>Build Shared Object/DLL for Dynamic Loading</td></tr>
<tr><td style="width: 25%;"><a href="shortPathName.html">shortPathName</a></td>
<td>Express File Paths in Short Form on Windows</td></tr>
<tr><td style="width: 25%;"><a href="bibentry.html">sort.bibentry</a></td>
<td>Bibliography Entries</td></tr>
<tr><td style="width: 25%;"><a href="stack.html">stack</a></td>
<td>Stack or Unstack Vectors from a Data Frame or List</td></tr>
<tr><td style="width: 25%;"><a href="Sweave.html">Stangle</a></td>
<td>Automatic Generation of Reports</td></tr>
<tr><td style="width: 25%;"><a href="str.html">str</a></td>
<td>Compactly Display the Structure of an Arbitrary R Object</td></tr>
<tr><td style="width: 25%;"><a href="hashtab.html">str.hashtab</a></td>
<td>Hash Tables (Experimental)</td></tr>
<tr><td style="width: 25%;"><a href="strcapture.html">strcapture</a></td>
<td>Capture String Tokens into a data.frame</td></tr>
<tr><td style="width: 25%;"><a href="str.html">strOptions</a></td>
<td>Compactly Display the Structure of an Arbitrary R Object</td></tr>
<tr><td style="width: 25%;"><a href="packageStatus.html">summary.packageStatus</a></td>
<td>Package Management Tools</td></tr>
<tr><td style="width: 25%;"><a href="roman.html">Summary.roman</a></td>
<td>Roman Numerals</td></tr>
<tr><td style="width: 25%;"><a href="summaryRprof.html">summaryRprof</a></td>
<td>Summarise Output of R Sampling Profiler</td></tr>
<tr><td style="width: 25%;"><a href="globalVariables.html">suppressForeignCheck</a></td>
<td>Declarations Used in Checking a Package</td></tr>
<tr><td style="width: 25%;"><a href="Sweave.html">Sweave</a></td>
<td>Automatic Generation of Reports</td></tr>
<tr><td style="width: 25%;"><a href="Sweave.html">SweaveSyntaxLatex</a></td>
<td>Automatic Generation of Reports</td></tr>
<tr><td style="width: 25%;"><a href="Sweave.html">SweaveSyntaxNoweb</a></td>
<td>Automatic Generation of Reports</td></tr>
<tr><td style="width: 25%;"><a href="SweaveSyntConv.html">SweaveSyntConv</a></td>
<td>Convert Sweave Syntax</td></tr>
</table>
<h2><a id="T">-- T --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="head.html">tail</a></td>
<td>Return the First or Last Parts of an Object</td></tr>
<tr><td style="width: 25%;"><a href="tar.html">tar</a></td>
<td>Create a Tar Archive</td></tr>
<tr><td style="width: 25%;"><a href="savehistory.html">timestamp</a></td>
<td>Load or Save or Display the Commands History</td></tr>
<tr><td style="width: 25%;"><a href="toLatex.html">toBibtex</a></td>
<td>Converting R Objects to BibTeX or LaTeX</td></tr>
<tr><td style="width: 25%;"><a href="bibentry.html">toBibtex.bibentry</a></td>
<td>Bibliography Entries</td></tr>
<tr><td style="width: 25%;"><a href="person.html">toBibtex.person</a></td>
<td>Persons</td></tr>
<tr><td style="width: 25%;"><a href="toLatex.html">toLatex</a></td>
<td>Converting R Objects to BibTeX or LaTeX</td></tr>
<tr><td style="width: 25%;"><a href="sessionInfo.html">toLatex.sessionInfo</a></td>
<td>Collect Information About the Current R Session</td></tr>
<tr><td style="width: 25%;"><a href="txtProgressBar.html">txtProgressBar</a></td>
<td>Text Progress Bar</td></tr>
<tr><td style="width: 25%;"><a href="type.convert.html">type.convert</a></td>
<td>Convert Data to Appropriate Type</td></tr>
<tr><td style="width: 25%;"><a href="type.convert.html">type.convert.default</a></td>
<td>Convert Data to Appropriate Type</td></tr>
<tr><td style="width: 25%;"><a href="hashtab.html">typhash</a></td>
<td>Hash Tables (Experimental)</td></tr>
</table>
<h2><a id="U">-- U --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="debugcall.html">undebugcall</a></td>
<td>Debug a Call</td></tr>
<tr><td style="width: 25%;"><a href="relist.html">unlist.relistable</a></td>
<td>Allow Re-Listing an unlist()ed Object</td></tr>
<tr><td style="width: 25%;"><a href="stack.html">unstack</a></td>
<td>Stack or Unstack Vectors from a Data Frame or List</td></tr>
<tr><td style="width: 25%;"><a href="untar.html">untar</a></td>
<td>Extract or List Tar Archives</td></tr>
<tr><td style="width: 25%;"><a href="unzip.html">unzip</a></td>
<td>Extract or List Zip Archives</td></tr>
<tr><td style="width: 25%;"><a href="update.packages.html">update.packages</a></td>
<td>Compare Installed Packages with CRAN-like Repositories</td></tr>
<tr><td style="width: 25%;"><a href="packageStatus.html">update.packageStatus</a></td>
<td>Package Management Tools</td></tr>
<tr><td style="width: 25%;"><a href="upgrade.html">upgrade</a></td>
<td>Upgrade</td></tr>
<tr><td style="width: 25%;"><a href="packageStatus.html">upgrade.packageStatus</a></td>
<td>Package Management Tools</td></tr>
<tr><td style="width: 25%;"><a href="url.show.html">url.show</a></td>
<td>Display a Text URL</td></tr>
<tr><td style="width: 25%;"><a href="URLencode.html">URLdecode</a></td>
<td>Encode or Decode (partial) URLs</td></tr>
<tr><td style="width: 25%;"><a href="URLencode.html">URLencode</a></td>
<td>Encode or Decode (partial) URLs</td></tr>
<tr><td style="width: 25%;"><a href="utils-package.html">utils</a></td>
<td>The R Utils Package</td></tr>
<tr><td style="width: 25%;"><a href="utils-deprecated.html">utils-deprecated</a></td>
<td>Deprecated Functions in Package 'utils'</td></tr>
</table>
<h2><a id="V">-- V --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="edit.html">vi</a></td>
<td>Invoke a Text Editor</td></tr>
<tr><td style="width: 25%;"><a href="View.html">View</a></td>
<td>Invoke a Data Viewer</td></tr>
<tr><td style="width: 25%;"><a href="vignette.html">vignette</a></td>
<td>View, List or Get R Source of Package Vignettes</td></tr>
<tr><td style="width: 25%;"><a href="vignette.html">vignettes</a></td>
<td>View, List or Get R Source of Package Vignettes</td></tr>
</table>
<h2><a id="W">-- W --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="warnErrList.html">warnErrList</a></td>
<td>Collect and Summarize Errors From List</td></tr>
<tr><td style="width: 25%;"><a href="winextras.html">win.version</a></td>
<td>Get Windows Version</td></tr>
<tr><td style="width: 25%;"><a href="winDialog.html">winDialog</a></td>
<td>Dialog Boxes under Windows</td></tr>
<tr><td style="width: 25%;"><a href="winDialog.html">winDialogString</a></td>
<td>Dialog Boxes under Windows</td></tr>
<tr><td style="width: 25%;"><a href="winMenus.html">winMenuAdd</a></td>
<td>User Menus under MS Windows (Rgui)</td></tr>
<tr><td style="width: 25%;"><a href="winMenus.html">winMenuAddItem</a></td>
<td>User Menus under MS Windows (Rgui)</td></tr>
<tr><td style="width: 25%;"><a href="winMenus.html">winMenuDel</a></td>
<td>User Menus under MS Windows (Rgui)</td></tr>
<tr><td style="width: 25%;"><a href="winMenus.html">winMenuDelItem</a></td>
<td>User Menus under MS Windows (Rgui)</td></tr>
<tr><td style="width: 25%;"><a href="winMenus.html">winMenuItems</a></td>
<td>User Menus under MS Windows (Rgui)</td></tr>
<tr><td style="width: 25%;"><a href="winMenus.html">winMenuNames</a></td>
<td>User Menus under MS Windows (Rgui)</td></tr>
<tr><td style="width: 25%;"><a href="winProgressBar.html">winProgressBar</a></td>
<td>Progress Bars under MS Windows</td></tr>
<tr><td style="width: 25%;"><a href="read.socket.html">write.socket</a></td>
<td>Read from or Write to a Socket</td></tr>
<tr><td style="width: 25%;"><a href="write.table.html">write.table</a></td>
<td>Data Output</td></tr>
<tr><td style="width: 25%;"><a href="clipboard.html">writeClipboard</a></td>
<td>Read/Write to/from the Clipboard in MS Windows</td></tr>
<tr><td style="width: 25%;"><a href="browseEnv.html">wsbrowser</a></td>
<td>Browse Objects in Environment</td></tr>
</table>
<h2><a id="X">-- X --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="edit.html">xedit</a></td>
<td>Invoke a Text Editor</td></tr>
<tr><td style="width: 25%;"><a href="edit.html">xemacs</a></td>
<td>Invoke a Text Editor</td></tr>
</table>
<h2><a id="Z">-- Z --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="zip.html">zip</a></td>
<td>Create Zip Archives</td></tr>
</table>
<h2><a id="misc">-- misc --</a></h2>
<table style="width: 100%;">
<tr><td style="width: 25%;"><a href="person.html">$.person</a></td>
<td>Persons</td></tr>
<tr><td style="width: 25%;"><a href="rcompgen.html">.AtNames</a></td>
<td>A Completion Generator for R</td></tr>
<tr><td style="width: 25%;"><a href="rcompgen.html">.DollarNames</a></td>
<td>A Completion Generator for R</td></tr>
<tr><td style="width: 25%;"><a href="roman.html">.romans</a></td>
<td>Roman Numerals</td></tr>
<tr><td style="width: 25%;"><a href="methods.html">.S3methods</a></td>
<td>List Methods for S3 Generic Functions or Classes</td></tr>
<tr><td style="width: 25%;"><a href="Question.html">?</a></td>
<td>Documentation Shortcuts</td></tr>
<tr><td style="width: 25%;"><a href="help.search.html">??</a></td>
<td>Search the Help System</td></tr>
<tr><td style="width: 25%;"><a href="getAnywhere.html">[.getAnywhere</a></td>
<td>Retrieve an R Object, Including from a Namespace</td></tr>
<tr><td style="width: 25%;"><a href="person.html">[.person</a></td>
<td>Persons</td></tr>
<tr><td style="width: 25%;"><a href="hashtab.html">[[.hashtab</a></td>
<td>Hash Tables (Experimental)</td></tr>
</table>
</div></body></html>
@media screen {
.container {
padding-right: 10px;
padding-left: 10px;
margin-right: auto;
margin-left: auto;
max-width: 900px;
}
}
.rimage img { /* from knitr - for examples and demos */
width: 96%;
margin-left: 2%;
}
.katex { font-size: 1.1em; }
code {
color: inherit;
background: inherit;
}
body {
line-height: 1.4;
background: white;
color: black;
}
a:link {
background: white;
color: blue;
}
a:visited {
background: white;
color: rgb(50%, 0%, 50%);
}
h1 {
background: white;
color: rgb(55%, 55%, 55%);
font-family: monospace;
font-size: 1.4em; /* x-large; */
text-align: center;
}
h2 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
text-align: center;
}
h3 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-size: 1.2em; /* large; */
}
h4 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
font-size: 1.2em; /* large; */
}
h5 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
}
h6 {
background: white;
color: rgb(40%, 40%, 40%);
font-family: monospace;
font-style: italic;
}
img.toplogo {
width: 4em;
vertical-align: middle;
}
img.arrow {
width: 30px;
height: 30px;
border: 0;
}
span.acronym {
font-size: small;
}
span.env {
font-family: monospace;
}
span.file {
font-family: monospace;
}
span.option{
font-family: monospace;
}
span.pkg {
font-weight: bold;
}
span.samp{
font-family: monospace;
}
div.vignettes a:hover {
background: rgb(85%, 85%, 85%);
}
tr {
vertical-align: top;
}
span.rlang {
font-family: Courier New, Courier;
color: #666666;
}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/00Index.html","start":0,"end":41276},{"filename":"/R.css","start":41276,"end":43120}],"remote_package_size":43120}

View file

@ -0,0 +1,49 @@
Var1,Var2
2.7,A
3.14,B
10,A
-7,A
TABLE
0,1
"EXCEL"
VECTORS
0,5
""
TUPLES
0,2
""
DATA
0,0
""
-1,0
BOT
1,0
"Var1"
1,0
"Var2"
-1,0
BOT
0,2.7
V
1,0
"A"
-1,0
BOT
0,3.14
V
1,0
"B"
-1,0
BOT
0,10
V
1,0
"A"
-1,0
BOT
0,-7
V
1,0
"A"
-1,0
EOD

View file

@ -0,0 +1 @@
{"files":[{"filename":"/exDIF.csv","start":0,"end":38},{"filename":"/exDIF.dif","start":38,"end":280}],"remote_package_size":280}

View file

@ -0,0 +1,537 @@
\documentclass[11pt,a4paper]{article}
%% *** automatically switched by 'make' ( ./Makefile ) --- CARE!! in changing
\SweaveOpts{echo=FALSE,eval=FALSE,results=hide} % Exercise mode
%\SweaveOpts{echo=TRUE,eval=TRUE,results=verbatim} % Solution mode
%% other Sweave options
\SweaveOpts{engine=R, keep.source=TRUE, strip.white=true}
\newif\ifSolution
\Solutiontrue% if solution
\Solutionfalse%if exercise
%
\ifSolution\newcommand{\commentSol}[1]{#1}
\else \newcommand{\commentSol}[1]{}
\fi
\newcommand{\T}[1]{\texttt{#1}}
\begin{document}
<<preliminaries,echo=FALSE,results=hide>>=
options(width = 75, digits = 5, str=list(vec.len=2))
@
We work with the data set \T{airquality} which is part of R....
You can address it simply by \T{airquality}. Use \T{?airquality} to read about the
meaning of the variables contained in the dataset.
Get a summary of the data,
<<s-air-2,echo=TRUE,eval=TRUE>>=
summary(airquality)
@
\commentSol{The data set contains \Sexpr{nrow(airquality)} observations. The data is
complete for all but the first two variables \T{Ozone}, \T{Solar.R},
which contain \Sexpr{sum(is.na(airquality[,1]))} and
\Sexpr{sum(is.na(airquality[,2]))} missing values, respectively.
}
The above works in solution mode,
but in exercise mode, the $\backslash$Sexpr results are put out verbatim,
unfortunately using $\backslash$\verb|verb{bla bla{| and the left brace
\emph{really} messes up the $\backslash$commentSol\verb|{..}| command...
\end{document}
# File src/library/utils/tests/Sweave-tst.R
# Part of the R package, https://www.R-project.org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# A copy of the GNU General Public License is available at
# https://www.R-project.org/Licenses/
## Testing Sweave
if (FALSE) { # Sweave fails under emscripten (throws a syscall error)
.proctime00 <- proc.time()
library(utils)
options(digits = 5) # to avoid trivial printed differences
options(show.signif.stars = FALSE) # avoid fancy quotes in o/p
SweaveTeX <- function(file, ...) {
if(!file.exists(file))
stop("File", file, "does not exist in", getwd())
texF <- sub("\\.[RSrs]nw$", ".tex", file)
Sweave(file, ...)
if(!file.exists(texF))
stop("File", texF, "does not exist in", getwd())
readLines(texF)
}
p0 <- paste0
latexEnv <- function(lines, name) {
stopifnot(is.character(lines), is.character(name),
length(lines) >= 2, length(name) == 1)
beg <- p0("\\begin{",name,"}")
end <- p0("\\end{",name,"}")
i <- grep(beg, lines, fixed=TRUE)
j <- grep(end, lines, fixed=TRUE)
if((n <- length(i)) != length(j))
stop(sprintf("different number of %s / %s", beg,end))
if(any(j-1 < i+1))
stop(sprintf("positionally mismatched %s / %s", beg,end))
lapply(mapply(seq, i+1,j-1, SIMPLIFY=FALSE),
function(ind) lines[ind])
}
## now, Sweave() and check *.Rnw examples :
### ------------------------------------ 1 ----------------------------------
t1 <- SweaveTeX("swv-keepSrc-1.Rnw")
if(FALSE)## look at it
writeLines(t1)
inp <- latexEnv(t1, "Sinput")
out <- latexEnv(t1, "Soutput")
## This may have to be updated when the *.Rnw changes:
stopifnot(length(inp) == 5,
grepl("#", inp[[2]]), length(inp[[3]]) == 1,
length(out) == 1,
any(grepl("\\includegraphics", t1)))
### ------------------------------------ 2 ----------------------------------
## Sweave() comments with keep.source=TRUE
t2 <- SweaveTeX("keepsource.Rnw")
comml <- grep("##", t2, value=TRUE)
stopifnot(length(comml) == 2,
grepl("initial comment line", comml[1]),
grepl("last comment", comml[2]))
## the first was lost in 2.12.0; the last in most/all previous versions of R
### ------------------------------------ 3 ----------------------------------
## custom graphics devices
Sweave("customgraphics.Rnw")
### ------------------------------------ 4 ----------------------------------
## SweaveOpts + \Sexpr --> \verb... output
Sweave(f <- "Sexpr-verb-ex.Rnw")
tools::texi2pdf(sub("Rnw$","tex", f))# used to fail
cat('Time elapsed: ', proc.time() - .proctime00,'\n')
}
{
codepointsToString <- function(x)
parse(keep.source=FALSE, text=dQuote(q="\"\"", paste0(collapse="",
sprintf("\\u%04x", as.integer(x)))))[[1]]
testCharClass <- function(codepoints, class, expected = NULL) {
stopifnot(is.numeric(codepoints))
codepoints <- as.integer(codepoints)
stopifnot(!anyNA(codepoints), all(codepoints > 0))
if (!is.null(expected))
stopifnot(length(codepoints) == length(expected),
is.logical(expected))
result <- list()
result$`charClass(int vs char)` <-
all.equal(charClass(codepoints, class),
charClass(codepointsToString(codepoints), class))
if (!is.null(expected))
result$`expected` <- all.equal(expected,
charClass(codepoints, class))
result <- Filter(Negate(isTRUE), result)
if (length(result)==0) TRUE else result
}
charClasses <- c("alnum", "alpha", "blank", "cntrl", "digit", "graph",
"lower", "print", "punct", "space", "upper", "xdigit")
testCodepoints <- list(
# "\tAB, ab:3", all ASCII
ASCII = c(0x0009, 0x0041, 0x0042, 0x002c, 0x0020, 0x0061, 0x0062,
0x003a, 0x0033),
# "Ivan IV", with Ivan in Cyrillic
Cyrillic = c(0x0418, 0x0432, 0x0430, 0x043d, 0x0020, 0x0049, 0x0056),
# "Shalom", letters are U+05d0 through U+05ea
# the others (at 2, 3 and 6) are diacritical marks
Hebrew = c(0x05E9, 0x05C1, 0x05B8, 0x05DC, 0x05D5, 0x05B9, 0x05DD))
# check for consistency between integer and string inputs
stopifnot(all(unlist((outer(testCodepoints, charClasses,
function(x,y) lapply(seq_along(x),
function(i) testCharClass(x[[i]],y[i])))))))
}
# spot check return values
{
stopifnot(all.equal(
c(TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE),
charClass(testCodepoints[["ASCII"]], "blank")))
}
{
stopifnot(all.equal(
c(FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE),
charClass(testCodepoints[["ASCII"]], "punct")))
}
{
stopifnot(all.equal(
c(FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE),
charClass(testCodepoints[["ASCII"]], "digit")))
}
{
stopifnot(all.equal(
c(FALSE, TRUE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, TRUE),
charClass(testCodepoints[["ASCII"]], "alnum")))
}
# In principle, this can be locale dependent.
# Ubuntu in C locale (without internal iswxxxxx) gives different results.
if (Sys.getlocale("LC_CTYPE") != "C") {
stopifnot(all.equal(
c(TRUE, TRUE, TRUE, TRUE, FALSE, TRUE, TRUE),
charClass(testCodepoints[["Cyrillic"]], "alpha")))
stopifnot(all.equal(
c(TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE),
charClass(testCodepoints[["Cyrillic"]], "upper")))
stopifnot(all.equal(
c(FALSE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE),
charClass(testCodepoints[["Cyrillic"]], "lower")))
stopifnot(all.equal(
c(FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE),
charClass(testCodepoints[["Cyrillic"]], "space")))
# Ubuntu & Windows 10 disagree about diacritacals
stopifnot(all(
charClass(testCodepoints[["Hebrew"]], "alpha")[-c(2,3,6)]))
# no cases in Hebrew alphabet
stopifnot(!any(charClass(testCodepoints[["Hebrew"]], "lower")))
# no cases in Hebrew alphabet
stopifnot(!any(charClass(testCodepoints[["Hebrew"]], "upper")))
}
## test some typical completion attempts
testLine <- function(line, cursor = nchar(line))
{
str(utils:::.win32consoleCompletion(line, cursor))
}
testLine("")
testLine("lib")
testLine("data(")
testLine("data(US")
testLine("data(US", 3)
testLine("?INS")
testLine("utils::data")
testLine("utils:::.show_help_on_topic_")
testLine("utils::.show_help_on_topic_")
testLine("update(")
testLine("version$m")
testLine("nchar(version[")
testLine("method?coe")
testLine("?coe")
testLine("?\"coerce,AN")
testLine("method?\"coerce,AN")
## testLine("")
## testLine("")
## testLine("")
Test file for custom graphics devices
<<results=hide>>=
my.Swd <- function(name, width, height, ...) {
cat("running my.Swd\n")
grDevices::png(filename = paste(name, "png", sep = "."),
width = width, height = height, res = 100, units = "in",
bg = "transparent")
}
my.Swd.off <- function() {
cat("shutting down my.Swd\n")
grDevices::dev.off()
}
<<fig=TRUE, grdevice=my.Swd>>=
plot(1:2)
<<fig=TRUE, pdf=TRUE, grdevice=my.Swd>>=
plot(1:3)
<<fig=TRUE, grdevice=my.Swd, pdf=TRUE>>=
plot(1:4)
@
Done!
## Tests for HTTP headers -----------------------------------------------
is_online <- function() {
tryCatch({
con <- suppressWarnings(socketConnection("8.8.8.8", port = 53))
close(con)
con <- url("http://eu.httpbin.org/headers")
lines <- readLines(con)
close(con)
stopifnot(any(grepl("Host.*eu.httpbin.org", lines)))
TRUE
}, error = function(e) FALSE)
}
get_headers <- function(path = "anything", quiet = TRUE, ...,
protocol = "http") {
url <- get_path(path, protocol)
tmp <- tempfile()
on.exit(try(unlink(tmp)), add = TRUE)
download.file(url, tmp, quiet = quiet, ...)
readLines(tmp)
}
get_headers_url <- function(path = "anything", ..., protocol = "http") {
con <- url(get_path(path, protocol), ...)
on.exit(try(close(con)), add = TRUE)
readLines(con)
}
get_path <- function(path = "anything", protocol = "http") {
paste0(protocol, "://", "eu.httpbin.org/", path)
}
with_options <- function(opts, expr) {
old <- do.call(options, as.list(opts))
on.exit(options(old), add = TRUE)
expr
}
tests <- function() {
cat("- User agent is still set\n")
with_options(list(HTTPUserAgent = "foobar"), {
h <- get_headers()
stopifnot(any(grepl("User-Agent.*foobar", h)))
})
with_options(list(HTTPUserAgent = "foobar"), {
h <- get_headers(headers = c(foo = "bar", zzzz = "bee"))
stopifnot(any(grepl("User-Agent.*foobar", h)))
stopifnot(any(grepl("Foo.*bar", h)))
stopifnot(any(grepl("Zzzz.*bee", h)))
})
cat("- Can supply headers\n")
h <- get_headers(headers = c(foo = "bar", zzzz = "bee"))
stopifnot(any(grepl("Foo.*bar", h)))
stopifnot(any(grepl("Zzzz.*bee", h)))
cat("- Basic auth\n")
ret <- tryCatch({
h <- suppressWarnings(get_headers(
"basic-auth/Aladdin/OpenSesame",
headers = c(Authorization = "Basic QWxhZGRpbjpPcGVuU2VzYW1l")))
TRUE
}, error = function(e) FALSE)
stopifnot(any(grepl("authenticated.*true", h)))
if (getOption("download.file.method") == "libcurl") {
cat("- Multiple urls (libcurl only)\n")
urls <- get_path(c("anything", "headers"))
tmp1 <- tempfile()
tmp2 <- tempfile()
on.exit(unlink(c(tmp1, tmp2)), add = TRUE)
status <- download.file(urls, c(tmp1, tmp2), quiet = TRUE,
headers = c(foo = "bar", zzzz = "bee"))
if (status == 0L) {
h1 <- readLines(tmp1)
h2 <- readLines(tmp2)
stopifnot(any(grepl("Foo.*bar", h1)))
stopifnot(any(grepl("Zzzz.*bee", h1)))
stopifnot(any(grepl("Foo.*bar", h2)))
stopifnot(any(grepl("Zzzz.*bee", h2)))
}
}
cat("- HTTPS\n")
h <- get_headers(headers = c(foo = "bar", zzzz = "bee"), protocol = "https")
stopifnot(any(grepl("Foo.*bar", h)))
stopifnot(any(grepl("Zzzz.*bee", h)))
cat("- If headers not named, then error\n")
ret <- tryCatch(
download.file(get_path(), headers = c("foo", "xxx" = "bar")),
error = function(err) TRUE)
stopifnot(isTRUE(ret))
ret <- tryCatch(
download.file(get_path(), headers = "foobar"),
error = function(err) TRUE)
stopifnot(isTRUE(ret))
cat("- If headers are NA, then error\n")
ret <- tryCatch(
download.file(get_path(), headers = c("foo" = NA, "xxx" = "bar")),
error = function(err) TRUE)
stopifnot(isTRUE(ret))
ret <- tryCatch(
download.file(
get_path(), quiet = TRUE,
headers = structure(c("foo", "bar", names = c("foo", NA)))),
error = function(err) TRUE)
stopifnot(isTRUE(ret))
cat("- user agent is set in url()\n")
with_options(list(HTTPUserAgent = "foobar"), {
h <- get_headers_url()
stopifnot(any(grepl("User-Agent.*foobar", h)))
})
cat("- file() still works with URLs\n")
con <- file(get_path("anything", "http"))
on.exit(close(con), add = TRUE)
h <- readLines(con)
stopifnot(any(grepl("Host.*eu.httpbin.org", h)))
cat("- If headers not named, then url() errors\n")
ret <- tryCatch(
url(get_path(), headers = c("foo", "xxx" = "bar")),
error = function(err) TRUE)
stopifnot(isTRUE(ret))
cat("- If headers are NA, then url() errors\n")
ret <- tryCatch(
url(get_path(), headers = c("foo" = "bar", "xxx" = NA)),
error = function(err) TRUE)
stopifnot(isTRUE(ret))
ret <- tryCatch(
url(get_path(),
headers = structure(c("1", "2"), names = c("foo", NA))),
error = function(err) TRUE)
stopifnot(isTRUE(ret))
cat("- Can supply headers in url()\n")
h <- get_headers_url(headers = c(foo = "bar", zzzz = "bee"))
stopifnot(any(grepl("Foo.*bar", h)))
stopifnot(any(grepl("Zzzz.*bee", h)))
cat("- HTTPS with url()\n")
h <- get_headers_url(headers = c(foo = "bar", zzzz = "bee"),
protocol = "https")
stopifnot(any(grepl("Foo.*bar", h)))
stopifnot(any(grepl("Zzzz.*bee", h)))
}
main <- function() {
if (capabilities("libcurl")) {
cat("\nlibcurl method\n")
with_options(c(download.file.method = "libcurl"), tests())
}
if (.Platform$OS.type == "windows") {
## This is deprecated and will give warnings.
cat("\nwininet method\n")
with_options(c(download.file.method = "wininet"), tests())
}
}
options(warn = 1)
if (is_online()) main()
\SweaveOpts{keep.source=TRUE}
Now a chunk starting with a comment, lost in R 2.12.0 patched:
<<ex>>=
## This is an initial comment line. Let's hope it's not being lost
"Above there's a comment."
1:10 # a comment here is preserved
pi # also, there's one the next (last) line - which used to get lost
## and a last comment here ... lost also in earlier R versions
@
and some more text.
## PR#15854
local({
## This always worked
x <- as.relistable(list(integer(), 1:2, double(), 3))
vec <- unlist(x)
vec[[2]] <- 10
stopifnot(identical(relist(vec),
as.relistable(list(double(), c(1, 10), double(), 3))))
## Used to fail, Error .. The 'flesh' argument does not contain a skeleton attribute. ...
x <- as.relistable(list(integer(), 1:2, NULL, 3))
vec <- unlist(x)
vec[[2]] <- 10
stopifnot(identical(relist(vec),
as.relistable(list(double(), c(1, 10), double(), 3))))
## ditto in PR#..:
x <- list(NULL, a=1:3, b=5:7)
y <- unlist(as.relistable(x))
stopifnot(identical(relist(y),
as.relistable(list(`names<-`(integer(),character()),
a=1:3, b=5:7))))
## relist(y) gave Error ... :
## The 'flesh' argument does not contain a skeleton attribute.
## Either ensure you unlist a relistable object, or specify the skeleton separately.
})
\documentclass{article}
\SweaveOpts{engine=R,eps=FALSE,pdf=TRUE,strip.white=true,keep.source=TRUE}
\usepackage{Sweave}
\begin{document}
<<preliminaries, echo=FALSE, results=hide>>=
options(width=70, useFancyQuotes = FALSE, prompt="R> ", continue="+ ")
@
\subsection*{Introduction}
We generate 3D gaussian data,
We generate 3D Gaussian data,
<<ex1-U3>>=
set.seed(1)
n <- 100
x <- rnorm(n); y <- 2*x + rnorm(n)/2
U3 <- cbind(x, y, z = -3*x + y + rnorm(n)/4)
@
look at its structure
<<str>>=
str(U3) # its structure ((comment kept))
@
and load package \texttt{lattice}
<<req-lattice>>=
if(!require("lattice", quietly = TRUE)) q("no")
@
to visualize it by a simple scatter plot matrix
\begin{figure}[h!]
\centering
<<splom-def, eval=false>>=
splom(U3, xlab ="", cex = 0.4)
<<splom, echo=FALSE, fig=TRUE, height=5>>=
print(
<<splom-def>>
)
@
\caption{\Sexpr{n} vectors of random variates ... ...}
\label{fig:AC_Joe}
\end{figure}
\subsection*{Session Information}
<<sessionInfo, results=tex>>=
toLatex(sessionInfo())
@
\end{document}

View file

@ -0,0 +1 @@
{"files":[{"filename":"/Sexpr-verb-ex.Rnw","start":0,"end":1472},{"filename":"/Sweave-tst.R","start":1472,"end":4506},{"filename":"/charclass.R","start":4506,"end":8170},{"filename":"/completion.R","start":8170,"end":8757},{"filename":"/customgraphics.Rnw","start":8757,"end":9297},{"filename":"/download.file.R","start":9297,"end":14514},{"filename":"/keepsource.Rnw","start":14514,"end":14902},{"filename":"/relist.R","start":14902,"end":15926},{"filename":"/swv-keepSrc-1.Rnw","start":15926,"end":16966}],"remote_package_size":16966}

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show more