## Chunk 1
|
|||
library("RBioinf")
|
|||
## Chunk 2
|
|||
## setVNames = function(x, nm)
|
|||
## Chunk 3
|
|||
x = 1:10
|
|||
## Chunk 4
|
|||
foo=function(x, y) {
|
|||
## Chunk 5
|
|||
findLocals(body(foo))
|
|||
## Chunk 6
|
|||
checkUsage(foo, name="foo", all=TRUE)
|
|||
## Chunk 7
|
|||
## x = convertMode(1:4, list())
|
|||
## Chunk 8
|
|||
## traceback()
|
|||
## Chunk 9
|
|||
saveopt = options(warn=2)
|
|||
## Chunk 10
|
|||
options(saveopt)
|
|||
## Chunk 11
|
|||
## withCallingHandlers(expression,
|
|||
## Chunk 12
|
|||
options(error=recover)
|
|||
## Chunk 13
|
|||
## x = convertMode(1:4, list())
|
|||
## Chunk 14
|
|||
## rm("setVNames")
|
|||
## Chunk 15
|
|||
x = matrix(1:4, nrow=2)
|
|||
## Chunk 16
|
|||
debug(asSimpleVector)
|
|||
## Chunk 17
|
|||
## names(setVNames(x, letters[1:4]))
|
|||
## Chunk 18
|
|||
undebug(asSimpleVector)
|
|||
## Chunk 19
|
|||
trace(asSimpleVector)
|
|||
## Chunk 20
|
|||
## printWithNumbers(asSimpleVector)
|
|||
## Chunk 21
|
|||
trace(asSimpleVector, tracer=browser, at=9)
|
|||
## Chunk 22
|
|||
## names(setVNames(1:4, letters[1:4]))
|
|||
## Chunk 23
|
|||
untrace(asSimpleVector)
|
|||
## Chunk 24
|
|||
setGeneric("subsetAsCharacter")
|
|||
## Chunk 25
|
|||
setMethod("subsetAsCharacter",
|
|||
## Chunk 26
|
|||
trace("subsetAsCharacter", tracer = browser,
|
|||
## Chunk 27
|
|||
## subsetAsCharacter(1.5, 1:2)
|
|||
## Chunk 28
|
|||
subsetAsCharacter(1+0i, 1:2)
|
|||
## Chunk 29
|
|||
Rprof()
|
|||
## Chunk 30
|
|||
summaryRprof()
|
|||
## Chunk 31
|
|||
gc()
|
|||
## Chunk 32
|
|||
ss = memory.profile()
|
|||
## Chunk 33
|
|||
library("affy")
|
|||
## Chunk 34
|
|||
pS = summaryRprof(file="profRMA", memory="tseries")
|
|||
## Chunk 35
|
|||
plot(rownames(pS), pS$dup, type="l", xlab="Time",
|
|||
## Chunk 36
|
|||
Rprofmem(file="rma2.out", threshold=100000)
|
|||
## Chunk 37
|
|||
## noquote(readLines("rma2.out", n=5))
|
|||
## Chunk 38
|
|||
length(readLines("rma2.out"))
|
|||
## Chunk 39
|
|||
tracemem(Dilution)
|
|||