Skip to contents

Resets the froth session to defaults. This deletes any user-defined functions and variables, and clears the stack.

Usage

froth.reset()

Value

None; called to reset internal froth stacks.

Author

Aidan Lakshman ahl27@pitt.edu

Examples

froth.RDefine("rnorm", rnorm, 3L)
froth.reset()
#> NULL
froth.parse("5 0 1 rnorm .s")
#> [[1]]
#> function (n, mean = 0, sd = 1) 
#> .Call(C_rnorm, n, mean, sd)
#> <bytecode: 0x55a4321ec390>
#> <environment: namespace:stats>
#> 
#> [[2]]
#> [1] 1
#> 
#> [[3]]
#> [1] 0
#> 
#> [[4]]
#> [1] 5
#> 
#> [[5]]
#> NULL
#> 
# fr> rnorm ?