Learn R Programming

pubprint (version 0.2.1)

pull.pubprint: Pulls an item from a pubprint object

Description

pull.pubprint is used to pull an item from the pipe or the named memory of a pubprint object.

Usage

"pull"(x, item = 1, remove = pp_opts$get("removeItems"), ...)

Arguments

x
a pubprint object
item
the item to pull. If item is numeric, pipe and if it is a character, named memory is chosen.
remove
either a logical, "pipe" or "memory". If remove is TRUE, every returned item is removed from pipe or memory. If it is "pipe" (or "memory"), only accessed pipe (or memory) items will be removed.
...
further arguments passed to pprint or the internal style functions.

Value

The updated object.

Details

No further details.

See Also

See pull for the generic function, push<- to put items to pipe or named memory.

Examples

Run this code
ppo <- pubprint()
push(ppo) <- t.test(1:100, 2:101)
push(ppo, add = TRUE) <- .8123 # add d value to last pipe item
push(ppo, item = "i1") <- t.test(1:30, 2:31)

pull(ppo)
pull(ppo, item = "i1")
pull(ppo, item = "i1", remove = TRUE) # removes item as well

Run the code above in your browser using DataLab