pull.pubprint: Pulls an item from a pubprint object

Description Usage Arguments Details Value See Also Examples

View source: R/io.R

Description

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

Usage

1
2
3
## S3 method for class 'pubprint'
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.

Details

No further details.

Value

The updated object.

See Also

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

Examples

1
2
3
4
5
6
7
8
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

pubprint documentation built on May 29, 2017, 2:55 p.m.